| Conditions | 4 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 38 | public function saveValue(Metadata $xMetadata, string $sMethod = '*'): void |
||
| 39 | { |
||
| 40 | $aMethods = []; |
||
| 41 | foreach(['base', 'only', 'except'] as $key) |
||
| 42 | { |
||
| 43 | if($this->$key !== null && count($this->$key) > 0) |
||
| 44 | { |
||
| 45 | $aMethods[$key] = $this->$key; |
||
| 46 | } |
||
| 47 | } |
||
| 48 | |||
| 49 | $xMetadata->export($sMethod)->setMethods($aMethods); |
||
|
|
|||
| 50 | } |
||
| 52 |
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.