Total Complexity | 7 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
29 | class DatabagAnnotation extends AbstractAnnotation |
||
30 | { |
||
31 | /** |
||
32 | * The data bag name |
||
33 | * |
||
34 | * @var string |
||
35 | */ |
||
36 | protected $sName = ''; |
||
37 | |||
38 | /** |
||
39 | * @inheritDoc |
||
40 | */ |
||
41 | public static function parseAnnotation($value) |
||
42 | { |
||
43 | $aParams = preg_split('/[\s]+/', $value, 2); |
||
44 | return count($aParams) === 1 ? ['name' => $aParams[0]] : ['name' => $aParams[0], 'extra' => $aParams[1]]; |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * @inheritDoc |
||
49 | * @throws AnnotationException |
||
50 | */ |
||
51 | public function initAnnotation(array $properties) |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * @inheritDoc |
||
62 | */ |
||
63 | public function saveValue(Metadata $xMetadata, string $sMethod = '*'): void |
||
66 | } |
||
67 | } |
||
68 |
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.