@@ -24,6 +24,7 @@ |
||
| 24 | 24 | /** |
| 25 | 25 | * Add the logger functions to the before and |
| 26 | 26 | * after calls of the event. |
| 27 | + * @param string $command |
|
| 27 | 28 | */ |
| 28 | 29 | function registerScheduleLogger($command) |
| 29 | 30 | { |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | public function boot() |
| 18 | 18 | { |
| 19 | 19 | // Publish the migration if it does not exists |
| 20 | - if (! class_exists('CreateSchedulelogsTable')) { |
|
| 20 | + if (!class_exists('CreateSchedulelogsTable')) { |
|
| 21 | 21 | $timestamp = date('Y_m_d_His', time()); |
| 22 | 22 | $this->publishes([ |
| 23 | 23 | __DIR__.'/../database/migrations/create_schedulelogs_table.php.stub' => database_path('migrations/'.$timestamp.'_create_schedulelogs_table.php'), |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | */ |
| 33 | 33 | public function register() |
| 34 | 34 | { |
| 35 | - $this->app->singleton('laravel-schedulelogger', function () { |
|
| 35 | + $this->app->singleton('laravel-schedulelogger', function() { |
|
| 36 | 36 | return new \PendoNL\LaravelScheduleLogger\LaravelScheduleLogger; |
| 37 | 37 | }); |
| 38 | 38 | } |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | class Schedulelog extends Model |
| 8 | 8 | { |
| 9 | 9 | |
| 10 | - protected $fillable = ['command_name','start','end']; |
|
| 10 | + protected $fillable = ['command_name', 'start', 'end']; |
|
| 11 | 11 | |
| 12 | 12 | public $timestamps = false; |
| 13 | 13 | |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | public function log($command_name) { |
| 35 | 35 | $log = Schedulelog::where('end', NULL)->latest('id', 'DESC')->first(); |
| 36 | 36 | |
| 37 | - if(count($log) == 0) { |
|
| 37 | + if (count($log) == 0) { |
|
| 38 | 38 | |
| 39 | 39 | return Schedulelog::create([ |
| 40 | 40 | 'command_name' => $command_name, |