@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | */ |
33 | 33 | public function __set(string $key, mixed $val): void |
34 | 34 | { |
35 | - $this->set($key,$val); |
|
35 | + $this->set($key,$val); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | public function set(string $key,mixed $val): void |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | |
71 | 71 | public function __get(string $key): mixed |
72 | 72 | { |
73 | - return $this->get($key); |
|
73 | + return $this->get($key); |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | public function get(string $key){ |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | */ |
127 | 127 | public function __isset(string $key): bool |
128 | 128 | { |
129 | - return $this->isset($key); |
|
129 | + return $this->isset($key); |
|
130 | 130 | } |
131 | 131 | |
132 | 132 | /** |
@@ -67,17 +67,17 @@ |
||
67 | 67 | } |
68 | 68 | |
69 | 69 | /** |
70 | - * Get single record by id |
|
71 | - * |
|
72 | - * @param \Scrawler\Arca\Model $model |
|
73 | - * @return \Scrawler\Arca\Model |
|
74 | - */ |
|
70 | + * Get single record by id |
|
71 | + * |
|
72 | + * @param \Scrawler\Arca\Model $model |
|
73 | + * @return \Scrawler\Arca\Model |
|
74 | + */ |
|
75 | 75 | public function getById(Model $model, mixed $id): Model |
76 | 76 | { |
77 | 77 | $query = (new QueryBuilder($this->db)) |
78 | - ->select('*') |
|
79 | - ->from($model->getName(), 't') |
|
80 | - ->where("t.id = '".$id."'"); |
|
78 | + ->select('*') |
|
79 | + ->from($model->getName(), 't') |
|
80 | + ->where("t.id = '".$id."'"); |
|
81 | 81 | $result = $this->db->connection->executeQuery($query)->fetchAssociative(); |
82 | 82 | $result = $result ? $result : []; |
83 | 83 | return $model->setProperties($result)->setLoaded(); |