1 | <?php |
||
5 | class Parser |
||
6 | { |
||
7 | /** |
||
8 | * parsed content of the dotenv file |
||
9 | */ |
||
10 | private $content = []; |
||
11 | |||
12 | /** |
||
13 | * Which parsing style is used |
||
14 | * |
||
15 | * @see http://php.net/parse_ini_file |
||
16 | 54 | */ |
|
17 | private $scannerMode = \INI_SCANNER_TYPED; |
||
18 | |||
19 | 54 | /** |
|
20 | 36 | * Set the default parsing style |
|
21 | 54 | */ |
|
22 | 18 | public function __construct() |
|
32 | |||
33 | public function setScannerMode($scannerMode) |
||
37 | |||
38 | /** |
||
39 | * parse the .env file |
||
40 | * |
||
41 | * @param string $file file to parse |
||
42 | * |
||
43 | * @return string Returns the phrase passed in |
||
44 | */ |
||
45 | public function parse($file) |
||
59 | |||
60 | public function sanitizeKeys() |
||
73 | |||
74 | public function sanitizeValues() |
||
85 | |||
86 | public function getContent() |
||
90 | } |
||
91 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.