protected function fetchFixtures(array $fixtures = null)
    {
        $availableFixtures = glob("{$this->config['location']}/*.php");

        foreach ($availableFixtures as $i => $fixture) {
            $tableName = basename($fixture, '.php');

            if ($fixtures && !in_array($tableName, $fixtures)) {
                unset($availableFixtures[$i]);
            }
        }
        return array_values($availableFixtures);
    }
protected function fetchFixtures(array $fixtures = null)
    {
        $availableFixtures = glob("{$this->config['location']}/*.php");

        foreach ($availableFixtures as $i => $fixture) {
            $tableName = basename($fixture, '.php');

            if ($fixtures && !in_array($tableName, $fixtures)) {
                unset($availableFixtures[$i]);
            }
        }
        return array_values($availableFixtures);
    }
protected function fetchFixtures ( array $ fixtures = null ) { $ availableFixtures = glob ( "{$this->config['location']}/*.php" ) ; foreach ( $ availableFixtures as $ i => $ fixture ) { $ tableName = basename ( $ fixture , '.php' ) ; if ( $ fixtures && ! in_array ( $ tableName , $ fixtures ) ) { unset ( $ availableFixtures [ $ i ] ) ; } } return array_values ( $ availableFixtures ) ; }
Fetches fixture files names for all or only a subset of fixtures.

@param array $fixtures The name of the fixtures to fetch
@return array The fixture file names
Fetches fixture files names for all or only a subset of fixtures .