Test Failed
Pull Request — 1.x (#17)
by butschster
02:04
created
src/Listener/OptimisticLock.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         $command->setScope($this->field, $nodeValue);
102 102
 
103 103
         return WrappedCommand::wrapCommand($command)
104
-            ->withAfterExecution(static function (ScopeCarrierInterface $command) use ($node): void {
104
+            ->withAfterExecution(static function(ScopeCarrierInterface $command) use ($node): void {
105 105
                 if ($command->getAffectedRows() === 0) {
106 106
                     throw new RecordIsLockedException($node);
107 107
                 }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 
111 111
     private function getLockingValue(mixed $previousValue): int|string|DateTimeInterface
112 112
     {
113
-        return match ($this->rule) {
113
+        return match($this->rule) {
114 114
             self::RULE_INCREMENT => (int)$previousValue + 1,
115 115
             self::RULE_DATETIME => new DateTimeImmutable(),
116 116
             self::RULE_RAND_STR => \bin2hex(\random_bytes(16)),
Please login to merge, or discard this patch.
src/Schema/RegistryModifier.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
             return $field;
130 130
         }
131 131
 
132
-        $handlers = (array) $handlers;
132
+        $handlers = (array)$handlers;
133 133
         $handlers[] = $handler;
134 134
         $this->entity->setTypecast(array_unique($handlers));
135 135
 
Please login to merge, or discard this patch.
src/OptimisticLock.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
      */
109 109
     private function computeRule(AbstractColumn $column): string
110 110
     {
111
-        return match ($column->getType()) {
111
+        return match($column->getType()) {
112 112
             ColumnInterface::INT => self::RULE_INCREMENT,
113 113
             ColumnInterface::STRING => self::RULE_MICROTIME,
114 114
             'datetime' => self::RULE_DATETIME,
Please login to merge, or discard this patch.