Completed
Pull Request — master (#44)
by Angelo
01:53
created
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/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/PropertyInitializationTemplate.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/ParameterTemplate.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\Generator\Template;
5 5
 
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     protected static function doGenerate(\ReflectionParameter $parameter): string
28 28
     {
29 29
         try {
30
-            $defaultValue = !$parameter->allowsNull()
30
+            $defaultValue = ! $parameter->allowsNull()
31 31
                 ? var_export($parameter->getDefaultValue(), true)
32 32
                 : 'null';
33 33
 
Please login to merge, or discard this patch.
src/Generator/ProxyGenerator.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;
5 5
 
Please login to merge, or discard this patch.
src/Plugin/Phake/PhakeMockingStrategy.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\Plugin\Phake;
5 5
 
Please login to merge, or discard this patch.
src/Plugin/Phake/moka.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\Plugin\Phake;
5 5
 
Please login to merge, or discard this patch.