@@ -17,7 +17,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -65,7 +65,7 @@ |
||
| 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 | } |