src/Behat/Behat/Transformation/Transformer/RepositoryArgumentTransformer.php
private function applySimpleTransformations(array $transformations, DefinitionCall $definitionCall, $index, $value)
    {
        usort($transformations, function (SimpleArgumentTransformation $t1, SimpleArgumentTransformation $t2) {
            if ($t1->getPriority() == $t2->getPriority()) {
                return 0;
            }

            return ($t1->getPriority() > $t2->getPriority()) ? -1 : 1;
        });

        $newValue = $value;
        foreach ($transformations as $transformation) {
            $newValue = $this->transform($definitionCall, $transformation, $index, $newValue);
        }

        return $newValue;
    }
private function applySimpleTransformations(array $transformations, DefinitionCall $definitionCall, $index, $value)
    {
        usort($transformations, function (SimpleArgumentTransformation $t1, SimpleArgumentTransformation $t2) {
            if ($t1->getPriority() == $t2->getPriority()) {
                return 0;
            }

            return ($t1->getPriority() > $t2->getPriority()) ? -1 : 1;
        });

        $newValue = $value;
        foreach ($transformations as $transformation) {
            $newValue = $this->transform($definitionCall, $transformation, $index, $newValue);
        }

        return $newValue;
    }
private function applySimpleTransformations ( array $ transformations , DefinitionCall $ definitionCall , $ index , $ value ) { usort ( $ transformations , function ( SimpleArgumentTransformation $ t1 , SimpleArgumentTransformation $ t2 ) { if ( $ t1 -> getPriority ( ) == $ t2 -> getPriority ( ) ) { return 0 ; } return ( $ t1 -> getPriority ( ) > $ t2 -> getPriority ( ) ) ? - 1 : 1 ; } ) ; $ newValue = $ value ; foreach ( $ transformations as $ transformation ) { $ newValue = $ this -> transform ( $ definitionCall , $ transformation , $ index , $ newValue ) ; } return $ newValue ; }
Apply simple argument transformations in priority order.

@param SimpleArgumentTransformation[] $transformations
@param DefinitionCall                 $definitionCall
@param integer|string                 $index
@param mixed                          $value

@return mixed
Apply simple argument transformations in priority order .