| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | private function get($key) |
||
| 30 | { |
||
| 31 | $configKey = 'zoutapps.branding.' . $key; |
||
| 32 | |||
| 33 | if (!Config::has($configKey)) { |
||
| 34 | throw new \InvalidArgumentException('Your branding value ' . $key . ' is not specified. Please add the desired value to <comment>config/zoutapps/branding.php</comment> in order to use it.'); |
||
| 35 | } |
||
| 36 | |||
| 37 | return config($configKey); |
||
| 38 | } |
||
| 39 | } |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.