@@ -27,7 +27,7 @@ |
||
| 27 | 27 | public function __construct($baseDir = null) |
| 28 | 28 | { |
| 29 | 29 | if ($baseDir === null) { |
| 30 | - $this->baseDir = __DIR__ . '/..'; |
|
| 30 | + $this->baseDir = __DIR__.'/..'; |
|
| 31 | 31 | } else { |
| 32 | 32 | $this->baseDir = rtrim($baseDir, '/'); |
| 33 | 33 | } |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | public function getFragment() |
| 81 | 81 | { |
| 82 | 82 | $this->initialize(); |
| 83 | - return sprintf('%s%s', $this->path, $this->query->getQuery() ? '?' . $this->query->getQuery() : ''); |
|
| 83 | + return sprintf('%s%s', $this->path, $this->query->getQuery() ? '?'.$this->query->getQuery() : ''); |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | /** |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | public function getPath() |
| 42 | 42 | { |
| 43 | 43 | $this->initialize(); |
| 44 | - return implode('/', array_map(function ($value) { |
|
| 44 | + return implode('/', array_map(function($value) { |
|
| 45 | 45 | return str_replace(' ', '%20', $value); |
| 46 | 46 | }, $this->data)); |
| 47 | 47 | } |
@@ -341,7 +341,7 @@ discard block |
||
| 341 | 341 | public function getUrl() |
| 342 | 342 | { |
| 343 | 343 | $this->initialize(); |
| 344 | - return self::httpBuildUrl(array_map(function ($value) { |
|
| 344 | + return self::httpBuildUrl(array_map(function($value) { |
|
| 345 | 345 | return (string) $value; |
| 346 | 346 | }, $this->data)); |
| 347 | 347 | } |
@@ -423,7 +423,7 @@ discard block |
||
| 423 | 423 | */ |
| 424 | 424 | private static function createDefaultParser() |
| 425 | 425 | { |
| 426 | - $pslManager = new PublicSuffixListManager(dirname(dirname(__DIR__)) . '/data'); |
|
| 426 | + $pslManager = new PublicSuffixListManager(dirname(dirname(__DIR__)).'/data'); |
|
| 427 | 427 | $pslParser = new PslParser($pslManager->getList()); |
| 428 | 428 | |
| 429 | 429 | return new Parser($pslParser); |