Completed
Push — master ( bd7133...e05a5e )
by BruceScrutinizer
07:36
created
src/Command/AbstractValidateNamespaceCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     protected function execute(InputInterface $input, OutputInterface $output)
28 28
     {
29 29
         $output->writeln("Boot validate analysis....");
30
-        $config = Config::loadFromFile(new FileSystemPath(\getcwd().'/namespace-protector-config.json'));
30
+        $config = Config::loadFromFile(new FileSystemPath(\getcwd() . '/namespace-protector-config.json'));
31 31
         $factory = new NamespaceProtectorProcessorFactory();
32 32
         $namespaceProtectorProcessor = $factory->create($config);
33 33
 
@@ -42,9 +42,9 @@  discard block
 block discarded – undo
42 42
         $output->writeln('Start analysis...');
43 43
         $namespaceProtectorProcessor->process();
44 44
 
45
-        $output->writeln('<fg=red>Total errors: ' . $namespaceProtectorProcessor->getCountErrors().'</>');
45
+        $output->writeln('<fg=red>Total errors: ' . $namespaceProtectorProcessor->getCountErrors() . '</>');
46 46
 
47
-        if ($namespaceProtectorProcessor->getCountErrors()>0) {
47
+        if ($namespaceProtectorProcessor->getCountErrors() > 0) {
48 48
             return self::FAILURE;
49 49
         }
50 50
 
Please login to merge, or discard this patch.
src/NamespaceProtectorProcessorFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     private function createCacheObject(Config $config): CacheInterface
39 39
     {
40 40
         if ($config->enabledCache()) {
41
-            $directory = \sys_get_temp_dir().self::NAMESPACE_PROTECTOR_CACHE;
41
+            $directory = \sys_get_temp_dir() . self::NAMESPACE_PROTECTOR_CACHE;
42 42
 
43 43
             return new SimpleFileCache(new FileSystemPath($directory, true));
44 44
         }
Please login to merge, or discard this patch.