Completed
Push — master ( ad8ed5...365b59 )
by Matze
03:01
created
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
     }
35 35
 
36 36
     /**
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     protected function dumpVariableToCache(string $name, $variable)
41 41
     {
42
-        $this->dumpCacheFile($name, 'return ' . var_export($variable, true) . ';');
42
+        $this->dumpCacheFile($name, 'return '.var_export($variable, true).';');
43 43
     }
44 44
 
45 45
     /**
@@ -48,6 +48,6 @@  discard block
 block discarded – undo
48 48
      */
49 49
     private function getCacheFileName($name)
50 50
     {
51
-        return ROOT . 'cache/' . basename($name, '.php')  . '.php';
51
+        return ROOT.'cache/'.basename($name, '.php').'.php';
52 52
     }
53 53
 }
Please login to merge, or discard this patch.
src/AnnotationLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         $this->builders  = $builders;
43 43
         $this->reader    = new IndexedReader(new AnnotationReader());
44 44
 
45
-        AnnotationRegistry::registerLoader(function ($class) {
45
+        AnnotationRegistry::registerLoader(function($class) {
46 46
             return class_exists($class);
47 47
         });
48 48
     }
Please login to merge, or discard this patch.
src/DependencyInjection/CompilerPass/ConfigCompilerPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     {
24 24
         $locator = new FileLocator([
25 25
             ROOT,
26
-            ROOT . 'app/',
26
+            ROOT.'app/',
27 27
         ]);
28 28
 
29 29
         $xmlLoader = new XmlFileLoader($container, $locator);
Please login to merge, or discard this patch.
src/DependencyInjection/Rebuild.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -38,15 +38,15 @@  discard block
 block discarded – undo
38 38
     protected function readAnnotations(ContainerBuilder $container)
39 39
     {
40 40
         $annotationLoader = new AnnotationLoader($container);
41
-        $annotationLoader->load(ROOT . 'src');
41
+        $annotationLoader->load(ROOT.'src');
42 42
 
43
-        if (!is_dir(ROOT . 'vendor/brainexe/')) {
43
+        if (!is_dir(ROOT.'vendor/brainexe/')) {
44 44
             return;
45 45
         }
46 46
 
47 47
         $appFinder = new Finder();
48 48
         $appFinder->directories()
49
-            ->in([ROOT . 'vendor/brainexe/'])
49
+            ->in([ROOT.'vendor/brainexe/'])
50 50
             ->depth('<=1')
51 51
             ->name('src');
52 52
 
@@ -62,8 +62,8 @@  discard block
 block discarded – undo
62 62
     protected function dumpContainer(ContainerBuilder $container)
63 63
     {
64 64
         $debug         = $container->getParameter('debug');
65
-        $containerFile = ROOT . 'cache/dic.php';
66
-        $configFile    = ROOT . 'cache/config.json';
65
+        $containerFile = ROOT.'cache/dic.php';
66
+        $configFile    = ROOT.'cache/config.json';
67 67
 
68 68
         $dumper = new PhpDumper($container);
69 69
         $dumper->setProxyDumper(new ProxyDumper());
Please login to merge, or discard this patch.
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/CatchUserException.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
     }
81 81
 
82 82
     /**
83
-     * @param Throwable $exception
83
+     * @param UserException $exception
84 84
      * @param Request $request
85 85
      * @param Response $response
86 86
      */
Please login to merge, or discard this patch.
src/Console/ClearCacheCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,8 +59,8 @@
 block discarded – undo
59 59
         $event = new ClearCacheEvent();
60 60
         $this->dispatcher->dispatchEvent($event);
61 61
 
62
-        @mkdir(ROOT . 'logs', 0744);
63
-        @mkdir(ROOT . 'cache', 0744);
62
+        @mkdir(ROOT.'logs', 0744);
63
+        @mkdir(ROOT.'cache', 0744);
64 64
 
65 65
         $output->writeln('<info>done</info>');
66 66
     }
Please login to merge, or discard this patch.