Passed
Push — master ( cfdc3a...b234d9 )
by Adam
01:06 queued 13s
created
src/IPub/MobileDetect/DI/MobileDetectExtension.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 	/**
Please login to merge, or discard this patch.
src/IPub/MobileDetect/Events/OnRequestHandler.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/IPub/MobileDetect/Events/OnResponseHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/IPub/MobileDetect/Helpers/CookieSettings.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)) {
Please login to merge, or discard this patch.
src/IPub/MobileDetect/Helpers/DeviceView.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.