@@ 200-205 (lines=6) @@ | ||
197 | return $extensions; |
|
198 | } |
|
199 | ||
200 | if (starts_with($name, 'set') && $this->extensions->has($method)) { |
|
201 | $extension = $this->extensions->get($method); |
|
202 | call_user_func_array([$extension, 'set'], $parameters); |
|
203 | ||
204 | return $this; |
|
205 | } |
|
206 | ||
207 | if (starts_with($name, 'add') && $this->extensions->has(str_plural($method))) { |
|
208 | $extension = $this->extensions->get(str_plural($method)); |
|
@@ 207-211 (lines=5) @@ | ||
204 | return $this; |
|
205 | } |
|
206 | ||
207 | if (starts_with($name, 'add') && $this->extensions->has(str_plural($method))) { |
|
208 | $extension = $this->extensions->get(str_plural($method)); |
|
209 | call_user_func_array([$extension, 'add'], $parameters); |
|
210 | ||
211 | return $this; |
|
212 | } |
|
213 | ||
214 | throw new \BadMethodCallException("Call to undefined method [{$name}]"); |