@@ -38,19 +38,19 @@ discard block |
||
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 |
||
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 | /** |
@@ -182,7 +182,7 @@ discard block |
||
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 |
||
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 | /** |