Completed
Pull Request — master (#37)
by Alberto
03:40
created
src/Moka/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/Moka/Generator/Template/ClassTemplate.php 1 patch
Spacing   +5 added lines, -5 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
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
         $methods = $class->getMethods(\ReflectionMethod::IS_PUBLIC);
68 68
         $methodsCode = [];
69
-        $methodNames = array_map(function (\ReflectionMethod $method) {
69
+        $methodNames = array_map(function(\ReflectionMethod $method) {
70 70
             return $method->getName();
71 71
         }, $methods);
72 72
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         $getNameType = '';
75 75
 
76 76
         foreach ($properties as $property) {
77
-            if (!in_array($property->getName(), $methodNames)) {
77
+            if ( ! in_array($property->getName(), $methodNames)) {
78 78
                 continue;
79 79
             }
80 80
 
@@ -85,8 +85,8 @@  discard block
 block discarded – undo
85 85
 
86 86
         foreach ($methods as $method) {
87 87
             if (
88
-                !$method->isFinal() &&
89
-                !in_array($method->name, self::UNSAFE_METHODS, true)
88
+                ! $method->isFinal() &&
89
+                ! in_array($method->name, self::UNSAFE_METHODS, true)
90 90
             ) {
91 91
                 $methodsCode[] = MethodTemplate::generate($method);
92 92
             }
Please login to merge, or discard this patch.
src/Moka/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/Moka/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.