1 | <?php |
||
19 | class Php implements ParserInterface |
||
20 | { |
||
21 | /** |
||
22 | * {@inheritDoc} |
||
23 | * Loads a PHP file and gets its' contents as an array |
||
24 | * |
||
25 | * @throws ParseException If the PHP file throws an exception |
||
26 | * @throws UnsupportedFormatException If the PHP file does not return an array |
||
27 | */ |
||
28 | 15 | public function parseFile($filename) |
|
45 | |||
46 | /** |
||
47 | * {@inheritDoc} |
||
48 | * Loads a PHP string and gets its' contents as an array |
||
49 | * |
||
50 | * @throws ParseException If the PHP string throws an exception |
||
51 | * @throws UnsupportedFormatException If the PHP string does not return an array |
||
52 | */ |
||
53 | 12 | public function parseString($config) |
|
76 | |||
77 | /** |
||
78 | * Completes parsing of PHP data |
||
79 | * |
||
80 | * @param array $data |
||
81 | * @param string $filename |
||
82 | * |
||
83 | * @return array|null |
||
84 | * @throws UnsupportedFormatException |
||
85 | */ |
||
86 | 12 | protected function parse($data = null, $filename = null) |
|
100 | |||
101 | /** |
||
102 | * Runs PHP string in isolated method |
||
103 | * |
||
104 | * @param string $EGsfKPdue7ahnMTy |
||
105 | * |
||
106 | * @return array |
||
107 | */ |
||
108 | 12 | protected function isolate($EGsfKPdue7ahnMTy) |
|
112 | |||
113 | /** |
||
114 | * {@inheritDoc} |
||
115 | */ |
||
116 | 3 | public static function getSupportedExtensions() |
|
120 | } |
||
121 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.