Completed
Pull Request — master (#44)
by Angelo
09:03 queued 06:01
created
src/Tests/FooTestInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Moka\Tests;
5 5
 
Please login to merge, or discard this patch.
src/Builder/ProxyBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Moka\Builder;
5 5
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
             return $this->buildProxy($fqcnOrAlias);
63 63
         }
64 64
 
65
-        if (!$this->container->has($alias)) {
65
+        if ( ! $this->container->has($alias)) {
66 66
             $this->container->set($alias, $this->buildProxy($fqcnOrAlias));
67 67
         }
68 68
 
Please login to merge, or discard this patch.
src/Traits/MokaCleanerTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Moka\Traits;
5 5
 
Please login to merge, or discard this patch.
src/Generator/Template/VisibilityTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Moka\Generator\Template;
5 5
 
@@ -18,8 +18,8 @@  discard block
 block discarded – undo
18 18
     protected static function getVisibility(\Reflector $reflector): string
19 19
     {
20 20
         if (
21
-            !$reflector instanceof \ReflectionMethod &&
22
-            !$reflector instanceof \ReflectionProperty
21
+            ! $reflector instanceof \ReflectionMethod &&
22
+            ! $reflector instanceof \ReflectionProperty
23 23
         ) {
24 24
             throw new InvalidArgumentException(
25 25
                 sprintf(
Please login to merge, or discard this patch.
src/Generator/Template/ReturnTypeTemplate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Moka\Generator\Template;
5 5
 
Please login to merge, or discard this patch.
src/Generator/Template/MethodTemplate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Moka\Generator\Template;
5 5
 
Please login to merge, or discard this patch.
src/Generator/Template/PropertyTemplate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Moka\Generator\Template;
5 5
 
Please login to merge, or discard this patch.
src/Generator/Template/TemplateInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Moka\Generator\Template;
5 5
 
Please login to merge, or discard this patch.
src/Generator/Template/ClassTemplate.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Moka\Generator\Template;
5 5
 
@@ -81,8 +81,8 @@  discard block
 block discarded – undo
81 81
 
82 82
         foreach ($methods as $method) {
83 83
             if (
84
-                !$method->isFinal() &&
85
-                !in_array($method->name, self::UNSAFE_METHODS, true)
84
+                ! $method->isFinal() &&
85
+                ! in_array($method->name, self::UNSAFE_METHODS, true)
86 86
             ) {
87 87
                 $methodsCode[] = MethodTemplate::generate($method);
88 88
             }
Please login to merge, or discard this patch.