Commit 3091024e by Alexander Makarov

And optimized even more

parent 1e291ec4
......@@ -296,11 +296,10 @@ class FixtureController extends Controller
private function findFixtures(array $fixtures)
{
$fixturesPath = Yii::getAlias($this->fixturePath);
$filesToSearch = [];
if ($this->needToApplyAll($fixtures[0])) {
$filesToSearch = ['.php'];
} else {
$filesToSearch = ['.php'];
if (!$this->needToApplyAll($fixtures[0])) {
$filesToSearch = [];
foreach ($fixtures as $fileName) {
$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