Lines Matching defs:file
6 * A naive PHP file parser
8 * This parses our very simple config file in PHP format. We use this instead of simply including
9 * the file, because we want to keep expressions such as 24*60*60 as is.
15 /** @var string variable to parse from the file */
21 * Parse the given PHP file into an array
25 * @param string $file
28 public function parse($file)
30 if (!file_exists($file)) return [];
33 $contents = @php_strip_whitespace($file);
35 // fallback to simply including the file #3271
38 include $file;