| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | 2 | public function getNewInstanceSeoValueFor(string $key): mixed |
|
| 37 | { |
||
| 38 | 2 | $method = 'getNewInstanceSeoValueFor' . Str::ucfirst(Str::camel($key)); |
|
| 39 | 2 | if (method_exists($this, $method)) { |
|
| 40 | 2 | return $this->$method(); |
|
| 41 | } |
||
| 42 | |||
| 43 | 2 | if (method_exists($this, 'getAttribute')) { |
|
| 44 | 2 | return $this->getAttribute($key); |
|
| 45 | } |
||
| 46 | |||
| 47 | 1 | return null; |
|
| 48 | } |
||
| 68 |