Test Setup Failed
Branch develop (1b34c6)
by Paul
01:35
created
src/Console/GenerateCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,12 +41,12 @@
 block discarded – undo
41 41
             $configPath = $input->getArgument('config-path');
42 42
         }
43 43
 
44
-        if (! file_exists($configPath)) {
44
+        if (!file_exists($configPath)) {
45 45
             throw new InvalidConfigException(sprintf('Config file "%s" does not exists.', $configPath));
46 46
         }
47 47
 
48 48
         $extension = pathinfo($configPath, PATHINFO_EXTENSION);
49
-        if (! Validator::key($extension)->validate(static::CONSOLE_CONFIG_FACTORIES)) {
49
+        if (!Validator::key($extension)->validate(static::CONSOLE_CONFIG_FACTORIES)) {
50 50
             throw new InvalidConfigException(
51 51
                 sprintf('Config file "%s" must have .yml, .json or .php extension.', $configPath)
52 52
             );
Please login to merge, or discard this patch.
src/Model/PropertyTrait/NamespaceTrait.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,8 +42,7 @@  discard block
 block discarded – undo
42 42
     public function getNamespaceString(): ?string
43 43
     {
44 44
         return Validator::notEmpty()->validate($this->namespace) ?
45
-            implode('\\', $this->namespace) :
46
-            null;
45
+            implode('\\', $this->namespace) : null;
47 46
     }
48 47
 
49 48
     /**
@@ -52,7 +51,6 @@  discard block
 block discarded – undo
52 51
     public function getNamespaceLast(): ?string
53 52
     {
54 53
         return Validator::notEmpty()->validate($this->namespace) ?
55
-            $this->namespace[(count($this->namespace) - 1)] :
56
-            null;
54
+            $this->namespace[(count($this->namespace) - 1)] : null;
57 55
     }
58 56
 }
Please login to merge, or discard this patch.
src/Exception/ExceptionCatcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     /**
45 45
      * {@inheritdoc}
46 46
      */
47
-    public function catch(Exception $exception, string $path): void
47
+    public function catch (Exception $exception, string $path): void
48 48
     {
49 49
         if ($this->config->hasIgnore()) {
50 50
             $this->output->note(sprintf('On file "%s": %s', $path, $exception->getMessage()));
Please login to merge, or discard this patch.
src/Exception/ExceptionInterface/ExceptionCatcherInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,5 +23,5 @@
 block discarded – undo
23 23
      *
24 24
      * @throws Exception If the configuration does not allow ignoring errors.
25 25
      */
26
-    public function catch(Exception $exception, string $path): void;
26
+    public function catch (Exception $exception, string $path): void;
27 27
 }
Please login to merge, or discard this patch.
src/Parser/NodeParser/AbstractNodeParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      */
34 34
     public function parse(Node $node, NodeInterface $parent): NodeInterface
35 35
     {
36
-        if (! method_exists($this, 'invoke')) {
36
+        if (!method_exists($this, 'invoke')) {
37 37
             throw new NodeParserException(sprintf(
38 38
                 'Class "%s" must implements method invoke described in AbstractNodeParser',
39 39
                 get_class($this)
Please login to merge, or discard this patch.
src/Model/PropertyInterface/VisibilityInterface.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,17 +21,17 @@
 block discarded – undo
21 21
     /**
22 22
      * @var int PUBLIC A public visibility.
23 23
      */
24
-    const PUBLIC             = 1;
24
+    const PUBLIC = 1;
25 25
 
26 26
     /**
27 27
      * @var int PUBLIC A protected visibility.
28 28
      */
29
-    const PROTECTED          = 2;
29
+    const PROTECTED = 2;
30 30
 
31 31
     /**
32 32
      * @var int PUBLIC A private visibility.
33 33
      */
34
-    const PRIVATE            = 3;
34
+    const PRIVATE = 3;
35 35
 
36 36
     /**
37 37
      * @param int|null $visibility The new visibility to set.
Please login to merge, or discard this patch.
src/Model/PhpFileModel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
     public function getFullNameFor(string $name): string
67 67
     {
68 68
         $namespace = $this->getNamespaceString();
69
-        return $namespace === null? $name : $namespace . '\\' . $name;
69
+        return $namespace === null ? $name : $namespace . '\\' . $name;
70 70
     }
71 71
 
72 72
     /**
Please login to merge, or discard this patch.
src/Executor/FileExecutor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Renderer/PhpFileRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.