@@ -124,7 +124,7 @@ |
||
124 | 124 | $layerChain = $this->container->get('chain'); |
125 | 125 | $response = $layerChain->processLayers($request); |
126 | 126 | |
127 | - } catch(\Exception $exception) { |
|
127 | + } catch (\Exception $exception) { |
|
128 | 128 | |
129 | 129 | // Invoke the exception controller action method |
130 | 130 | $exceptionHandler = $this->container->get('controller._exception_handler'); |
@@ -44,7 +44,7 @@ |
||
44 | 44 | ); |
45 | 45 | } |
46 | 46 | |
47 | - foreach($config['@import'] as $importPath) { |
|
47 | + foreach ($config['@import'] as $importPath) { |
|
48 | 48 | $importPath = dirname($path) . '/' . $importPath; |
49 | 49 | |
50 | 50 | if (!file_exists($importPath)) { |
@@ -224,8 +224,7 @@ |
||
224 | 224 | public function seek($offset, $whence = SEEK_SET) |
225 | 225 | { |
226 | 226 | return $this->isAttached() && $this->isSeekable() ? |
227 | - fseek($this->stream, $offset, $whence) : |
|
228 | - false; |
|
227 | + fseek($this->stream, $offset, $whence) : false; |
|
229 | 228 | } |
230 | 229 | |
231 | 230 | /** |
@@ -168,7 +168,7 @@ |
||
168 | 168 | $user = $environment->get('PHP_AUTH_USER', ''); |
169 | 169 | $password = $environment->get('PHP_AUTH_PW', ''); |
170 | 170 | $host = $environment->get('HTTP_HOST', $environment->get('SERVER_NAME')); |
171 | - $port = (int)$environment->get('SERVER_PORT', null); |
|
171 | + $port = (int) $environment->get('SERVER_PORT', null); |
|
172 | 172 | |
173 | 173 | // Path |
174 | 174 | $requestUri = parse_url($environment->get('REQUEST_URI'), PHP_URL_PATH); |
@@ -40,7 +40,7 @@ |
||
40 | 40 | // Enforce the type of $layer |
41 | 41 | if (!($layer instanceof InboundLayerInterface || $layer instanceof OutboundLayerInterface)) { |
42 | 42 | throw new \InvalidArgumentException( |
43 | - 'Argument 1 of ' . __CLASS__ . '::' . __METHOD__ . |
|
43 | + 'Argument 1 of ' . __CLASS__ . '::' . __METHOD__ . |
|
44 | 44 | ' must be either an InboundLayerInterface or an OutboundLayerInterface instance.' |
45 | 45 | ); |
46 | 46 | } |
@@ -41,7 +41,7 @@ |
||
41 | 41 | // Determine the type of loader that is used by this twig |
42 | 42 | if ($loader instanceof \Twig_Loader_Filesystem) { |
43 | 43 | $loader->addPath($path); |
44 | - } else if($loader instanceof \Twig_Loader_Chain) { |
|
44 | + } else if ($loader instanceof \Twig_Loader_Chain) { |
|
45 | 45 | $loader->addLoader( |
46 | 46 | new \Twig_Loader_Filesystem($path) |
47 | 47 | ); |