Passed
Push — main ( b94a81...f6c2a3 )
by Pranjal
02:29
created
src/Facade/Database.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Model.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -227,7 +227,7 @@
 block discarded – undo
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([]);
Please login to merge, or discard this patch.
src/Factory/DatabaseFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,21 +63,21 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Database.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.