@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | public static function createExecutionChain($middlewareList, callable $lastCallable) |
25 | 25 | { |
26 | 26 | while ($middleware = array_pop($middlewareList)) { |
27 | - if (! $middleware instanceof Middleware) { |
|
27 | + if (!$middleware instanceof Middleware) { |
|
28 | 28 | throw new InvalidArgumentException( |
29 | 29 | sprintf( |
30 | 30 | 'Middleware must be an instance of %s but %s was given', |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | ) |
34 | 34 | ); |
35 | 35 | } |
36 | - $lastCallable = function ($command) use ($middleware, $lastCallable) { |
|
36 | + $lastCallable = function($command) use ($middleware, $lastCallable) { |
|
37 | 37 | return $middleware->execute($command, $lastCallable); |
38 | 38 | }; |
39 | 39 | } |
@@ -89,7 +89,7 @@ |
||
89 | 89 | switch (get_class($stmt)) { |
90 | 90 | case TraitUse::class: |
91 | 91 | foreach ($stmt->traits as $use) { |
92 | - $classElement->addUsedTrait(new Fqsen('\\'. $use->toString())); |
|
92 | + $classElement->addUsedTrait(new Fqsen('\\' . $use->toString())); |
|
93 | 93 | } |
94 | 94 | break; |
95 | 95 | case PropertyNode::class: |
@@ -68,7 +68,7 @@ |
||
68 | 68 | $this->nodesFactory = $nodesFactory; |
69 | 69 | $this->adapter = $adapter; |
70 | 70 | |
71 | - $lastCallable = function ($command) { |
|
71 | + $lastCallable = function($command) { |
|
72 | 72 | return $this->createFile($command); |
73 | 73 | }; |
74 | 74 |
@@ -80,7 +80,7 @@ |
||
80 | 80 | break; |
81 | 81 | case TraitUse::class: |
82 | 82 | foreach ($stmt->traits as $use) { |
83 | - $trait->addUsedTrait(new Fqsen('\\'. $use->toString())); |
|
83 | + $trait->addUsedTrait(new Fqsen('\\' . $use->toString())); |
|
84 | 84 | } |
85 | 85 | break; |
86 | 86 | } |