src/Router/Routes/RouteBinding.php
protected function bindVarSingleUrlPart($option, array $parts, &$value)
    {
        if (ctype_digit(substr($option, 1))) {
            $i = (int)substr($option, 1);
            $part = array_slice($parts, $i - 1, 1);

            if (!empty($part)) {
                $value = $part;
                return true;
            }
        }
        
        return false;
    }
protected function bindVarSingleUrlPart($option, array $parts, &$value)
    {
        if (ctype_digit(substr($option, 1))) {
            $i = (int)substr($option, 1);
            $part = array_slice($parts, $i - 1, 1);

            if (!empty($part)) {
                $value = $part;
                return true;
            }
        }
        
        return false;
    }
protected function bindVarSingleUrlPart ( $ option , array $ parts , & $ value ) { if ( ctype_digit ( substr ( $ option , 1 ) ) ) { $ i = ( int ) substr ( $ option , 1 ) ; $ part = array_slice ( $ parts , $ i - 1 , 1 ) ; if ( ! empty ( $ part ) ) { $ value = $ part ; return true ; } } return false ; }
Bind variable when option contains a single URL part

@param string $option
@param array  $parts   Url parts
@param mixed  $value   OUTPUT
@return boolean
Bind variable when option contains a single URL part