@@ -32,7 +32,7 @@ |
||
| 32 | 32 | "source" => "https://github.com/vrana/adminer/releases/download/v{version}/adminer-{version}.php", |
| 33 | 33 | // These functions will be replaced by adminer_{name} to avoid conflicts |
| 34 | 34 | "rename_list" => ['redirect', 'cookie', 'view', 'exit', 'ob_flush', |
| 35 | - 'ob_end_clean'], |
|
| 35 | + 'ob_end_clean'], |
|
| 36 | 36 | // version can be exact (e.g. v4.7.1) if version_type is NOT "url" |
| 37 | 37 | "version" => "https://api.github.com/repos/vrana/adminer/releases/latest", |
| 38 | 38 | "version_type" => "url", |
@@ -135,7 +135,7 @@ |
||
| 135 | 135 | ( |
| 136 | 136 | $response ? "\r\n[{$response->getStatusCode()}] |
| 137 | 137 | {$response->getReasonPhrase()} {(string)$response->getBody()}" |
| 138 | - : "Connection Failed.\r\n" . ShellHelper::$LastError |
|
| 138 | + : "Connection Failed.\r\n".ShellHelper::$LastError |
|
| 139 | 139 | ) |
| 140 | 140 | ); |
| 141 | 141 | return; |
@@ -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; |
@@ -147,11 +147,11 @@ discard block |
||
| 147 | 147 | return $content; |
| 148 | 148 | } |
| 149 | 149 | |
| 150 | - private function _runGetBuffer($files, $allowed_errors=[E_WARNING]) |
|
| 150 | + private function _runGetBuffer($files, $allowed_errors = [E_WARNING]) |
|
| 151 | 151 | { |
| 152 | 152 | // Prepare for unhandled errors |
| 153 | 153 | $handle_error = |
| 154 | - function ($err_severity, $err_msg, $err_file, $err_line) use ($allowed_errors) { |
|
| 154 | + function($err_severity, $err_msg, $err_file, $err_line) use ($allowed_errors) { |
|
| 155 | 155 | // Check if suppressed with the @-operator |
| 156 | 156 | if (0 === error_reporting()) { |
| 157 | 157 | return false; |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | set_error_handler(null); |
| 188 | 188 | $content = ""; |
| 189 | 189 | while ($level = ob_get_clean()) { |
| 190 | - $content = $level . $content; |
|
| 190 | + $content = $level.$content; |
|
| 191 | 191 | } |
| 192 | 192 | return $content; |
| 193 | 193 | } |