| Conditions | 4 |
| Paths | 4 |
| Total Lines | 19 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function getOverride(string $name, ?AccessUrl $accessUrl = null): mixed |
||
| 25 | { |
||
| 26 | if (!$this->parameterBag->has('settings_overrides')) { |
||
| 27 | return null; |
||
| 28 | } |
||
| 29 | |||
| 30 | $settingsOverrides = $this->parameterBag->get('settings_overrides'); |
||
| 31 | |||
| 32 | $accessUrl ??= $this->accessUrlHelper->getCurrent(); |
||
| 33 | |||
| 34 | if (isset($settingsOverrides[$accessUrl->getId()][$name])) { |
||
|
|
|||
| 35 | return $settingsOverrides[$accessUrl->getId()][$name]; |
||
| 36 | } |
||
| 37 | |||
| 38 | if (isset($settingsOverrides['default'][$name])) { |
||
| 39 | return $settingsOverrides['default'][$name]; |
||
| 40 | } |
||
| 41 | |||
| 42 | return null; |
||
| 43 | } |
||
| 44 | } |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.