Passed
Push — main ( 7dc7cf...2fdc69 )
by Pranjal
02:49
created
src/Traits/Model/Iterator.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,10 +5,10 @@
 block discarded – undo
5 5
 use Scrawler\Arca\Collection;
6 6
 
7 7
 trait Iterator{
8
-     /**
9
-     * Get all properties in array form
10
-     * @return array<mixed>
11
-     */
8
+        /**
9
+         * Get all properties in array form
10
+         * @return array<mixed>
11
+         */
12 12
     public function toArray(): array
13 13
     {
14 14
         $props = $this->getProperties();
Please login to merge, or discard this patch.
src/Traits/Model/Setter.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -4,11 +4,11 @@  discard block
 block discarded – undo
4 4
 use Scrawler\Arca\Model;
5 5
 trait Setter{
6 6
 
7
-      /**
8
-     * Set all properties of model via array
9
-     * @param array<mixed> $properties
10
-     * @return Model
11
-     */
7
+        /**
8
+         * Set all properties of model via array
9
+         * @param array<mixed> $properties
10
+         * @return Model
11
+         */
12 12
     public function setProperties(array $properties): Model
13 13
     {
14 14
         foreach ($properties as $key => $value) {
@@ -17,11 +17,11 @@  discard block
 block discarded – undo
17 17
         return $this;
18 18
     }
19 19
 
20
-     /**
21
-     * Set all properties of model loaded via database
22
-     * @param array<mixed> $properties
23
-     * @return Model
24
-     */
20
+        /**
21
+         * Set all properties of model loaded via database
22
+         * @param array<mixed> $properties
23
+         * @return Model
24
+         */
25 25
     public function setLoadedProperties(array $properties): Model
26 26
     {
27 27
         $this->__properties['all'] = $properties;
@@ -33,10 +33,10 @@  discard block
 block discarded – undo
33 33
         return $this;
34 34
     }
35 35
 
36
-     /**
37
-     * call when model is loaded from database
38
-     * @return Model
39
-     */
36
+        /**
37
+         * call when model is loaded from database
38
+         * @return Model
39
+         */
40 40
     public function setLoaded(): Model
41 41
     {
42 42
         $this->__meta['is_loaded'] = true;
Please login to merge, or discard this patch.