| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | 2 | public function __call($method, $parameters) |
|
| 30 | { |
||
| 31 | 2 | $suffix = 'SettingValue'; |
|
| 32 | 2 | if (Str::endsWith($method, $suffix)) { |
|
| 33 | 1 | return $this->getSettingValue(array_shift($parameters), Str::beforeLast($method, $suffix), array_shift($parameters), ...$parameters); |
|
| 34 | } |
||
| 35 | |||
| 36 | 1 | return parent::__call($method, $parameters); |
|
| 37 | } |
||
| 39 |