Passed
Push — master ( f9ea00...a0fd91 )
by Mauro
02:00
created
src/Console/CacheDestroyCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 
23 23
     protected function execute(InputInterface $input, OutputInterface $output)
24 24
     {
25
-        $cacheDir = !empty($input->getArgument('cache_dir')) ? $input->getArgument('cache_dir') : __DIR__.'/../../_cache';
25
+        $cacheDir = !empty($input->getArgument('cache_dir')) ? $input->getArgument('cache_dir') : __DIR__ . '/../../_cache';
26 26
 
27 27
         DIC::destroyCacheDir($cacheDir);
28 28
 
Please login to merge, or discard this patch.
src/DIC.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         self::$values = [];
39 39
         self::$sha = sha1_file($filename);
40 40
 
41
-        $cacheFile = self::getCacheDir(). DIRECTORY_SEPARATOR .self::$sha.'.php';
41
+        $cacheFile = self::getCacheDir() . DIRECTORY_SEPARATOR . self::$sha . '.php';
42 42
 
43 43
         if (false === file_exists($cacheFile)) {
44 44
             if (false === is_dir(self::getCacheDir()) and false === mkdir(self::getCacheDir(), 0755, true)) {
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     private static function getCacheDir()
72 72
     {
73
-        return (!empty(self::$cacheDir)) ? self::$cacheDir : __DIR__.'/../_cache';
73
+        return (!empty(self::$cacheDir)) ? self::$cacheDir : __DIR__ . '/../_cache';
74 74
     }
75 75
 
76 76
     /**
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      */
90 90
     private static function checkForCache()
91 91
     {
92
-        if(empty(self::$cache)){
92
+        if (empty(self::$cache)) {
93 93
             throw new ConfigException('No config file was provided. You MUST use before initFromFile() method.');
94 94
         }
95 95
     }
Please login to merge, or discard this patch.