Completed
Push — master ( e6928b...44b89d )
by Matze
07:30
created
src/DependencyInjection/Rebuild.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,11 +52,11 @@  discard block
 block discarded – undo
52 52
 
53 53
         $appFinder = new Finder();
54 54
         $appFinder->directories()
55
-            ->in([ROOT . 'vendor/brainexe/'])
55
+            ->in([ROOT.'vendor/brainexe/'])
56 56
             ->depth("<=1")
57 57
             ->name('src');
58 58
 
59
-        $annotationLoader->load(ROOT . 'src');
59
+        $annotationLoader->load(ROOT.'src');
60 60
 
61 61
         foreach ($appFinder as $dir) {
62 62
             /** @var SplFileInfo $dir */
@@ -72,9 +72,9 @@  discard block
 block discarded – undo
72 72
         $debug         = $container->getParameter('debug');
73 73
         $randomId      = mt_rand();
74 74
         $className     = sprintf('dic_%d', $randomId);
75
-        $containerFile = ROOT . 'cache/dic.php';
76
-        $versionFile   = ROOT . 'cache/dic.txt';
77
-        $configFile    = ROOT . 'cache/config.json';
75
+        $containerFile = ROOT.'cache/dic.php';
76
+        $versionFile   = ROOT.'cache/dic.txt';
77
+        $configFile    = ROOT.'cache/config.json';
78 78
 
79 79
         $dumper = new PhpDumper($container);
80 80
         $dumper->setProxyDumper(new ProxyDumper());
Please login to merge, or discard this patch.
src/Redis/Command/Import.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
      */
51 51
     protected function handleImport(string $content)
52 52
     {
53
-        $redis   = $this->getRedis();
53
+        $redis = $this->getRedis();
54 54
 
55 55
         foreach (explode("\n", $content) as $line) {
56 56
             preg_match_all('/"(?:\\\\.|[^\\\\"])*"|\S+/', $line, $matches);
Please login to merge, or discard this patch.
src/Console/TestGenerator/HandleExistingFile.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,8 +77,8 @@
 block discarded – undo
77 77
      * @param OutputInterface $output
78 78
      * @param $template
79 79
      * @param $answerId
80
-     * @param $originalTest
81
-     * @return bool|string
80
+     * @param string $originalTest
81
+     * @return false|string
82 82
      * @throws Exception
83 83
      */
84 84
     private function handleQuestion(OutputInterface $output, string $template, string $answerId, $originalTest)
Please login to merge, or discard this patch.
src/Application/Locale.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 {
14 14
 
15 15
     const DOMAIN   = 'messages';
16
-    const LANG_DIR = ROOT . '/cache/lang/';
16
+    const LANG_DIR = ROOT.'/cache/lang/';
17 17
 
18 18
     /**
19 19
      * @var string[]
@@ -61,8 +61,8 @@  discard block
 block discarded – undo
61 61
      */
62 62
     public function getTokens()
63 63
     {
64
-        return array_map(function (string $locale) {
65
-            return 'locale.' . $locale;
64
+        return array_map(function(string $locale) {
65
+            return 'locale.'.$locale;
66 66
         }, $this->locales);
67 67
     }
68 68
 }
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
             $allowed[] = $host;
71 71
         }
Please login to merge, or discard this patch.
src/DependencyInjection/CompilerPass/Log.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         foreach ($logLevels as $file => $level) {
36 36
             $definition->addMethodCall('pushHandler', [
37 37
                 new Definition(StreamHandler::class, [
38
-                    $baseDir . $file,
38
+                    $baseDir.$file,
39 39
                     $level
40 40
                 ])
41 41
             ]);
Please login to merge, or discard this patch.
src/Traits/FileCacheTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     {
31 31
         $fileName = $this->getCacheFileName($name);
32 32
 
33
-        file_put_contents($fileName, "<?php \n//@codingStandardsIgnoreFile" . PHP_EOL . $content);
33
+        file_put_contents($fileName, "<?php \n//@codingStandardsIgnoreFile".PHP_EOL.$content);
34 34
         @chmod($fileName, 0777);
35 35
     }
36 36
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     protected function dumpVariableToCache(string $name, $variable)
42 42
     {
43
-        $this->dumpCacheFile($name, 'return ' . var_export($variable, true) . ';');
43
+        $this->dumpCacheFile($name, 'return '.var_export($variable, true).';');
44 44
     }
45 45
 
46 46
     /**
@@ -49,6 +49,6 @@  discard block
 block discarded – undo
49 49
      */
50 50
     private function getCacheFileName($name)
51 51
     {
52
-        return ROOT . 'cache/' . basename($name, '.php')  . '.php';
52
+        return ROOT.'cache/'.basename($name, '.php').'.php';
53 53
     }
54 54
 }
Please login to merge, or discard this patch.
src/Translation/CompilerPass.php 1 patch
Spacing   +5 added lines, -5 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,16 +93,16 @@  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);
106
-        chmod(self::CACHE_FILE . '.html', 0777);
105
+        file_put_contents(self::CACHE_FILE.'.html', $contentHtml);
106
+        chmod(self::CACHE_FILE.'.html', 0777);
107 107
     }
108 108
 }
Please login to merge, or discard this patch.