Completed
Push — master ( afe79f...952cdd )
by Adam
02:21
created
src/IPub/MobileDetect/DI/MobileDetectExtension.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -38,19 +38,19 @@  discard block
 block discarded – undo
38 38
 				'isEnabled'  => FALSE,
39 39
 				'host'       => NULL,
40 40
 				'statusCode' => 301,
41
-				'action'     => 'noRedirect',    // redirect/noRedirect/redirectWithoutPath
41
+				'action'     => 'noRedirect', // redirect/noRedirect/redirectWithoutPath
42 42
 			],
43 43
 			'phone'                => [
44 44
 				'isEnabled'  => FALSE,
45 45
 				'host'       => NULL,
46 46
 				'statusCode' => 301,
47
-				'action'     => 'noRedirect',    // redirect/noRedirect/redirectWithoutPath
47
+				'action'     => 'noRedirect', // redirect/noRedirect/redirectWithoutPath
48 48
 			],
49 49
 			'tablet'               => [
50 50
 				'isEnabled'  => FALSE,
51 51
 				'host'       => NULL,
52 52
 				'statusCode' => 301,
53
-				'action'     => 'noRedirect',    // redirect/noRedirect/redirectWithoutPath
53
+				'action'     => 'noRedirect', // redirect/noRedirect/redirectWithoutPath
54 54
 			],
55 55
 			'detectPhoneAsMobile'  => FALSE,
56 56
 			'detectTabletAsMobile' => FALSE,
@@ -112,8 +112,8 @@  discard block
 block discarded – undo
112 112
 			->setAutowired(FALSE);
113 113
 
114 114
 		$application = $builder->getDefinition('application');
115
-		$application->addSetup('$service->onRequest[] = ?', ['@' . $this->prefix('onRequestHandler')]);
116
-		$application->addSetup('$service->onResponse[] = ?', ['@' . $this->prefix('onResponseHandler')]);
115
+		$application->addSetup('$service->onRequest[] = ?', ['@'.$this->prefix('onRequestHandler')]);
116
+		$application->addSetup('$service->onResponse[] = ?', ['@'.$this->prefix('onResponseHandler')]);
117 117
 	}
118 118
 
119 119
 	/**
Please login to merge, or discard this patch.
src/IPub/MobileDetect/Latte/Macros.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
 			throw new Exceptions\CompileException('Please provide device name.');
183 183
 		}
184 184
 
185
-		return $writer->write('if (%escape(call_user_func($this->filters->isDevice, ' . $arguments['device'] . '))) {');
185
+		return $writer->write('if (%escape(call_user_func($this->filters->isDevice, '.$arguments['device'].'))) {');
186 186
 	}
187 187
 
188 188
 	/**
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
 			throw new Exceptions\CompileException('Please provide OS name.');
202 202
 		}
203 203
 
204
-		return $writer->write('if (%escape(call_user_func($this->filters->isOs, ' . $arguments['os'] . '))) {');
204
+		return $writer->write('if (%escape(call_user_func($this->filters->isOs, '.$arguments['os'].'))) {');
205 205
 	}
206 206
 
207 207
 	/**
Please login to merge, or discard this patch.