Commit 3091024e by Alexander Makarov

And optimized even more

parent 1e291ec4
...@@ -296,11 +296,10 @@ class FixtureController extends Controller ...@@ -296,11 +296,10 @@ class FixtureController extends Controller
private function findFixtures(array $fixtures) private function findFixtures(array $fixtures)
{ {
$fixturesPath = Yii::getAlias($this->fixturePath); $fixturesPath = Yii::getAlias($this->fixturePath);
$filesToSearch = [];
if ($this->needToApplyAll($fixtures[0])) { $filesToSearch = ['.php'];
$filesToSearch = ['.php']; if (!$this->needToApplyAll($fixtures[0])) {
} else { $filesToSearch = [];
foreach ($fixtures as $fileName) { foreach ($fixtures as $fileName) {
$filesToSearch[] = $fileName . '.php'; $filesToSearch[] = $fileName . '.php';
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment