Passed
Branch master (a2c9fd)
by Sebastiaan
02:11
created
src/Event.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
         $parts = [];
142 142
 
143 143
         if ($this->cwd) {
144
-            $parts[] =  'cd ' . $this->cwd . ';';
144
+            $parts[] = 'cd ' . $this->cwd . ';';
145 145
         }
146 146
 
147 147
         if ($this->user) {
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
      */
280 280
     private function inTimeInterval($startTime, $endTime)
281 281
     {
282
-        return function () use ($startTime, $endTime) {
282
+        return function() use ($startTime, $endTime) {
283 283
             $now = Carbon::now()->getTimestamp();
284 284
             return $now >= strtotime($startTime) && $now <= strtotime($endTime);
285 285
         };
Please login to merge, or discard this patch.
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,6 +101,9 @@  discard block
 block discarded – undo
101 101
      */
102 102
     public $description;
103 103
 
104
+    /**
105
+     * @param string $command
106
+     */
104 107
     public function __construct(/* string */ $command)
105 108
     {
106 109
         Assert::stringNotEmpty($command);
@@ -324,7 +327,7 @@  discard block
 block discarded – undo
324 327
     /**
325 328
      * Set which user the command should run as.
326 329
      *
327
-     * @param  string?  $user
330
+     * @param  string  $user
328 331
      * @return $this
329 332
      */
330 333
     public function asUser(/* string? */ $user)
@@ -514,7 +517,7 @@  discard block
 block discarded – undo
514 517
     /**
515 518
      * Set the hour when the job should run (0-23, *, *\/2, etc)
516 519
      *
517
-     * @param  string|int $hour
520
+     * @param  integer $hour
518 521
      * @return Event
519 522
      */
520 523
     public function hour($hour)
Please login to merge, or discard this patch.
tests/EventTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     {
134 134
         $event = new Event('php -i');
135 135
 
136
-        $event->days([1, 2 ,3 ]);
136
+        $event->days([1, 2, 3]);
137 137
         $this->assertSame('* * * * 1,2,3 *', (string) $event->getCronExpression());
138 138
 
139 139
         $event->days(4, 5, 6);
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
 
206 206
         $this->assertTrue($event->isDue());
207 207
 
208
-        $event->skip(function () {
208
+        $event->skip(function() {
209 209
             return true;
210 210
         });
211 211
 
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 
217 217
         $this->assertTrue($event->isDue());
218 218
 
219
-        $event->when(function () {
219
+        $event->when(function() {
220 220
             return false;
221 221
         });
222 222
 
Please login to merge, or discard this patch.