Completed
Push — master ( b49317...e357ce )
by BruceScrutinizer
02:00
created
src/Db/BooleanMatchPos.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     public function evaluate(Iterable $data, Entry $matchMe): bool
14 14
     {
15 15
         foreach ($data as $entry => $value) {
16
-            if (strpos($matchMe->get(), $entry) !==false) {
16
+            if (strpos($matchMe->get(), $entry) !== false) {
17 17
                 return true;
18 18
             }
19 19
         }
Please login to merge, or discard this patch.
src/Config/Config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
             '' . PHP_EOL .
98 98
             '|Dump config:' . PHP_EOL .
99 99
             '|> Version: ' . $this->getVersion() . PHP_EOL .
100
-            '|> Cache: ' . ($this->enabledCache() === true ? "TRUE": "FALSE")  . PHP_EOL .
100
+            '|> Cache: ' . ($this->enabledCache() === true ? "TRUE" : "FALSE") . PHP_EOL .
101 101
             '|> Path start: ' . $this->pathStart->get() . PHP_EOL .
102 102
             '|> Composer Json path: ' . $this->pathComposerJson->get() . PHP_EOL .
103 103
             '|> Mode: ' . $this->getMode() . PHP_EOL .
Please login to merge, or discard this patch.
src/Command/AbstractValidateNamespaceCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         
41 41
         $output->writeln("Boot validate analysis....");
42 42
 
43
-        $config = Config::loadFromFile(new FileSystemPath(\getcwd().'/namespace-protector-config.json'));
43
+        $config = Config::loadFromFile(new FileSystemPath(\getcwd() . '/namespace-protector-config.json'));
44 44
 
45 45
         $composerJson = new ComposerJson($config->getPathComposerJson());
46 46
         $composerJson->load();
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         $fileSystem = new FileSystemScanner([$config->getStartPath()]);
49 49
         $metaDataLoader = new EnvironmentDataLoader($composerJson);
50 50
 
51
-        $directory = \sys_get_temp_dir().self::NAMESPACE_PROTECTOR_CACHE;
51
+        $directory = \sys_get_temp_dir() . self::NAMESPACE_PROTECTOR_CACHE;
52 52
         $cacheClass = $this->createCacheObject($directory, $config);
53 53
 
54 54
         $analyser = new Analyser(new PhpFileParser($config, $metaDataLoader, $cacheClass));
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         $output->writeln('Start analysis...');
66 66
         $this->processEntries($fileSystem, $analyser);
67 67
 
68
-        $output->writeln('<fg=red>Total errors: ' . $analyser->getCountErrors().'</>');
68
+        $output->writeln('<fg=red>Total errors: ' . $analyser->getCountErrors() . '</>');
69 69
 
70 70
         if ($analyser->withError()) {
71 71
             return self::FAILURE;
Please login to merge, or discard this patch.