@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | * @date 21.04.14 |
13 | 13 | */ |
14 | 14 | |
15 | -declare(strict_types = 1); |
|
15 | +declare(strict_types=1); |
|
16 | 16 | |
17 | 17 | namespace IPub\MobileDetect\DI; |
18 | 18 | |
@@ -47,19 +47,19 @@ discard block |
||
47 | 47 | 'isEnabled' => false, |
48 | 48 | 'host' => null, |
49 | 49 | 'statusCode' => 301, |
50 | - 'action' => 'noRedirect', // redirect/noRedirect/redirectWithoutPath |
|
50 | + 'action' => 'noRedirect', // redirect/noRedirect/redirectWithoutPath |
|
51 | 51 | ], |
52 | 52 | 'phone' => [ |
53 | 53 | 'isEnabled' => false, |
54 | 54 | 'host' => null, |
55 | 55 | 'statusCode' => 301, |
56 | - 'action' => 'noRedirect', // redirect/noRedirect/redirectWithoutPath |
|
56 | + 'action' => 'noRedirect', // redirect/noRedirect/redirectWithoutPath |
|
57 | 57 | ], |
58 | 58 | 'tablet' => [ |
59 | 59 | 'isEnabled' => false, |
60 | 60 | 'host' => null, |
61 | 61 | 'statusCode' => 301, |
62 | - 'action' => 'noRedirect', // redirect/noRedirect/redirectWithoutPath |
|
62 | + 'action' => 'noRedirect', // redirect/noRedirect/redirectWithoutPath |
|
63 | 63 | ], |
64 | 64 | 'detectPhoneAsMobile' => false, |
65 | 65 | 'detectTabletAsMobile' => false, |
@@ -133,8 +133,8 @@ discard block |
||
133 | 133 | ->setAutowired(FALSE); |
134 | 134 | |
135 | 135 | $application = $builder->getDefinition('application'); |
136 | - $application->addSetup('$service->onRequest[] = ?', ['@' . $this->prefix('onRequestHandler')]); |
|
137 | - $application->addSetup('$service->onResponse[] = ?', ['@' . $this->prefix('onResponseHandler')]); |
|
136 | + $application->addSetup('$service->onRequest[] = ?', ['@'.$this->prefix('onRequestHandler')]); |
|
137 | + $application->addSetup('$service->onResponse[] = ?', ['@'.$this->prefix('onResponseHandler')]); |
|
138 | 138 | } |
139 | 139 | |
140 | 140 | /** |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | * @date 22.04.14 |
13 | 13 | */ |
14 | 14 | |
15 | -declare(strict_types = 1); |
|
15 | +declare(strict_types=1); |
|
16 | 16 | |
17 | 17 | namespace IPub\MobileDetect\Events; |
18 | 18 | |
@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | $url->setQueryParameter($this->deviceView->getSwitchParameterName(), null); |
380 | 380 | |
381 | 381 | // Create full path url |
382 | - $redirectUrl = $this->getCurrentHost() . $url->getRelativeUrl(); |
|
382 | + $redirectUrl = $this->getCurrentHost().$url->getRelativeUrl(); |
|
383 | 383 | |
384 | 384 | // Generate only domain path |
385 | 385 | } else { |
@@ -420,7 +420,7 @@ discard block |
||
420 | 420 | if ($routingOption = $this->getRoutingOption($platform)) { |
421 | 421 | switch ($routingOption) { |
422 | 422 | case self::REDIRECT: |
423 | - return rtrim($this->redirectConf[$platform]['host'], '/') . '/' . ltrim($this->httpRequest->getUrl()->getRelativeUrl(), '/'); |
|
423 | + return rtrim($this->redirectConf[$platform]['host'], '/').'/'.ltrim($this->httpRequest->getUrl()->getRelativeUrl(), '/'); |
|
424 | 424 | |
425 | 425 | case self::REDIRECT_WITHOUT_PATH: |
426 | 426 | return $this->redirectConf[$platform]['host']; |
@@ -467,6 +467,6 @@ discard block |
||
467 | 467 | */ |
468 | 468 | private function getCurrentHost() : string |
469 | 469 | { |
470 | - return $this->httpRequest->getUrl()->getHostUrl() . $this->httpRequest->getUrl()->getScriptPath(); |
|
470 | + return $this->httpRequest->getUrl()->getHostUrl().$this->httpRequest->getUrl()->getScriptPath(); |
|
471 | 471 | } |
472 | 472 | } |
@@ -12,7 +12,7 @@ |
||
12 | 12 | * @date 23.04.14 |
13 | 13 | */ |
14 | 14 | |
15 | -declare(strict_types = 1); |
|
15 | +declare(strict_types=1); |
|
16 | 16 | |
17 | 17 | namespace IPub\MobileDetect\Events; |
18 | 18 |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | * @date 23.04.14 |
13 | 13 | */ |
14 | 14 | |
15 | -declare(strict_types = 1); |
|
15 | +declare(strict_types=1); |
|
16 | 16 | |
17 | 17 | namespace IPub\MobileDetect\Helpers; |
18 | 18 | |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | * |
76 | 76 | * @throws Exceptions\InvalidArgumentException |
77 | 77 | */ |
78 | - public function __construct(string $name, ?string $domain = null, ?string $expireAfter = null, string $path = '/', bool $secure = false, bool $httpOnly = true) |
|
78 | + public function __construct(string $name, ?string $domain = null, ?string $expireAfter = null, string $path = '/', bool $secure = false, bool $httpOnly = true) |
|
79 | 79 | { |
80 | 80 | // from PHP source code |
81 | 81 | if (preg_match("/[=,; \t\r\n\013\014]/", $name)) { |
@@ -12,7 +12,7 @@ |
||
12 | 12 | * @date 23.04.14 |
13 | 13 | */ |
14 | 14 | |
15 | -declare(strict_types = 1); |
|
15 | +declare(strict_types=1); |
|
16 | 16 | |
17 | 17 | namespace IPub\MobileDetect\Helpers; |
18 | 18 |