@@ -101,7 +101,7 @@ discard block |
||
| 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 |
||
| 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)), |
@@ -129,7 +129,7 @@ |
||
| 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 | |
@@ -108,7 +108,7 @@ |
||
| 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, |