1 | <?php |
||
19 | class Xml extends AbstractFileParser |
||
20 | { |
||
21 | /** |
||
22 | * {@inheritDoc} |
||
23 | * Loads a XML file as an array |
||
24 | * |
||
25 | * @throws ParseException If there is an error parsing XML file |
||
26 | 6 | * @since 0.1.0 |
|
27 | */ |
||
28 | 6 | public function parse($path) |
|
48 | 3 | ||
49 | /** |
||
50 | * {@inheritDoc} |
||
51 | */ |
||
52 | public function getSupportedFileExtensions() |
||
56 | 3 | ||
57 | /** |
||
58 | * Loads in the given file and parses it. |
||
59 | * |
||
60 | * @param string $file File to load |
||
61 | * @return array |
||
62 | * @since 0.2.4 |
||
63 | * @codeCoverageIgnore |
||
64 | */ |
||
65 | protected function loadFile($file = null) |
||
75 | |||
76 | /** |
||
77 | * Returns the formatted configuration file contents. |
||
78 | * |
||
79 | * @param array $content configuration array |
||
|
|||
80 | * @return string formatted configuration file contents |
||
81 | * @since 0.2.4 |
||
82 | * @codeCoverageIgnore |
||
83 | */ |
||
84 | protected function exportFormat($contents = null) |
||
88 | } |
||
89 | |||
91 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$ireland
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was changed, but the annotation was not.