Passed
Push — master ( 6d2ec0...d97bf6 )
by Sebastiaan
02:45
created
src/Event/BaseEvent.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -280,7 +280,7 @@
 block discarded – undo
280 280
     /**
281 281
      * Set the days of the week the command should run on.
282 282
      *
283
-     * @param  array|mixed  $days
283
+     * @param  integer  $days
284 284
      * @return $this
285 285
      */
286 286
     public function days($days)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
      */
94 94
     private function inTimeInterval($startTime, $endTime)
95 95
     {
96
-        return function () use ($startTime, $endTime) {
96
+        return function() use ($startTime, $endTime) {
97 97
             $now = Carbon::now()->getTimestamp();
98 98
             return $now >= strtotime($startTime) && $now <= strtotime($endTime);
99 99
         };
Please login to merge, or discard this patch.
src/Schedule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public function run($event)
61 61
     {
62
-        if(is_callable($event)) {
62
+        if (is_callable($event)) {
63 63
             $event = new Callback($event);
64 64
         } else {
65 65
             $event = new Process($event);
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public function dueEvents()
86 86
     {
87
-        return array_filter($this->events, function (Event $event) {
87
+        return array_filter($this->events, function(Event $event) {
88 88
             return $event->isDue();
89 89
         });
90 90
     }
Please login to merge, or discard this patch.
src/Event/Process.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
         $parts = [];
97 97
 
98 98
         if ($this->cwd) {
99
-            $parts[] =  'cd ' . $this->cwd . ';';
99
+            $parts[] = 'cd ' . $this->cwd . ';';
100 100
         }
101 101
 
102 102
         if ($this->user) {
Please login to merge, or discard this patch.
src/Command/Run.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,11 +56,11 @@
 block discarded – undo
56 56
 
57 57
         foreach ($events as $event) {
58 58
             if ($output->getVerbosity() >= $this->minimumVerbosity) {
59
-                $output->writeln('Running event <info>"' . (string)$event . '"</info>');
59
+                $output->writeln('Running event <info>"' . (string) $event . '"</info>');
60 60
             }
61 61
 
62 62
             $result = $event->run();
63
-            if ($event instanceof Process)  {
63
+            if ($event instanceof Process) {
64 64
                 $this->handleProcessOutput($result, $output);
65 65
             }
66 66
         }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
             }
61 61
 
62 62
             $result = $event->run();
63
-            if ($event instanceof Process)  {
63
+            if ($event instanceof Process) {
64 64
                 $this->handleProcessOutput($result, $output);
65 65
             }
66 66
         }
Please login to merge, or discard this patch.