@@ -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 |
@@ -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()) { |
@@ -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) { |
@@ -11,17 +11,17 @@ |
||
11 | 11 | $out = fopen('php://stdout', 'w'); |
12 | 12 | |
13 | 13 | if ($_SERVER['REQUEST_METHOD'] == 'GET') { |
14 | - $logMessage = '[' . date('M d, Y H:i:s') . '] GET '; |
|
14 | + $logMessage = '['.date('M d, Y H:i:s').'] GET '; |
|
15 | 15 | } else { |
16 | - $logMessage = '[' . date('M d, Y H:i:s') . '] <fg=cyan>' . $_SERVER['REQUEST_METHOD'] . '</fg=cyan>'; |
|
16 | + $logMessage = '['.date('M d, Y H:i:s').'] <fg=cyan>'.$_SERVER['REQUEST_METHOD'].'</fg=cyan>'; |
|
17 | 17 | } |
18 | 18 | |
19 | -if ($requestURI !== '/' && file_exists(getcwd() . $requestURI)) { |
|
19 | +if ($requestURI !== '/' && file_exists(getcwd().$requestURI)) { |
|
20 | 20 | //CLI-Server will handle resources by itself. |
21 | - fwrite($out, 'R ' . $logMessage . ' ' . $requestURI); |
|
21 | + fwrite($out, 'R '.$logMessage.' '.$requestURI); |
|
22 | 22 | |
23 | 23 | return false; |
24 | 24 | } |
25 | 25 | |
26 | -fwrite($out, 'S ' . $logMessage . ' <info>' . $_SERVER['REQUEST_URI'] . '</info>'); |
|
26 | +fwrite($out, 'S '.$logMessage.' <info>'.$_SERVER['REQUEST_URI'].'</info>'); |
|
27 | 27 | require_once 'index.php'; |
28 | 28 | \ No newline at end of file |
@@ -66,7 +66,7 @@ |
||
66 | 66 | |
67 | 67 | $route = $this; |
68 | 68 | |
69 | - return function (Request $request, Response $response) use ($route) { |
|
69 | + return function(Request $request, Response $response) use ($route) { |
|
70 | 70 | list($controller, $action) = explode(':', str_replace('::', ':', $route->target)); |
71 | 71 | |
72 | 72 | if ($action == self::DYNAMIC_ACTION) { |