Completed
Push — develop ( 390d3f...e8b3d3 )
by Paul
02:38
created
src/PhpUnitGen/Parser/DirectoryParser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     public function parse(string $sourceDirectory, string $targetDirectory): DirectoryModelInterface
71 71
     {
72
-        if (! $this->fileSystem->has($sourceDirectory) || ! $this->fileSystem->getMimetype($sourceDirectory) === 'directory') {
72
+        if (!$this->fileSystem->has($sourceDirectory) || !$this->fileSystem->getMimetype($sourceDirectory) === 'directory') {
73 73
             throw new ParsingException(sprintf('The source directory "%s" does not exist.', $sourceDirectory));
74 74
         }
75 75
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
                     $directoryModel->addPhpFile($this->phpFileParser->parse($this->fileSystem->read($file['path'])));
100 100
                 }
101 101
             } catch (ParsingException $exception) {
102
-                if (! $this->config->hasIgnore()) {
102
+                if (!$this->config->hasIgnore()) {
103 103
                     throw new ParsingException($exception->getMessage());
104 104
                 }
105 105
                 $this->output->writeln(sprintf('<error>%s</error>', $exception->getMessage()));
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      */
122 122
     private function validateFile(string $type, string $path): bool
123 123
     {
124
-        if (! $type === 'file'
124
+        if (!$type === 'file'
125 125
             || Validator::regex($this->config->getIncludeRegex())->validate($path) !== true
126 126
             || Validator::regex($this->config->getExcludeRegex())->validate($path) !== false
127 127
         ) {
Please login to merge, or discard this patch.