src/Behat/Behat/Transformation/Transformation/ReturnTypeTransformation.php
private function hasIndex($index)
    {
        return is_string($index) ? $this->hasName($index) : $this->hasPosition($index);
    }
private function hasIndex($index)
    {
        return is_string($index) ? $this->hasName($index) : $this->hasPosition($index);
    }
private function hasIndex ( $ index ) { return is_string ( $ index ) ? $ this -> hasName ( $ index ) : $ this -> hasPosition ( $ index ) ; }
Returns appropriate closure for filtering parameter by index.

@param string|integer $index

@return Closure
Returns appropriate closure for filtering parameter by index .