Passed
Push — master ( 7879ff...eaa287 )
by Yannick
01:43
created
Category
src/TransitionRegistry.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
             $transition = $this->transitions[$name];
52 52
         }
53 53
 
54
-        if (! $transition) {
54
+        if (!$transition) {
55 55
             throw NotFoundException::transitionNotFound($name);
56 56
         }
57 57
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     public function getState($name)
67 67
     {
68 68
         Assert::string($name);
69
-        if (! $this->hasState($name)) {
69
+        if (!$this->hasState($name)) {
70 70
             throw NotFoundException::stateNotFound($name);
71 71
         }
72 72
 
Please login to merge, or discard this patch.
src/Visitor/AttributeDumper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      */
24 24
     public function visitState($name, array $attributes)
25 25
     {
26
-        if (! isset($this->structure[$name])) {
26
+        if (!isset($this->structure[$name])) {
27 27
             $this->structure[$name] = [];
28 28
         }
29 29
 
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
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     public function __construct($currentState, StateRegistry $registry = null)
39 39
     {
40 40
         Assert::string($currentState);
41
-        if (! $registry) {
41
+        if (!$registry) {
42 42
             $registry = new TransitionRegistry();
43 43
         }
44 44
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     {
60 60
         Assert::string($transitionName);
61 61
         $transition = $this->registry->getTransition($transitionName);
62
-        if (! $transition->isAllowed($this->currentState)) {
62
+        if (!$transition->isAllowed($this->currentState)) {
63 63
             $exception = InvalidStateTransitionException::notAllowedTransition(
64 64
                 $transitionName,
65 65
                 $context,
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     public function isInState($stateName)
101 101
     {
102 102
         Assert::string($stateName);
103
-        if (! $this->registry->hasState($stateName)) {
103
+        if (!$this->registry->hasState($stateName)) {
104 104
             throw NotFoundException::stateNotFound($stateName);
105 105
         }
106 106
 
Please login to merge, or discard this patch.