@@ -62,8 +62,7 @@ discard block |
||
62 | 62 | ) { |
63 | 63 | /** @var ReadWriteOperation $operation */ |
64 | 64 | $sequence = $operation->isReadFirst() ? |
65 | - [$operation->getReadOperation(), $operation->getWriteOperation()] : |
|
66 | - [$operation->getWriteOperation(), $operation->getReadOperation()]; |
|
65 | + [$operation->getReadOperation(), $operation->getWriteOperation()] : [$operation->getWriteOperation(), $operation->getReadOperation()]; |
|
67 | 66 | $sequence = array_filter($sequence); |
68 | 67 | |
69 | 68 | foreach ($sequence as $op) { |
@@ -78,8 +77,7 @@ discard block |
||
78 | 77 | } |
79 | 78 | |
80 | 79 | return $operation->getReadOperation() !== null || $operation->getWriteOperation() !== null ? |
81 | - $operation : |
|
82 | - null; |
|
80 | + $operation : null; |
|
83 | 81 | } |
84 | 82 | |
85 | 83 | /** |
@@ -59,8 +59,7 @@ |
||
59 | 59 | ) { |
60 | 60 | $handler = $this->getHandler($operation); |
61 | 61 | return $handler ? |
62 | - $handler->handle($operation, $descriptor, $executor, $eventHandler, $executionContext) : |
|
63 | - null; |
|
62 | + $handler->handle($operation, $descriptor, $executor, $eventHandler, $executionContext) : null; |
|
64 | 63 | } |
65 | 64 | |
66 | 65 | /** |