Completed
Pull Request — master (#41)
by Alberto
03:51
created
src/Generator/Template/ParameterTemplate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 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/Template/ClassTemplate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,8 +84,8 @@
 block discarded – undo
84 84
 
85 85
         foreach ($methods as $method) {
86 86
             if (
87
-                !$method->isFinal() &&
88
-                !\in_array($method->name, self::UNSAFE_METHODS, $strict = true)
87
+                ! $method->isFinal() &&
88
+                ! \in_array($method->name, self::UNSAFE_METHODS, $strict = true)
89 89
             ) {
90 90
                 $methodsCode[] = MethodTemplate::generate($method);
91 91
             }
Please login to merge, or discard this patch.