@@ -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 | ); |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | { |
83 | 83 | $chain = new PriorityConfigurationChain(); |
84 | 84 | |
85 | - $options = (is_array($this->file)) |
|
85 | + $options = (is_array($this->file)) |
|
86 | 86 | ? $this->file |
87 | 87 | : [[$this->file]]; |
88 | 88 | |
@@ -139,18 +139,18 @@ discard block |
||
139 | 139 | private function determineDriver($file) |
140 | 140 | { |
141 | 141 | $exception = new InvalidArgumentException( |
142 | - "Cannot initialize the configuration driver. I could not determine " . |
|
142 | + "Cannot initialize the configuration driver. I could not determine ". |
|
143 | 143 | "the correct driver class." |
144 | 144 | ); |
145 | 145 | |
146 | - if (is_null($file) || ! is_string($file)) { |
|
146 | + if (is_null($file) || !is_string($file)) { |
|
147 | 147 | throw $exception; |
148 | 148 | } |
149 | 149 | |
150 | 150 | $nameDivision = explode('.', $file); |
151 | 151 | $extension = strtolower(end($nameDivision)); |
152 | 152 | |
153 | - if (! array_key_exists($extension, $this->extensionToDriver)) { |
|
153 | + if (!array_key_exists($extension, $this->extensionToDriver)) { |
|
154 | 154 | throw $exception; |
155 | 155 | } |
156 | 156 |
@@ -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 | } |