Completed
Pull Request — master (#8)
by Emily
02:13
created
src/Factory/GenericCompositeGenerator.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         $i = 0;
93 93
 
94 94
         $code =
95
-              'namespace ' . $class->namespace . ';'
95
+                'namespace ' . $class->namespace . ';'
96 96
             . 'class ' . $class->classname . ' '
97 97
             .     'extends \\' . $originalClass . ' '
98 98
             .     'implements \\' . Generic::class
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
         }
131 131
 
132 132
         return
133
-              ($method->scope === 'static' ? 'static ' : '')
133
+                ($method->scope === 'static' ? 'static ' : '')
134 134
             . 'function ' . $method->name
135 135
             . '(' . implode(',', $params) . '){'
136 136
             . '__generic_' . $method->name
Please login to merge, or discard this patch.
src/Traits/GenericTrait.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -65,8 +65,7 @@  discard block
 block discarded – undo
65 65
     {
66 66
         if (!$this->genericContext)
67 67
         {
68
-            $this->genericContext = new GenericContext
69
-            (
68
+            $this->genericContext = new GenericContext(
70 69
                 $this->getObjectType(),
71 70
                 static::getReflectionComposite()
72 71
             );
@@ -86,8 +85,7 @@  discard block
 block discarded – undo
86 85
     {
87 86
         if ($this->genericContext)
88 87
         {
89
-            throw new ImmutablePropertyException
90
-            (
88
+            throw new ImmutablePropertyException(
91 89
                 (string)$this->getObjectType(),
92 90
                 'genericContext'
93 91
             );
Please login to merge, or discard this patch.