mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
cs: Enable more risky rules.
This commit is contained in:
@@ -40,6 +40,7 @@ use Nelmio\Alice\Loader\NativeLoader;
|
||||
use Nelmio\Alice\ObjectSet;
|
||||
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
|
||||
use Symfony\Component\Workflow\Registry;
|
||||
use function count;
|
||||
use function random_int;
|
||||
use function ucfirst;
|
||||
|
||||
@@ -273,7 +274,7 @@ class LoadPeople extends AbstractFixture implements OrderedFixtureInterface, Con
|
||||
$this->cacheCenters = $this->centerRepository->findAll();
|
||||
}
|
||||
|
||||
return $this->cacheCenters[\array_rand($this->cacheCenters)];
|
||||
return $this->cacheCenters[array_rand($this->cacheCenters)];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -291,7 +292,7 @@ class LoadPeople extends AbstractFixture implements OrderedFixtureInterface, Con
|
||||
return null;
|
||||
}
|
||||
|
||||
return $this->cacheCountries[\array_rand($this->cacheCountries)];
|
||||
return $this->cacheCountries[array_rand($this->cacheCountries)];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -475,7 +476,7 @@ class LoadPeople extends AbstractFixture implements OrderedFixtureInterface, Con
|
||||
|
||||
private function getPostalCode(): PostalCode
|
||||
{
|
||||
$ref = LoadPostalCodes::$refs[\array_rand(LoadPostalCodes::$refs)];
|
||||
$ref = LoadPostalCodes::$refs[array_rand(LoadPostalCodes::$refs)];
|
||||
|
||||
return $this->getReference($ref);
|
||||
}
|
||||
@@ -522,7 +523,7 @@ class LoadPeople extends AbstractFixture implements OrderedFixtureInterface, Con
|
||||
$this->cacheSocialIssues = $this->socialIssueRepository->findAll();
|
||||
}
|
||||
|
||||
return $this->cacheSocialIssues[\array_rand($this->cacheSocialIssues)];
|
||||
return $this->cacheSocialIssues[array_rand($this->cacheSocialIssues)];
|
||||
}
|
||||
|
||||
private function getRandomUser(): User
|
||||
@@ -531,7 +532,7 @@ class LoadPeople extends AbstractFixture implements OrderedFixtureInterface, Con
|
||||
$this->cacheUsers = $this->userRepository->findAll();
|
||||
}
|
||||
|
||||
return $this->cacheUsers[\array_rand($this->cacheUsers)];
|
||||
return $this->cacheUsers[array_rand($this->cacheUsers)];
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user