Passed
Pull Request — main (#58)
by
unknown
08:37 queued 06:31
created
src/Event.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         }
43 43
         foreach (self::$events[$eventname] as $key => $weight) {
44 44
             foreach ($weight as $callback) {
45
-                 call_user_func_array($callback, $params);
45
+                    call_user_func_array($callback, $params);
46 46
             }
47 47
         }
48 48
 
Please login to merge, or discard this patch.
src/Manager/RecordManager.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -69,16 +69,16 @@
 block discarded – undo
69 69
     }
70 70
 
71 71
     /**
72
-    * Get single record by id
73
-    * @param string $table
74
-    * @param mixed $id
75
-    */
72
+     * Get single record by id
73
+     * @param string $table
74
+     * @param mixed $id
75
+     */
76 76
     public function getById(string $table, mixed $id): Model|null
77 77
     {
78 78
         $query =  (new QueryBuilder($this->connection,$this->modelManager))
79
-                 ->select('*')
80
-                 ->from($table, 't')
81
-                 ->where("t.id = '".$id."'");
79
+                    ->select('*')
80
+                    ->from($table, 't')
81
+                    ->where("t.id = '".$id."'");
82 82
         return $query->first();
83 83
     }
84 84
 
Please login to merge, or discard this patch.
src/Manager/ModelManager.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      */
34 34
     function setConnection(Connection $connection): void
35 35
     {
36
-       $this->connection = $connection;   
36
+        $this->connection = $connection;   
37 37
     }
38 38
 
39 39
 }
40 40
\ No newline at end of file
Please login to merge, or discard this patch.