@@ -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 | } |
@@ -227,7 +227,7 @@ |
||
227 | 227 | * |
228 | 228 | * @throws Exception\InvalidModelException |
229 | 229 | */ |
230 | - private function createCollection(?Collection $collection, array|Collection $models): Collection |
|
230 | + private function createCollection(?Collection $collection, array | Collection $models): Collection |
|
231 | 231 | { |
232 | 232 | if (is_null($collection)) { |
233 | 233 | $collection = Collection::fromIterable([]); |
@@ -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 | } |
@@ -67,21 +67,21 @@ |
||
67 | 67 | */ |
68 | 68 | private function createConnection(array $connectionParams): void |
69 | 69 | { |
70 | - $this->container->set(Connection::class, function () use ($connectionParams): Connection { |
|
70 | + $this->container->set(Connection::class, function() use ($connectionParams): Connection { |
|
71 | 71 | return DriverManager::getConnection($connectionParams); |
72 | 72 | }); |
73 | 73 | } |
74 | 74 | |
75 | 75 | private function createModelManager(): void |
76 | 76 | { |
77 | - $this->container->set(ModelManager::class, function (): ModelManager { |
|
77 | + $this->container->set(ModelManager::class, function(): ModelManager { |
|
78 | 78 | return new ModelManager($this->container); |
79 | 79 | }); |
80 | 80 | } |
81 | 81 | |
82 | 82 | private function createConfig(bool $useUUID): void |
83 | 83 | { |
84 | - $this->container->set(Config::class, function () use ($useUUID): Config { |
|
84 | + $this->container->set(Config::class, function() use ($useUUID): Config { |
|
85 | 85 | return new Config($useUUID); |
86 | 86 | }); |
87 | 87 | } |