@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | public function __call($method, $params) |
35 | 35 | { |
36 | 36 | if (strncasecmp($method, "get", 3) === 0) { |
37 | - $var = preg_replace_callback('/[A-Z]/', function ($c) { |
|
37 | + $var = preg_replace_callback('/[A-Z]/', function($c) { |
|
38 | 38 | return '_'.strtolower($c[0]); |
39 | 39 | }, lcfirst(substr($method, 3))); |
40 | 40 | return $this->$var; |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | } |
158 | 158 | } |
159 | 159 | |
160 | - private function _runGetBuffer($files, $allowed_errors=[E_WARNING]) |
|
160 | + private function _runGetBuffer($files, $allowed_errors = [E_WARNING]) |
|
161 | 161 | { |
162 | 162 | // Prepare for unhandled errors |
163 | 163 | $this->_setupErrorHandling(); |
@@ -178,14 +178,14 @@ discard block |
||
178 | 178 | $this->_stopErrorHandling(); |
179 | 179 | $content = ""; |
180 | 180 | while ($level = ob_get_clean()) { |
181 | - $content = $level . $content; |
|
181 | + $content = $level.$content; |
|
182 | 182 | } |
183 | 183 | return $content; |
184 | 184 | } |
185 | 185 | |
186 | 186 | private function _setupErrorHandling() |
187 | 187 | { |
188 | - set_error_handler(function ($err_severity, $err_msg, $err_file, $err_line) { |
|
188 | + set_error_handler(function($err_severity, $err_msg, $err_file, $err_line) { |
|
189 | 189 | // Check if suppressed with the @-operator |
190 | 190 | if (0 === error_reporting()) { |
191 | 191 | return false; |