@@ -92,7 +92,7 @@ discard block |
||
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 |
||
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 |
@@ -65,8 +65,7 @@ discard block |
||
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 |
||
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 | ); |