mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
And optimized even more
This commit is contained in:
@ -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';
|
||||
}
|
||||
|
Reference in New Issue
Block a user