mirror of
https://github.com/superhelio/commands.git
synced 2026-02-03 19:48:33 +00:00
PSR2 fixes
This commit is contained in:
@@ -135,14 +135,12 @@ class Gozer extends Command
|
||||
{
|
||||
try {
|
||||
/** @var \Doctrine\DBAL\Schema\AbstractSchemaManager $connection */
|
||||
$connection = app('db')->connection()->getDoctrineSchemaManager();
|
||||
return app('db')->connection()->getDoctrineSchemaManager();
|
||||
} catch (\Exception $e) {
|
||||
$this->error($e->getMessage());
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
return $connection;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -180,7 +178,7 @@ class Gozer extends Command
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $tables
|
||||
* @param array|\Illuminate\Support\Collection $tables
|
||||
*
|
||||
* @return \Illuminate\Support\Collection
|
||||
*/
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace Superhelio\Commands;
|
||||
|
||||
class Facade extends \Illuminate\Support\Facades\Facade
|
||||
|
||||
@@ -36,7 +36,7 @@ class ServiceProvider extends BaseServiceProvider
|
||||
private function registerReloader()
|
||||
{
|
||||
$this->app->singleton('command.superhelio.reload', function ($app) {
|
||||
return $app[ \Superhelio\Commands\Commands\Reload::class ];
|
||||
return $app[\Superhelio\Commands\Commands\Reload::class];
|
||||
});
|
||||
$this->commands('command.superhelio.reload');
|
||||
}
|
||||
@@ -44,7 +44,7 @@ class ServiceProvider extends BaseServiceProvider
|
||||
private function registerGozer()
|
||||
{
|
||||
$this->app->singleton('command.superhelio.gozer', function ($app) {
|
||||
return $app[ \Superhelio\Commands\Commands\Gozer::class ];
|
||||
return $app[\Superhelio\Commands\Commands\Gozer::class];
|
||||
});
|
||||
$this->commands('command.superhelio.gozer');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user