And optimized even more

This commit is contained in:
Alexander Makarov
2014-01-13 23:39:40 +04:00
parent 1e291ec4d5
commit 3091024e78

View File

@ -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';
}