Completed
Branch 09branch (946dde)
by Anton
05:16
created
source/Spiral/Views/Engines/Twig/Extensions/SpiralExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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')
Please login to merge, or discard this patch.
source/Spiral/Views/Processors/PrettifyProcessor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
source/Spiral/Debug/Configs/SnapshotConfig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,6 +79,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
source/Spiral/Commands/Modules/Traits/ModuleTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,11 +26,11 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
source/Spiral/Commands/Spiral/KeyCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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(
Please login to merge, or discard this patch.
source/Spiral/Commands/ServerCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,20 +52,20 @@
 block discarded – undo
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()) {
Please login to merge, or discard this patch.
source/Spiral/Http/Routing/AbstractRoute.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
source/Spiral/Http/Cookies/CookieManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -217,7 +217,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
source/Spiral/Http/Configs/HttpConfig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.