Passed
Push — master ( f9ea00...a0fd91 )
by Mauro
02:00
created
benchmark/get.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 ini_set('display_startup_errors', 1);
7 7
 error_reporting(E_ALL);
8 8
 
9
-include __DIR__.'/../vendor/autoload.php';
9
+include __DIR__ . '/../vendor/autoload.php';
10 10
 
11 11
 $config = __DIR__ . '/../config/yaml/config.yaml';
12 12
 DIC::initFromFile($config);
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 
16 16
 $start = microtime(true);
17 17
 $memoryUsage = memory_get_usage();
18
-for ($i=0;$i<$max;$i++) {
18
+for ($i = 0; $i < $max; $i++) {
19 19
     DIC::get('acme-calculator');
20 20
 }
21 21
 
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 echo PHP_EOL;
27 27
 echo '----------------------------------';
28 28
 echo PHP_EOL;
29
-echo 'LOOPING '.$max.' ITEMS';
29
+echo 'LOOPING ' . $max . ' ITEMS';
30 30
 echo PHP_EOL;
31 31
 echo '----------------------------------';
32 32
 echo PHP_EOL;
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 echo PHP_EOL;
35 35
 echo '----------------------------------';
36 36
 echo PHP_EOL;
37
-echo 'MEMORY USAGE: '. (memory_get_usage() - $memoryUsage);
37
+echo 'MEMORY USAGE: ' . (memory_get_usage() - $memoryUsage);
38 38
 echo PHP_EOL;
39 39
 echo '----------------------------------';
40 40
 echo PHP_EOL;
Please login to merge, or discard this patch.
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.