Passed
Push — main ( 7b46be...bf2f0a )
by Pranjal
02:45 queued 12s
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/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.
src/Factory/DatabaseFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -67,21 +67,21 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.