| @@ 320-327 (lines=8) @@ | ||
| 317 | * @param $parameters |
|
| 318 | * @return mixed|null |
|
| 319 | */ |
|
| 320 | public function __call($method, $parameters) |
|
| 321 | { |
|
| 322 | if ($this->hasHook($hook = snake_case($method))) { |
|
| 323 | return $this->call($hook, $parameters); |
|
| 324 | } |
|
| 325 | ||
| 326 | return null; |
|
| 327 | } |
|
| 328 | } |
|
| 329 | ||
| @@ 133-140 (lines=8) @@ | ||
| 130 | * @param string $method |
|
| 131 | * @param array $parameters |
|
| 132 | */ |
|
| 133 | public function __call($method, $parameters) |
|
| 134 | { |
|
| 135 | if ($this->hasHook($hook = snake_case($method))) { |
|
| 136 | return $this->call($hook, $parameters); |
|
| 137 | } |
|
| 138 | ||
| 139 | return $this->get($method); |
|
| 140 | } |
|
| 141 | } |
|
| 142 | ||