Passed
Push — master ( d67abc...df7e51 )
by Jean
03:14 queued 12s
created
src/Cancellable.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     public function initializeCancellable(): void
41 41
     {
42
-        if (! isset($this->casts[$this->getCancelledAtColumn()])) {
42
+        if (!isset($this->casts[$this->getCancelledAtColumn()])) {
43 43
             $this->casts[$this->getCancelledAtColumn()] = 'datetime';
44 44
         }
45 45
     }
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         }
61 61
 
62 62
         // If the model doesn't exist, there is nothing to cancel.
63
-        if (! $this->exists) {
63
+        if (!$this->exists) {
64 64
             return;
65 65
         }
66 66
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 
99 99
         $this->{$this->getCancelledAtColumn()} = $time;
100 100
 
101
-        if ($this->usesTimestamps() && ! is_null($this->getUpdatedAtColumn())) {
101
+        if ($this->usesTimestamps() && !is_null($this->getUpdatedAtColumn())) {
102 102
             $this->{$this->getUpdatedAtColumn()} = $time;
103 103
 
104 104
             $columns[$this->getUpdatedAtColumn()] = $this->fromDateTime($time);
Please login to merge, or discard this patch.
src/LaravelCancellableServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      */
26 26
     protected function configureMacros(): void
27 27
     {
28
-        Blueprint::macro('cancelledAt', function ($column = 'cancelled_at', $precision = 0) {
28
+        Blueprint::macro('cancelledAt', function($column = 'cancelled_at', $precision = 0) {
29 29
             return $this->timestamp($column, $precision)->nullable();
30 30
         });
31 31
     }
Please login to merge, or discard this patch.