Passed
Push — master ( 4da179...4cded1 )
by Yannick
02:33
created
src/TransitionRegistry.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             $transition = new ReadOnlyTransition($this->transitions[$name]['to']);
50 50
         }
51 51
 
52
-        if (! $transition) {
52
+        if (!$transition) {
53 53
             throw NotFoundException::transitionNotFound($name);
54 54
         }
55 55
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     private function addAttributes($state, array $attributes)
78 78
     {
79 79
         array_map(
80
-            function ($attribute) use ($state) {
80
+            function($attribute) use ($state) {
81 81
                 $this->addAttribute($state, $attribute);
82 82
             },
83 83
             $attributes
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     {
112 112
         Assert::string($state);
113 113
         Assert::string($attribute);
114
-        if (! $this->hasState($state)) {
114
+        if (!$this->hasState($state)) {
115 115
             return false;
116 116
         }
117 117
 
Please login to merge, or discard this patch.
src/StateMachine.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public function transit($transitionName, $context, TransitionCallback $callback = null)
61 61
     {
62
-        if (! $callback) {
62
+        if (!$callback) {
63 63
             $callback = new AlwaysThrowExceptionOnFailure();
64 64
         }
65 65
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
         $newState = $transition->getDestinationState();
76 76
         $allowed = $this->states->transitionStartsFrom($transitionName, $this->currentState);
77
-        if (! $allowed) {
77
+        if (!$allowed) {
78 78
             $exception = InvalidStateTransitionException::notAllowedTransition(
79 79
                 $transitionName,
80 80
                 $context,
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
     public function isInState($stateName)
111 111
     {
112 112
         Assert::string($stateName);
113
-        if (! $this->states->hasState($stateName)) {
113
+        if (!$this->states->hasState($stateName)) {
114 114
             throw NotFoundException::stateNotFound($stateName);
115 115
         }
116 116
 
Please login to merge, or discard this patch.