src/Behat/Behat/Transformation/Transformer/RepositoryArgumentTransformer.php
private function splitSimpleAndNormalTransformations(array $transformations)
    {
        return array_reduce($transformations, function ($acc, $t) {
            return array(
                $t instanceof SimpleArgumentTransformation ? array_merge($acc[0], array($t)) : $acc[0],
                !$t instanceof SimpleArgumentTransformation ? array_merge($acc[1], array($t)) : $acc[1],
            );
        }, array(array(), array()));
    }
private function splitSimpleAndNormalTransformations(array $transformations)
    {
        return array_reduce($transformations, function ($acc, $t) {
            return array(
                $t instanceof SimpleArgumentTransformation ? array_merge($acc[0], array($t)) : $acc[0],
                !$t instanceof SimpleArgumentTransformation ? array_merge($acc[1], array($t)) : $acc[1],
            );
        }, array(array(), array()));
    }
private function splitSimpleAndNormalTransformations ( array $ transformations ) { return array_reduce ( $ transformations , function ( $ acc , $ t ) { return array ( $ t instanceof SimpleArgumentTransformation ? array_merge ( $ acc [ 0 ] , array ( $ t ) ) : $ acc [ 0 ] , ! $ t instanceof SimpleArgumentTransformation ? array_merge ( $ acc [ 1 ] , array ( $ t ) ) : $ acc [ 1 ] , ) ; } , array ( array ( ) , array ( ) ) ) ; }
Splits transformations into simple and normal ones.

@param Transformation[] $transformations

@return array
Splits transformations into simple and normal ones .