@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | $this->route_path = $uri; |
| 91 | 91 | } |
| 92 | 92 | $this->route_options['namespace'] = $this->namespace; |
| 93 | - $this->app->router->group($this->route_options, function ($router) { |
|
| 93 | + $this->app->router->group($this->route_options, function($router) { |
|
| 94 | 94 | $router->addRoute( |
| 95 | 95 | ['GET', 'HEAD', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'], |
| 96 | 96 | $this->route_path, |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | $this->route_options['as'] = "lumener-resources"; |
| 100 | 100 | $this->route_options['uses'] = 'LumenerController@getResource'; |
| 101 | 101 | $router->get( |
| 102 | - $this->route_path . '/resources', |
|
| 102 | + $this->route_path.'/resources', |
|
| 103 | 103 | ['uses' => 'LumenerController@getResource', |
| 104 | 104 | 'as' => 'lumener-resources'] |
| 105 | 105 | ); |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | { |
| 111 | 111 | // TODO: Merge routes for laravel |
| 112 | 112 | \Route::namespace($this->namespace) |
| 113 | - ->group(function () { |
|
| 113 | + ->group(function() { |
|
| 114 | 114 | Route::any($this->route_path, $this->route_options); |
| 115 | 115 | $this->route_options['uses'] = "LumenerController@getResource'"; |
| 116 | 116 | Route::get($this->route_path.'/resources', $this->route_options); |
@@ -143,20 +143,20 @@ discard block |
||
| 143 | 143 | |
| 144 | 144 | $this->app->singleton( |
| 145 | 145 | 'command.lumener.update', |
| 146 | - function (/** @scrutinizer ignore-unused */ $app) { |
|
| 146 | + function(/** @scrutinizer ignore-unused */ $app) { |
|
| 147 | 147 | return new UpdateCommand(); |
| 148 | 148 | } |
| 149 | 149 | ); |
| 150 | 150 | |
| 151 | 151 | $this->app->singleton( |
| 152 | 152 | 'command.lumener.stylize', |
| 153 | - function (/** @scrutinizer ignore-unused */ $app) { |
|
| 153 | + function(/** @scrutinizer ignore-unused */ $app) { |
|
| 154 | 154 | return new StylizeCommand(); |
| 155 | 155 | } |
| 156 | 156 | ); |
| 157 | 157 | $this->app->singleton( |
| 158 | 158 | 'command.lumener.plugin', |
| 159 | - function (/** @scrutinizer ignore-unused */ $app) { |
|
| 159 | + function(/** @scrutinizer ignore-unused */ $app) { |
|
| 160 | 160 | return new PluginCommand(); |
| 161 | 161 | } |
| 162 | 162 | ); |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | if (file_exists($this->filename)) { |
| 65 | 65 | $fn = fopen($this->filename, "r"); |
| 66 | 66 | if ($fn !== false) { |
| 67 | - for ($i=0; !$current_version && $i < 20 && !feof($fn); $i++) { |
|
| 67 | + for ($i = 0; !$current_version && $i < 20 && !feof($fn); $i++) { |
|
| 68 | 68 | $line = fgets($fn, 30); |
| 69 | 69 | preg_match_all("/@version ((\d([\.-]|$))+)/", $line, $m); |
| 70 | 70 | if (!empty($m[1])) { |
@@ -98,10 +98,10 @@ discard block |
||
| 98 | 98 | ); |
| 99 | 99 | if (config('lumener.adminer.version_type', 'url') == 'url') { |
| 100 | 100 | $version = $this->_getLatestAdminerVersion($vsource); |
| 101 | - $this->info("Lumener: Latest Adminer Version " . $version); |
|
| 101 | + $this->info("Lumener: Latest Adminer Version ".$version); |
|
| 102 | 102 | } else { |
| 103 | 103 | $version = $vsource; |
| 104 | - $this->info("Lumener: Required Adminer Version " . $version); |
|
| 104 | + $this->info("Lumener: Required Adminer Version ".$version); |
|
| 105 | 105 | } |
| 106 | 106 | return $verison; |
| 107 | 107 | } |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | { |
| 114 | 114 | foreach (config( |
| 115 | 115 | 'lumener.adminer.rename_list', |
| 116 | - ['redirect','cookie','view', 'exit', 'ob_flush'] |
|
| 116 | + ['redirect', 'cookie', 'view', 'exit', 'ob_flush'] |
|
| 117 | 117 | ) as $var) { |
| 118 | 118 | ShellHelper::rename($var, $this->filename); |
| 119 | 119 | } |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | ( |
| 135 | 135 | $response ? "\r\n[{$response->getStatusCode()}] |
| 136 | 136 | {$response->getReasonPhrase()} {(string)$response->getBody()}" |
| 137 | - : "Connection Failed.\r\n" . ShellHelper::$LastError |
|
| 137 | + : "Connection Failed.\r\n".ShellHelper::$LastError |
|
| 138 | 138 | ) |
| 139 | 139 | ); |
| 140 | 140 | return; |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | ( |
| 170 | 170 | $response ? "\r\n[{$response->getStatusCode()}] |
| 171 | 171 | {$response->getReasonPhrase()} {(string)$response->getBody()}" |
| 172 | - : "Connection Failed.\r\n" . ShellHelper::$LastError |
|
| 172 | + : "Connection Failed.\r\n".ShellHelper::$LastError |
|
| 173 | 173 | ) |
| 174 | 174 | ); |
| 175 | 175 | return false; |