@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | /** |
79 | 79 | * Handle an incoming HTTP request. |
80 | 80 | * |
81 | - * @param SymfonyRequest|ServerRequestInterface $request |
|
81 | + * @param SymfonyRequest $request |
|
82 | 82 | * @param int $type |
83 | 83 | * @param bool $catch |
84 | 84 | * @return ResponseInterface |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | /** |
113 | 113 | * Handles a request to convert it to a response. |
114 | 114 | * |
115 | - * @param SymfonyRequest|ServerRequestInterface $request A Request instance |
|
115 | + * @param ServerRequestInterface $request A Request instance |
|
116 | 116 | * @param int $type The type of the request |
117 | 117 | * |
118 | 118 | * @return ResponseInterface A Response instance |
@@ -74,7 +74,7 @@ |
||
74 | 74 | * Checks if a header exists by the given case-insensitive name. |
75 | 75 | * |
76 | 76 | * @param string $name Case-insensitive header field name. |
77 | - * @return bool Returns true if any header names match the given header |
|
77 | + * @return boolean|null Returns true if any header names match the given header |
|
78 | 78 | * name using a case-insensitive string comparison. Returns false if |
79 | 79 | * no matching header name is found in the message. |
80 | 80 | */ |
@@ -74,7 +74,7 @@ |
||
74 | 74 | * Checks if a header exists by the given case-insensitive name. |
75 | 75 | * |
76 | 76 | * @param string $name Case-insensitive header field name. |
77 | - * @return bool Returns true if any header names match the given header |
|
77 | + * @return boolean|null Returns true if any header names match the given header |
|
78 | 78 | * name using a case-insensitive string comparison. Returns false if |
79 | 79 | * no matching header name is found in the message. |
80 | 80 | */ |
@@ -64,7 +64,7 @@ |
||
64 | 64 | * Checks if a header exists by the given case-insensitive name. |
65 | 65 | * |
66 | 66 | * @param string $name Case-insensitive header field name. |
67 | - * @return bool Returns true if any header names match the given header |
|
67 | + * @return boolean|null Returns true if any header names match the given header |
|
68 | 68 | * name using a case-insensitive string comparison. Returns false if |
69 | 69 | * no matching header name is found in the message. |
70 | 70 | */ |
@@ -57,7 +57,7 @@ |
||
57 | 57 | /** |
58 | 58 | * Return a new dispatcher containing the given element. |
59 | 59 | * |
60 | - * @param mixed $element |
|
60 | + * @param MiddlewareInterface $element |
|
61 | 61 | * @return DispatcherInterface |
62 | 62 | */ |
63 | 63 | public function withElement($element): DispatcherInterface |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | |
73 | 73 | /** |
74 | 74 | * @param $lang |
75 | - * @return mixed|string |
|
75 | + * @return string |
|
76 | 76 | */ |
77 | 77 | public function changeLangURL($lang) |
78 | 78 | { |
@@ -166,8 +166,8 @@ discard block |
||
166 | 166 | } |
167 | 167 | |
168 | 168 | /** |
169 | - * @param $lang |
|
170 | - * @return mixed|string |
|
169 | + * @param string $lang |
|
170 | + * @return string |
|
171 | 171 | */ |
172 | 172 | public function getLanguageCode($lang) |
173 | 173 | { |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | |
181 | 181 | /** |
182 | 182 | * gets the default language to be used when translating |
183 | - * @return string $language |
|
183 | + * @return boolean $language |
|
184 | 184 | */ |
185 | 185 | public function getDefaultLanguage() |
186 | 186 | { |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | * |
242 | 242 | * @param bool|string $slug |
243 | 243 | * @param bool|string $language |
244 | - * @return string |
|
244 | + * @return boolean |
|
245 | 245 | */ |
246 | 246 | public function hasTranslation($slug = false, $language = false) |
247 | 247 | { |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | } |
163 | 163 | |
164 | 164 | /** |
165 | - * @param $directory |
|
165 | + * @param string $directory |
|
166 | 166 | */ |
167 | 167 | public function setCachePath($directory) |
168 | 168 | { |
@@ -373,7 +373,7 @@ discard block |
||
373 | 373 | |
374 | 374 | /** |
375 | 375 | * @param $word |
376 | - * @return mixed |
|
376 | + * @return string |
|
377 | 377 | */ |
378 | 378 | protected function doCamelize($word) |
379 | 379 | { |
@@ -382,7 +382,7 @@ discard block |
||
382 | 382 | |
383 | 383 | /** |
384 | 384 | * @param $word |
385 | - * @return mixed |
|
385 | + * @return string |
|
386 | 386 | */ |
387 | 387 | protected function doHyphenize($word) |
388 | 388 | { |
@@ -417,7 +417,7 @@ discard block |
||
417 | 417 | |
418 | 418 | /** |
419 | 419 | * @param $word |
420 | - * @return mixed |
|
420 | + * @return string |
|
421 | 421 | */ |
422 | 422 | public function pluralize($word) |
423 | 423 | { |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
46 | - * @param array $path |
|
46 | + * @param string[] $path |
|
47 | 47 | * @param bool $locale |
48 | 48 | * @return bool|mixed |
49 | 49 | */ |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | } |
91 | 91 | |
92 | 92 | /** |
93 | - * @param $locale |
|
93 | + * @param string $locale |
|
94 | 94 | */ |
95 | 95 | public function setCurrent($locale) |
96 | 96 | { |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | |
52 | 52 | /** |
53 | 53 | * @param bool $url |
54 | - * @return mixed |
|
54 | + * @return string |
|
55 | 55 | */ |
56 | 56 | public function getURL($url = false) |
57 | 57 | { |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | * Compile path for this section from a given path of current section |
69 | 69 | * |
70 | 70 | * @param bool $path |
71 | - * @return bool|mixed |
|
71 | + * @return string |
|
72 | 72 | */ |
73 | 73 | public function compilePath($path = false) |
74 | 74 | { |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | } |
121 | 121 | |
122 | 122 | /** |
123 | - * @return mixed |
|
123 | + * @return string |
|
124 | 124 | */ |
125 | 125 | public function getName() |
126 | 126 | { |