Passed
Push — main ( ca7764...b3a2f8 )
by Pranjal
01:49
created
src/Model.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Manager/RecordManager.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -67,17 +67,17 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.