@@ -77,7 +77,7 @@ |
||
77 | 77 | * |
78 | 78 | * @return int|numeric-string |
79 | 79 | */ |
80 | - public static function exec(string $sql): int|string |
|
80 | + public static function exec(string $sql): int | string |
|
81 | 81 | { |
82 | 82 | return self::getDB()->exec($sql); |
83 | 83 | } |
@@ -53,7 +53,7 @@ |
||
53 | 53 | * |
54 | 54 | * @return int|numeric-string |
55 | 55 | */ |
56 | - public function exec(string $sql, array $params = []): int|string |
|
56 | + public function exec(string $sql, array $params = []): int | string |
|
57 | 57 | { |
58 | 58 | return $this->connection->executeStatement($sql, $params); |
59 | 59 | } |
@@ -6,10 +6,10 @@ |
||
6 | 6 | |
7 | 7 | return RectorConfig::configure() |
8 | 8 | ->withPaths([ |
9 | - __DIR__ . '/src', |
|
10 | - __DIR__ . '/tests', |
|
9 | + __DIR__.'/src', |
|
10 | + __DIR__.'/tests', |
|
11 | 11 | ]) |
12 | 12 | // uncomment to reach your current PHP version |
13 | 13 | ->withPhpSets(php83:true) |
14 | 14 | ->withAttributesSets() |
15 | - ->withPreparedSets(deadCode:true,typeDeclarations:true,codeQuality:true); |
|
15 | + ->withPreparedSets(deadCode:true, typeDeclarations:true, codeQuality:true); |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | |
121 | 121 | $type = $this->getDataType($val); |
122 | 122 | |
123 | - $this->__properties['self'][$key] = $this->getDbValue($val,$type); |
|
123 | + $this->__properties['self'][$key] = $this->getDbValue($val, $type); |
|
124 | 124 | $this->__properties['all'][$key] = $val; |
125 | 125 | $this->__properties['type'][$key] = $type; |
126 | 126 | } |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | * |
313 | 313 | * @throws Exception\InvalidModelException |
314 | 314 | */ |
315 | - private function createCollection(?Collection $collection, array|Collection $models): Collection |
|
315 | + private function createCollection(?Collection $collection, array | Collection $models): Collection |
|
316 | 316 | { |
317 | 317 | if (is_null($collection)) { |
318 | 318 | $collection = Collection::fromIterable([]); |
@@ -332,10 +332,10 @@ discard block |
||
332 | 332 | /** |
333 | 333 | * Get the database value from PHP value. |
334 | 334 | */ |
335 | - private function getDbValue(mixed $val,string $type): mixed |
|
335 | + private function getDbValue(mixed $val, string $type): mixed |
|
336 | 336 | { |
337 | 337 | if ('boolean' === $type) { |
338 | - return ($val) ? 1 : 0; |
|
338 | + return ($val) ? 1 : 0; |
|
339 | 339 | } |
340 | 340 | |
341 | 341 | return Type::getType($type)->convertToDatabaseValue($val, $this->connection->getDatabasePlatform()); |