@@ -34,7 +34,7 @@ |
||
| 34 | 34 | public function getFunctions() |
| 35 | 35 | { |
| 36 | 36 | return [ |
| 37 | - new \Twig_SimpleFunction('spiral', function ($alias) { |
|
| 37 | + new \Twig_SimpleFunction('spiral', function($alias) { |
|
| 38 | 38 | return $this->container->get($alias); |
| 39 | 39 | }), |
| 40 | 40 | new \Twig_SimpleFunction('dump', 'dump') |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | $sourceLines = explode("\n", $source); |
| 83 | 83 | |
| 84 | 84 | //Step #3, no blank lines and html comments (will keep conditional commends) |
| 85 | - $sourceLines = array_filter($sourceLines, function ($line) { |
|
| 85 | + $sourceLines = array_filter($sourceLines, function($line) { |
|
| 86 | 86 | return trim($line); |
| 87 | 87 | }); |
| 88 | 88 | |
@@ -79,6 +79,6 @@ |
||
| 79 | 79 | 'name' => $name |
| 80 | 80 | ]); |
| 81 | 81 | |
| 82 | - return $this->reportingDirectory() . $filename; |
|
| 82 | + return $this->reportingDirectory().$filename; |
|
| 83 | 83 | } |
| 84 | 84 | } |
| 85 | 85 | \ No newline at end of file |
@@ -26,11 +26,11 @@ |
||
| 26 | 26 | $module = str_replace('/', '\\', $module); |
| 27 | 27 | $module = explode('\\', $module); |
| 28 | 28 | |
| 29 | - array_walk($module, function (&$chunk) { |
|
| 29 | + array_walk($module, function(&$chunk) { |
|
| 30 | 30 | $chunk = Inflector::classify($chunk); |
| 31 | 31 | }); |
| 32 | 32 | |
| 33 | - return join('\\', $module) . 'Module'; |
|
| 33 | + return join('\\', $module).'Module'; |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | /** |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | EncrypterConfig $config, |
| 41 | 41 | EncrypterManager $encrypterManager |
| 42 | 42 | ) { |
| 43 | - $envFilename = $directories->directory('root') . '.env'; |
|
| 43 | + $envFilename = $directories->directory('root').'.env'; |
|
| 44 | 44 | |
| 45 | 45 | if (!$files->exists($envFilename)) { |
| 46 | 46 | $this->writeln( |
@@ -52,20 +52,20 @@ |
||
| 52 | 52 | */ |
| 53 | 53 | public function perform(DirectoriesInterface $directories) |
| 54 | 54 | { |
| 55 | - $host = $this->argument('host') . ':' . $this->option('port'); |
|
| 55 | + $host = $this->argument('host').':'.$this->option('port'); |
|
| 56 | 56 | |
| 57 | 57 | $this->writeln("<info>Development server started at <comment>{$host}</comment></info>"); |
| 58 | 58 | $this->writeln("Press <comment>Ctrl-C</comment> to quit."); |
| 59 | 59 | |
| 60 | 60 | $process = new Process( |
| 61 | - '"' . PHP_BINARY . "\" -S {$host} \"{$directories->directory('framework')}../server.php\"", |
|
| 61 | + '"'.PHP_BINARY."\" -S {$host} \"{$directories->directory('framework')}../server.php\"", |
|
| 62 | 62 | $directories->directory('public'), |
| 63 | 63 | null, |
| 64 | 64 | null, |
| 65 | 65 | $this->option('timeout') |
| 66 | 66 | ); |
| 67 | 67 | |
| 68 | - $process->run(function ($type, $data) { |
|
| 68 | + $process->run(function($type, $data) { |
|
| 69 | 69 | if ($type != Process::ERR) { |
| 70 | 70 | //First character contains request type, second is space |
| 71 | 71 | if ($data[0] == 'S' || $this->isVerbosity()) { |
@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | ['[]' => '', '[/]' => '', '[' => '', ']' => '', '//' => '/'] |
| 264 | 264 | ); |
| 265 | 265 | |
| 266 | - $uri = new Uri(($this->withHost ? '' : $this->prefix) . rtrim($path, '/')); |
|
| 266 | + $uri = new Uri(($this->withHost ? '' : $this->prefix).rtrim($path, '/')); |
|
| 267 | 267 | |
| 268 | 268 | return empty($query) ? $uri : $uri->withQuery(http_build_query($query)); |
| 269 | 269 | } |
@@ -380,7 +380,7 @@ discard block |
||
| 380 | 380 | $template = preg_replace('/<(\w+):?.*?>/', '<\1>', $this->pattern); |
| 381 | 381 | |
| 382 | 382 | $this->compiled = [ |
| 383 | - 'pattern' => '/^' . strtr($template, $replaces) . '$/iu', |
|
| 383 | + 'pattern' => '/^'.strtr($template, $replaces).'$/iu', |
|
| 384 | 384 | 'template' => stripslashes(str_replace('?', '', $template)), |
| 385 | 385 | 'options' => array_fill_keys($options, null) |
| 386 | 386 | ]; |
@@ -395,11 +395,11 @@ discard block |
||
| 395 | 395 | $path = $request->getUri()->getPath(); |
| 396 | 396 | |
| 397 | 397 | if (empty($path) || $path[0] !== '/') { |
| 398 | - $path = '/' . $path; |
|
| 398 | + $path = '/'.$path; |
|
| 399 | 399 | } |
| 400 | 400 | |
| 401 | 401 | if ($this->withHost) { |
| 402 | - $uri = $request->getUri()->getHost() . $path; |
|
| 402 | + $uri = $request->getUri()->getHost().$path; |
|
| 403 | 403 | } else { |
| 404 | 404 | $uri = substr($path, strlen($this->prefix)); |
| 405 | 405 | } |
@@ -217,7 +217,7 @@ |
||
| 217 | 217 | } |
| 218 | 218 | |
| 219 | 219 | //VALUE.HMAC |
| 220 | - return $cookie->withValue($cookie->getValue() . $this->hmacSign($cookie->getValue())); |
|
| 220 | + return $cookie->withValue($cookie->getValue().$this->hmacSign($cookie->getValue())); |
|
| 221 | 221 | } |
| 222 | 222 | |
| 223 | 223 | /** |
@@ -166,7 +166,7 @@ |
||
| 166 | 166 | } |
| 167 | 167 | |
| 168 | 168 | if (!empty($port = $uri->getPort())) { |
| 169 | - $host = $host . ':' . $port; |
|
| 169 | + $host = $host.':'.$port; |
|
| 170 | 170 | } |
| 171 | 171 | |
| 172 | 172 | if (strpos($pattern, '%s') === false) { |