framework/console/controllers/FixtureController.php
private function filterFixtures($fixtures)
    {
        $filtered = [
            'apply' => [],
            'except' => [],
        ];

        foreach ($fixtures as $fixture) {
            if (mb_strpos($fixture, '-') !== false) {
                $filtered['except'][] = str_replace('-', '', $fixture);
            } else {
                $filtered['apply'][] = $fixture;
            }
        }

        return $filtered;
    }
private function filterFixtures($fixtures)
    {
        $filtered = [
            'apply' => [],
            'except' => [],
        ];

        foreach ($fixtures as $fixture) {
            if (mb_strpos($fixture, '-') !== false) {
                $filtered['except'][] = str_replace('-', '', $fixture);
            } else {
                $filtered['apply'][] = $fixture;
            }
        }

        return $filtered;
    }
private function filterFixtures ( $ fixtures ) { $ filtered = [ 'apply' => [ ] , 'except' => [ ] , ] ; foreach ( $ fixtures as $ fixture ) { if ( mb_strpos ( $ fixture , '-' ) !== false ) { $ filtered [ 'except' ] [ ] = str_replace ( '-' , '' , $ fixture ) ; } else { $ filtered [ 'apply' ] [ ] = $ fixture ; } } return $ filtered ; }
Filters fixtures by splitting them in two categories: one that should be applied and not.

If fixture is prefixed with "-", for example "-User", that means that fixture should not be loaded,
if it is not prefixed it is considered as one to be loaded. Returns array:

```php
[
'apply' => [
'User',
...
],
'except' => [
'Custom',
...
],
]
```
@param array $fixtures
@return array fixtures array with 'apply' and 'except' elements.
Filters fixtures by splitting them in two categories : one that should be applied and not .