Completed
Push — master ( f4c1ce...4e4aae )
by Paul
03:30
created
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/Model/PhpFileModel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 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
     /**
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
      */
127 127
     public function getUse(string $name): string
128 128
     {
129
-        if (! $this->hasUse($name)) {
129
+        if (!$this->hasUse($name)) {
130 130
             throw new ParseException(sprintf(
131 131
                 'Trying to get a full class name for "%s", but it does not exists',
132 132
                 $name
Please login to merge, or discard this patch.
src/Model/PropertyTrait/NamespaceTrait.php 1 patch
Spacing   +4 added lines, -6 removed lines patch added patch discarded remove patch
@@ -41,9 +41,8 @@  discard block
 block discarded – undo
41 41
      */
42 42
     public function getNamespaceString(): ?string
43 43
     {
44
-        return Validator::notEmpty()->validate($this->namespace)?
45
-            implode('\\', $this->namespace) :
46
-            null;
44
+        return Validator::notEmpty()->validate($this->namespace) ?
45
+            implode('\\', $this->namespace) : null;
47 46
     }
48 47
 
49 48
     /**
@@ -51,8 +50,7 @@  discard block
 block discarded – undo
51 50
      */
52 51
     public function getNamespaceLast(): ?string
53 52
     {
54
-        return Validator::notEmpty()->validate($this->namespace)?
55
-            $this->namespace[(count($this->namespace) - 1)] :
56
-            null;
53
+        return Validator::notEmpty()->validate($this->namespace) ?
54
+            $this->namespace[(count($this->namespace) - 1)] : null;
57 55
     }
58 56
 }
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
-    public const PUBLIC             = 1;
24
+    public const PUBLIC = 1;
25 25
 
26 26
     /**
27 27
      * @var int PUBLIC A protected visibility.
28 28
      */
29
-    public const PROTECTED          = 2;
29
+    public const PROTECTED = 2;
30 30
 
31 31
     /**
32 32
      * @var int PUBLIC A private visibility.
33 33
      */
34
-    public const PRIVATE            = 3;
34
+    public 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/Executor/Executor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
         $phpFile->setName($name);
60 60
 
61 61
         if ($phpFile->getTestableFunctionsCount() === 0) {
62
-            if (! $this->config->hasInterfaceParsing() || $phpFile->getInterfacesFunctionsCount() === 0) {
62
+            if (!$this->config->hasInterfaceParsing() || $phpFile->getInterfacesFunctionsCount() === 0) {
63 63
                 return null;
64 64
             }
65 65
         }
Please login to merge, or discard this patch.
src/Validator/FileValidator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,11 +46,11 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function validate(string $path): bool
48 48
     {
49
-        if (! $this->validatePath($path)) {
49
+        if (!$this->validatePath($path)) {
50 50
             return false;
51 51
         }
52
-        if (! $this->validateIncludeRegex($path)
53
-            || ! $this->validateExcludeRegex($path)
52
+        if (!$this->validateIncludeRegex($path)
53
+            || !$this->validateExcludeRegex($path)
54 54
         ) {
55 55
             return false;
56 56
         }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     private function validatePath(string $path): bool
71 71
     {
72
-        if (! $this->fileSystem->has($path)) {
72
+        if (!$this->fileSystem->has($path)) {
73 73
             throw new FileNotFoundException(sprintf('The source file "%s" does not exist.', $path));
74 74
         }
75 75
         if ($this->fileSystem->get($path)->getType() === 'dir') {
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
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     /**
46 46
      * {@inheritdoc}
47 47
      */
48
-    public function catch(Exception $exception, string $path): void
48
+    public function catch (Exception $exception, string $path): void
49 49
     {
50 50
         if ($this->config->hasIgnore()
51 51
             && $exception instanceof IgnorableException
Please login to merge, or discard this patch.
src/Model/PropertyTrait/ClassLikeTrait.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
     public function countNotAbstractFunctions(): int
58 58
     {
59 59
         return $this->functions->filter(function (FunctionModelInterface $function) {
60
-            return ! $function->isAbstract();
60
+            return !$function->isAbstract();
61 61
         })->count();
62 62
     }
63 63
 }
Please login to merge, or discard this patch.
src/Configuration/YamlConsoleConfigFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
                 $exception->getMessage()
31 31
             ));
32 32
         }
33
-        if (! is_array($configArray)) {
33
+        if (!is_array($configArray)) {
34 34
             throw new InvalidConfigException('Invalid YAML config');
35 35
         }
36 36
         return $configArray;
Please login to merge, or discard this patch.