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 | */ |
||
17 | private $scannerMode; |
||
18 | |||
19 | /** |
||
20 | * Set the default parsing style |
||
21 | */ |
||
22 | 24 | public function __construct() |
|
34 | |||
35 | 24 | public function setScannerMode($scannerMode) |
|
39 | |||
40 | /** |
||
41 | * parse the .env file |
||
42 | * |
||
43 | * @param string $file file to parse |
||
44 | * |
||
45 | * @return string Returns the phrase passed in |
||
46 | */ |
||
47 | 24 | public function parse($file) |
|
61 | |||
62 | 2 | public function sanitizeKeys() |
|
76 | |||
77 | public function sanitizeValues() |
||
88 | |||
89 | 18 | public function getContent() |
|
93 | } |
||
94 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.