Passed
Push — main ( 81f215...f64018 )
by Pranjal
02:05
created
src/QueryBuilder.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,10 +9,10 @@  discard block
 block discarded – undo
9 9
 class QueryBuilder extends \Doctrine\DBAL\Query\QueryBuilder
10 10
 {
11 11
     private string $table;
12
-    private array $relations= [];
12
+    private array $relations = [];
13 13
     private ModelManager $modelManager;
14 14
 
15
-    public function __construct(\Doctrine\DBAL\Connection $connection,ModelManager $modelManager)
15
+    public function __construct(\Doctrine\DBAL\Connection $connection, ModelManager $modelManager)
16 16
     {
17 17
         $this->modelManager = $modelManager;
18 18
         parent::__construct($connection);
@@ -27,10 +27,10 @@  discard block
 block discarded – undo
27 27
     public function from($table, $alias = null): QueryBuilder
28 28
     {
29 29
         $this->table = $table;
30
-        return parent::from($table,$alias);
30
+        return parent::from($table, $alias);
31 31
     }
32 32
 
33
-    public function get(): Collection|bool
33
+    public function get(): Collection | bool
34 34
     {
35 35
         $model = $this->modelManager->create($this->table);
36 36
         $relations = $this->relations;
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
             ->map(static fn($value): Model => ($model)->setProperties($value)->with($relations)->setLoaded());
44 44
     }
45 45
 
46
-    public function first(): Model|bool
46
+    public function first(): Model | bool
47 47
     {
48 48
         $relations = $this->relations;
49 49
         $this->relations = [];
Please login to merge, or discard this patch.