1 | <?php |
||
35 | class Neon extends AbstractFileParser |
||
36 | { |
||
37 | /** |
||
38 | * Loads a NEON file as an array. |
||
39 | * |
||
40 | * @param string $path File path |
||
41 | * |
||
42 | * @throws ParseException If there is an error parsing NEON file |
||
43 | * |
||
44 | * @return array The parsed data |
||
45 | * |
||
46 | * @since 0.1.0 |
||
47 | */ |
||
48 | 6 | public function parse($path) |
|
66 | |||
67 | /** |
||
68 | * {@inheritdoc} |
||
69 | * |
||
70 | * @return array Supported extensions |
||
71 | * |
||
72 | * @since 0.1.0 |
||
73 | */ |
||
74 | 3 | public function getSupportedFileExtensions() |
|
78 | |||
79 | /** |
||
80 | * Loads in the given file and parses it. |
||
81 | * |
||
82 | * @param string $file File to load |
||
83 | * |
||
84 | * @return array The parsed file data |
||
85 | * |
||
86 | * @since 0.2.4 |
||
87 | * @codeCoverageIgnore |
||
88 | */ |
||
89 | protected function loadFile($file = null) |
||
96 | |||
97 | /** |
||
98 | * Returns the formatted configuration file contents. |
||
99 | * |
||
100 | * @param array $contents configuration array |
||
101 | * |
||
102 | * @return string formatted configuration file contents |
||
103 | * |
||
104 | * @since 0.2.4 |
||
105 | * @codeCoverageIgnore |
||
106 | */ |
||
107 | protected function exportFormat($contents = null) |
||
112 | |||
113 | /** |
||
114 | * __toString. |
||
115 | * |
||
116 | * @return string |
||
117 | * @since 0.1.2 |
||
118 | * @codeCoverageIgnore |
||
119 | */ |
||
120 | public function __toString() |
||
124 | } |
||
125 | |||
127 |
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.