@@ -38,7 +38,7 @@ |
||
38 | 38 | $this->filePath = $filePath; |
39 | 39 | $this->loadSettings(); |
40 | 40 | |
41 | - if (! is_array($this->data)) { |
|
41 | + if (!is_array($this->data)) { |
|
42 | 42 | throw new ParserErrorException( |
43 | 43 | "Configuration file {$this->filePath} could not be parse as an array. ". |
44 | 44 | "PHP Settings file should be a script that returns an array." |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | |
50 | 50 | $this->loadSettings($filePath); |
51 | 51 | |
52 | - if (! is_array($this->data)) { |
|
52 | + if (!is_array($this->data)) { |
|
53 | 53 | throw new ParserErrorException( |
54 | 54 | "Parse error: {$this->lastError}" |
55 | 55 | ); |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | |
59 | 59 | private function loadSettings($filePath) |
60 | 60 | { |
61 | - set_error_handler(function ($errorNumber, $message) { |
|
61 | + set_error_handler(function($errorNumber, $message) { |
|
62 | 62 | $this->lastError = $message; |
63 | 63 | $this->lastErrorNumber = $errorNumber; |
64 | 64 | }); |
@@ -33,7 +33,7 @@ |
||
33 | 33 | */ |
34 | 34 | protected function checkFile($file) |
35 | 35 | { |
36 | - if (! is_file($file)) { |
|
36 | + if (!is_file($file)) { |
|
37 | 37 | throw new FileNotFoundException( |
38 | 38 | "Configuration file {$file} could not be found." |
39 | 39 | ); |
@@ -51,7 +51,7 @@ |
||
51 | 51 | $this->lastPriority = $datum['priority']; |
52 | 52 | } |
53 | 53 | |
54 | - if (! $inserted) { |
|
54 | + if (!$inserted) { |
|
55 | 55 | $data[] = ['element' => $element, 'priority' => $priority]; |
56 | 56 | $this->lastPriority = $priority; |
57 | 57 | } |
@@ -127,18 +127,18 @@ |
||
127 | 127 | private function determineDriver($file) |
128 | 128 | { |
129 | 129 | $exception = new InvalidArgumentException( |
130 | - "Cannot initialize the configuration driver. I could not determine " . |
|
130 | + "Cannot initialize the configuration driver. I could not determine ". |
|
131 | 131 | "the correct driver class." |
132 | 132 | ); |
133 | 133 | |
134 | - if (is_null($file) || ! is_string($file)) { |
|
134 | + if (is_null($file) || !is_string($file)) { |
|
135 | 135 | throw $exception; |
136 | 136 | } |
137 | 137 | |
138 | 138 | $nameDivision = explode('.', $file); |
139 | 139 | $extension = strtolower(end($nameDivision)); |
140 | 140 | |
141 | - if (! array_key_exists($extension, $this->extensionToDriver)) { |
|
141 | + if (!array_key_exists($extension, $this->extensionToDriver)) { |
|
142 | 142 | throw $exception; |
143 | 143 | } |
144 | 144 |