protected function buildUrlRequirements(array &$arguments)
    {
        $url = [];
        foreach ($this->requirements as $key => $regex) {
            $this->assertArgumentRequirement($key, $regex, $arguments);

            if (array_key_exists($key, $arguments) && isset($this->builders['segments']['{' . $key . '}'])) {
                $this->assertArgumentValue($key, $regex, $arguments[$key]);
                $url['{' . $key . '}'] = str_replace('{value}', $this->strip($arguments[$key]), $this->builders['segments']['{' . $key . '}']);
            } else {
                $url['{' . $key . '}'] = substr($this->requirements[$key], -1) == '+' && isset($this->arguments[$key]) ? $this->arguments[$key] : null;
            }

            unset($arguments[$key]);
        }

        return $url;
    }
protected function buildUrlRequirements(array &$arguments)
    {
        $url = [];
        foreach ($this->requirements as $key => $regex) {
            $this->assertArgumentRequirement($key, $regex, $arguments);

            if (array_key_exists($key, $arguments) && isset($this->builders['segments']['{' . $key . '}'])) {
                $this->assertArgumentValue($key, $regex, $arguments[$key]);
                $url['{' . $key . '}'] = str_replace('{value}', $this->strip($arguments[$key]), $this->builders['segments']['{' . $key . '}']);
            } else {
                $url['{' . $key . '}'] = substr($this->requirements[$key], -1) == '+' && isset($this->arguments[$key]) ? $this->arguments[$key] : null;
            }

            unset($arguments[$key]);
        }

        return $url;
    }
protected function buildUrlRequirements ( array & $ arguments ) { $ url = [ ] ; foreach ( $ this -> requirements as $ key => $ regex ) { $ this -> assertArgumentRequirement ( $ key , $ regex , $ arguments ) ; if ( array_key_exists ( $ key , $ arguments ) && isset ( $ this -> builders [ 'segments' ] [ '{' . $ key . '}' ] ) ) { $ this -> assertArgumentValue ( $ key , $ regex , $ arguments [ $ key ] ) ; $ url [ '{' . $ key . '}' ] = str_replace ( '{value}' , $ this -> strip ( $ arguments [ $ key ] ) , $ this -> builders [ 'segments' ] [ '{' . $ key . '}' ] ) ; } else { $ url [ '{' . $ key . '}' ] = substr ( $ this -> requirements [ $ key ] , - 1 ) == '+' && isset ( $ this -> arguments [ $ key ] ) ? $ this -> arguments [ $ key ] : null ; } unset ( $ arguments [ $ key ] ) ; } return $ url ; }
Builds array with url required arguments

@param array $arguments

@return array
Builds array with url required arguments