@@ -40,6 +40,9 @@ |
||
| 40 | 40 | $this->map[] = [$requestMatcher, $options]; |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | + /** |
|
| 44 | + * @param string $header |
|
| 45 | + */ |
|
| 43 | 46 | public function getBest($header, array $priorities = []) |
| 44 | 47 | { |
| 45 | 48 | $request = $this->getRequest(); |
@@ -85,6 +85,7 @@ |
||
| 85 | 85 | * |
| 86 | 86 | * This code comes from Symfony and should be synchronized on a regular basis |
| 87 | 87 | * see src/Symfony/Bundle/TwigBundle/Controller/ExceptionController.php |
| 88 | + * @param null|string $startObLevel |
|
| 88 | 89 | */ |
| 89 | 90 | private function getAndCleanOutputBuffering($startObLevel): string |
| 90 | 91 | { |
@@ -112,6 +112,9 @@ |
||
| 112 | 112 | } |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | + /** |
|
| 116 | + * @param null|string $contentType |
|
| 117 | + */ |
|
| 115 | 118 | private function isNotAnEmptyDeleteRequestWithNoSetContentType(string $method, $content, $contentType): bool |
| 116 | 119 | { |
| 117 | 120 | return false === ('DELETE' === $method && empty($content) && empty($contentType)); |
@@ -300,6 +300,9 @@ |
||
| 300 | 300 | return sprintf("request.attributes.get('version') in ['%s']", implode("', '", $this->versions)); |
| 301 | 301 | } |
| 302 | 302 | |
| 303 | + /** |
|
| 304 | + * @param null|string $conditionOne |
|
| 305 | + */ |
|
| 303 | 306 | private function combineConditions(?string $conditionOne, ?string $conditionTwo): ?string |
| 304 | 307 | { |
| 305 | 308 | if (null === $conditionOne) { |
@@ -288,6 +288,7 @@ |
||
| 288 | 288 | * configuration if the form instance has errors. |
| 289 | 289 | * |
| 290 | 290 | * @param string|false|null |
| 291 | + * @param string|false $content |
|
| 291 | 292 | */ |
| 292 | 293 | private function getStatusCode(View $view, $content = null): int |
| 293 | 294 | { |