@@ -114,7 +114,7 @@ |
||
| 114 | 114 | self::TYPE_CLASS => (is_string($dependency) && class_exists($dependency)), |
| 115 | 115 | self::TYPE_UNSUPPORTED => true |
| 116 | 116 | ], |
| 117 | - function($value) {return $value === true;} |
|
| 117 | + function($value) {return $value === true; } |
|
| 118 | 118 | ); |
| 119 | 119 | |
| 120 | 120 | $types = array_keys($matchingTypes); |
@@ -118,8 +118,7 @@ |
||
| 118 | 118 | return str_replace( |
| 119 | 119 | sprintf($template[self::TEMPLATE_REPLACE_KEY], $parameterName), |
| 120 | 120 | ($route->hasDefaultValue($parameterName) ? |
| 121 | - sprintf($template[self::TEMPLATE_OPTIONAL_KEY], $parameterName, $route->getRule($parameterName)) : |
|
| 122 | - sprintf($template[self::TEMPLATE_REQUIRED_KEY], $parameterName, $route->getRule($parameterName)) |
|
| 121 | + sprintf($template[self::TEMPLATE_OPTIONAL_KEY], $parameterName, $route->getRule($parameterName)) : sprintf($template[self::TEMPLATE_REQUIRED_KEY], $parameterName, $route->getRule($parameterName)) |
|
| 123 | 122 | ), |
| 124 | 123 | $routePath |
| 125 | 124 | ); |
@@ -78,15 +78,15 @@ |
||
| 78 | 78 | const CODE_HTTP_VERSION_NOT_SUPPORTED = 505; |
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | - * Holds the corresponding status code phrases. |
|
| 82 | - * 1xx: Informational - Request received, continuing process |
|
| 83 | - * 2xx: Success - The action was successfully received, understood, and accepted |
|
| 84 | - * 3xx: Redirection - Further action must be taken in order to complete the request |
|
| 85 | - * 4xx: Client Error - The request contains bad syntax or cannot be fulfilled |
|
| 86 | - * 5xx: Server Error - The server failed to fulfill an apparently valid request |
|
| 87 | - * @link http://tools.ietf.org/html/rfc2616#page-40 |
|
| 88 | - * @var array |
|
| 89 | - */ |
|
| 81 | + * Holds the corresponding status code phrases. |
|
| 82 | + * 1xx: Informational - Request received, continuing process |
|
| 83 | + * 2xx: Success - The action was successfully received, understood, and accepted |
|
| 84 | + * 3xx: Redirection - Further action must be taken in order to complete the request |
|
| 85 | + * 4xx: Client Error - The request contains bad syntax or cannot be fulfilled |
|
| 86 | + * 5xx: Server Error - The server failed to fulfill an apparently valid request |
|
| 87 | + * @link http://tools.ietf.org/html/rfc2616#page-40 |
|
| 88 | + * @var array |
|
| 89 | + */ |
|
| 90 | 90 | protected $statusPhrases = [ |
| 91 | 91 | self::CODE_CONTINUE => "Continue", |
| 92 | 92 | self::CODE_SWITCHING_PROTOCOLS => "Switching Protocols", |
@@ -132,4 +132,4 @@ |
||
| 132 | 132 | return $request; |
| 133 | 133 | } |
| 134 | 134 | |
| 135 | - } |
|
| 135 | + } |
|
@@ -135,4 +135,4 @@ |
||
| 135 | 135 | return $uriParts.$this->getPath().$queryString.$fragment; |
| 136 | 136 | } |
| 137 | 137 | |
| 138 | - } |
|
| 138 | + } |
|