Completed
Push — master ( 2aa4c0...d2f1f3 )
by Matze
06:57
created
src/Translation/CompilerPass.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 class CompilerPass implements CompilerPassInterface
18 18
 {
19 19
 
20
-    const CACHE_FILE = ROOT . 'cache/translation_token';
20
+    const CACHE_FILE = ROOT.'cache/translation_token';
21 21
     const TAG = 'middleware';
22 22
 
23 23
     use FileCacheTrait;
@@ -93,15 +93,15 @@  discard block
 block discarded – undo
93 93
     {
94 94
         ksort($tokens);
95 95
 
96
-        $contentPhp = sprintf("return [\n    %s\n];\n", implode(",\n    ", array_map(function (Token $token) {
96
+        $contentPhp = sprintf("return [\n    %s\n];\n", implode(",\n    ", array_map(function(Token $token) {
97 97
             return sprintf('_("%s")', addslashes($token->token));
98 98
         }, $tokens)));
99 99
 
100
-        $contentHtml = sprintf('%s', implode("\n", array_map(function (Token $token) {
100
+        $contentHtml = sprintf('%s', implode("\n", array_map(function(Token $token) {
101 101
             return sprintf('<span translate>%s</span>', addslashes($token->token));
102 102
         }, $tokens)));
103 103
 
104 104
         $this->dumpCacheFile(self::CACHE_FILE, $contentPhp);
105
-        file_put_contents(self::CACHE_FILE . '.html', $contentHtml);
105
+        file_put_contents(self::CACHE_FILE.'.html', $contentHtml);
106 106
     }
107 107
 }
Please login to merge, or discard this patch.
src/Middleware/Security.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
             $host = parse_url($url, PHP_URL_HOST) ?: $request->getHost();
66 66
 
67 67
             if ($port) {
68
-                $host .= ':' . $port;
68
+                $host .= ':'.$port;
69 69
             }
70 70
             $connectSrc[] = $host;
71 71
         }
Please login to merge, or discard this patch.