@@ -69,6 +69,9 @@ discard block |
||
69 | 69 | $this->separator = $separator; |
70 | 70 | } |
71 | 71 | |
72 | + /** |
|
73 | + * @param string $input |
|
74 | + */ |
|
72 | 75 | public static function parse($input, $platform = null) |
73 | 76 | { |
74 | 77 | $platform = $platform ?: static::detectPlatform(); |
@@ -287,7 +290,7 @@ discard block |
||
287 | 290 | * If path schemes differ, or not both paths are relative/absolute, this |
288 | 291 | * method will instantly return false. |
289 | 292 | * |
290 | - * @param Path|string|object $other |
|
293 | + * @param Path $other |
|
291 | 294 | * @return bool |
292 | 295 | */ |
293 | 296 | public function isDescendantOf($other) |
@@ -332,7 +335,7 @@ discard block |
||
332 | 335 | * If path schemes differ, or not both paths are relative/absolute, this |
333 | 336 | * method will instantly return false. |
334 | 337 | * |
335 | - * @param $other |
|
338 | + * @param Path $other |
|
336 | 339 | * @return bool |
337 | 340 | */ |
338 | 341 | public function isChildOf($other) |
@@ -351,7 +354,7 @@ discard block |
||
351 | 354 | * If path schemes differ, or not both paths are relative/absolute, this |
352 | 355 | * method will instantly return false. |
353 | 356 | * |
354 | - * @param $other |
|
357 | + * @param Path $other |
|
355 | 358 | * @return bool |
356 | 359 | */ |
357 | 360 | public function isParentOf($other) |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | */ |
195 | 195 | public function normalize() |
196 | 196 | { |
197 | - $reducer = function ($carrier, $segment) { |
|
197 | + $reducer = function($carrier, $segment) { |
|
198 | 198 | if ($segment === '' || $segment === '.') { |
199 | 199 | return $carrier; |
200 | 200 | } |
@@ -577,12 +577,12 @@ discard block |
||
577 | 577 | { |
578 | 578 | $builder = ''; |
579 | 579 | if (!empty($this->scheme)) { |
580 | - $builder .= $this->scheme . '://'; |
|
580 | + $builder .= $this->scheme.'://'; |
|
581 | 581 | } |
582 | 582 | if ($this->root !== null) { |
583 | - $builder .= $this->root . $separator; |
|
583 | + $builder .= $this->root.$separator; |
|
584 | 584 | } |
585 | - return $builder . implode($separator, $this->segments); |
|
585 | + return $builder.implode($separator, $this->segments); |
|
586 | 586 | } |
587 | 587 | |
588 | 588 | /** |