Completed
Pull Request — master (#32)
by Brent
01:13
created
src/State.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -208,7 +208,7 @@
 block discarded – undo
208 208
     }
209 209
 
210 210
     /**
211
-     * @param string|\Spatie\ModelStates\Transition $transitionClass
211
+     * @param string|\Spatie\ModelStates\Transition $transition
212 212
      * @param mixed ...$args
213 213
      *
214 214
      * @return \Illuminate\Database\Eloquent\Model
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
3 3
 namespace Spatie\ModelStates;
4 4
 
5 5
 use Exception;
6
-use JsonSerializable;
7
-use Illuminate\Support\Collection;
8 6
 use Illuminate\Database\Eloquent\Model;
7
+use Illuminate\Support\Collection;
8
+use JsonSerializable;
9 9
 use ReflectionClass;
10 10
 use Spatie\ModelStates\Events\StateChanged;
11 11
 use Spatie\ModelStates\Exceptions\CouldNotPerformTransition;
Please login to merge, or discard this patch.
src/Events/StateChanged.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -27,6 +27,10 @@
 block discarded – undo
27 27
     /** @var \Illuminate\Database\Eloquent\Model */
28 28
     public $model;
29 29
 
30
+    /**
31
+     * @param State $initialState
32
+     * @param null|State $finalState
33
+     */
30 34
     public function __construct(
31 35
         ?State $initialState,
32 36
         ?State $finalState,
Please login to merge, or discard this patch.