@@ -42,7 +42,7 @@ |
||
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 |
@@ -69,16 +69,16 @@ |
||
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 |
@@ -33,7 +33,7 @@ |
||
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 |