Completed
Push — develop ( 1a3a09...a87398 )
by Niclas Leon
02:57 queued 01:00
created
src/ActivatableTrait.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 
77 77
         $this->{$this->getActivatedAtColumn()} = $time = $this->freshTimestamp();
78 78
 
79
-        $query->update([ $this->getActivatedAtColumn() => $this->fromDateTime($time) ]);
79
+        $query->update([$this->getActivatedAtColumn() => $this->fromDateTime($time)]);
80 80
     }
81 81
 
82 82
     /**
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 
95 95
         $this->{$this->getActivatedAtColumn()} = null;
96 96
 
97
-        $query->update([ $this->getActivatedAtColumn() => null ]);
97
+        $query->update([$this->getActivatedAtColumn() => null]);
98 98
     }
99 99
 
100 100
     /**
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     /**
65 65
      * Activate the given model instance.
66 66
      *
67
-     * @return void
67
+     * @return false|null
68 68
      */
69 69
     public function activate()
70 70
     {
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     /**
83 83
      * Deactivate the given model instance.
84 84
      *
85
-     * @return void
85
+     * @return false|null
86 86
      */
87 87
     public function deactivate()
88 88
     {
Please login to merge, or discard this patch.
src/ActivatableScope.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,13 +17,13 @@
 block discarded – undo
17 17
     {
18 18
         $builder->whereNotNull($model->getQualifiedActivatedAtColumn());
19 19
 
20
-        $builder->macro('withDeactivated', function (Builder $builder) {
20
+        $builder->macro('withDeactivated', function(Builder $builder) {
21 21
             $this->remove($builder);
22 22
 
23 23
             return $builder;
24 24
         });
25 25
 
26
-        $builder->macro('onlyDeactivated', function (Builder $builder) {
26
+        $builder->macro('onlyDeactivated', function(Builder $builder) {
27 27
             $model = $builder->getModel();
28 28
 
29 29
             $this->remove($builder);
Please login to merge, or discard this patch.