@@ -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([]); |
@@ -63,21 +63,21 @@ |
||
| 63 | 63 | */ |
| 64 | 64 | private function createConnection(array $connectionParams): void |
| 65 | 65 | { |
| 66 | - $this->container->set(Connection::class, function () use ($connectionParams): Connection { |
|
| 66 | + $this->container->set(Connection::class, function() use ($connectionParams): Connection { |
|
| 67 | 67 | return DriverManager::getConnection($connectionParams); |
| 68 | 68 | }); |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | private function createModelManager(): void |
| 72 | 72 | { |
| 73 | - $this->container->set(ModelManager::class, function (): ModelManager { |
|
| 73 | + $this->container->set(ModelManager::class, function(): ModelManager { |
|
| 74 | 74 | return new ModelManager($this->container); |
| 75 | 75 | }); |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | private function createConfig(bool $useUUID = false, bool $frozen = false): void |
| 79 | 79 | { |
| 80 | - $this->container->set(Config::class, function () use ($useUUID, $frozen): Config { |
|
| 80 | + $this->container->set(Config::class, function() use ($useUUID, $frozen): Config { |
|
| 81 | 81 | return new Config($useUUID, $frozen); |
| 82 | 82 | }); |
| 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 | } |