Completed
Branch master (79f1ae)
by Joshua
02:59
created
src/Console/Scheduling/LogEvent.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -24,6 +24,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/LaravelScheduleLoggerServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Schedulelog.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/LaravelScheduleLogger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.