@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | */ |
77 | 77 | public function invoke(string $sourcePath, string $targetPath, string $name = 'GeneratedTest'): bool |
78 | 78 | { |
79 | - if (! $this->fileValidator->validate($sourcePath)) { |
|
79 | + if (!$this->fileValidator->validate($sourcePath)) { |
|
80 | 80 | return false; |
81 | 81 | } |
82 | 82 | |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | { |
111 | 111 | $targetPathExists = $this->fileSystem->has($targetPath); |
112 | 112 | |
113 | - if ($targetPathExists && ! $this->config->hasOverwrite()) { |
|
113 | + if ($targetPathExists && !$this->config->hasOverwrite()) { |
|
114 | 114 | throw new ExecutorException(sprintf('The target file "%s" already exists.', $targetPath)); |
115 | 115 | } |
116 | 116 |
@@ -57,7 +57,7 @@ |
||
57 | 57 | |
58 | 58 | // Namespace |
59 | 59 | $namespace = $phpFile->getNamespaceString(); |
60 | - $this->add(sprintf('namespace Test%s;', ($namespace === null? '' : '\\' . $namespace)))->add(); |
|
60 | + $this->add(sprintf('namespace Test%s;', ($namespace === null ? '' : '\\' . $namespace)))->add(); |
|
61 | 61 | |
62 | 62 | // Uses |
63 | 63 | $this->multiple($this->getUseLines($phpFile))->add(); |