Passed
Push — master ( a35924...0b8e84 )
by Radu
02:16
created
src/WebServCo/Api/JsonApi/AbstractResourceObject.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -44,8 +44,8 @@  discard block
 block discarded – undo
44 44
     }
45 45
 
46 46
     /**
47
-    * @return array<string,int|string>|string
48
-    */
47
+     * @return array<string,int|string>|string
48
+     */
49 49
     public function getAttribute(string $key)
50 50
     {
51 51
         if (!\array_key_exists($key, $this->attributes)) {
@@ -60,8 +60,8 @@  discard block
 block discarded – undo
60 60
     }
61 61
 
62 62
     /**
63
-    * @return int|string
64
-    */
63
+     * @return int|string
64
+     */
65 65
     public function getMeta(string $key)
66 66
     {
67 67
         if (!\array_key_exists($key, $this->meta)) {
@@ -71,8 +71,8 @@  discard block
 block discarded – undo
71 71
     }
72 72
 
73 73
     /**
74
-    * @param mixed $value
75
-    */
74
+     * @param mixed $value
75
+     */
76 76
     public function setAttribute(string $key, $value): bool
77 77
     {
78 78
         $this->attributes[$key] = $value;
@@ -92,8 +92,8 @@  discard block
 block discarded – undo
92 92
     }
93 93
 
94 94
     /**
95
-    * @param int|string $value
96
-    */
95
+     * @param int|string $value
96
+     */
97 97
     public function setMeta(string $key, $value): bool
98 98
     {
99 99
         $this->meta[$key] = $value;
@@ -101,8 +101,8 @@  discard block
 block discarded – undo
101 101
     }
102 102
 
103 103
     /**
104
-    * @return array<string,mixed>
105
-    */
104
+     * @return array<string,mixed>
105
+     */
106 106
     public function toArray(): array
107 107
     {
108 108
         $array = [
Please login to merge, or discard this patch.
src/WebServCo/Api/JsonApi/Interfaces/ResourceObjectInterface.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -8,34 +8,34 @@
 block discarded – undo
8 8
 {
9 9
 
10 10
     /**
11
-    * @return array<string,int|string>|string
12
-    */
11
+     * @return array<string,int|string>|string
12
+     */
13 13
     public function getAttribute(string $key);
14 14
 
15 15
     public function getId(): string;
16 16
 
17 17
     /**
18
-    * @return int|string
19
-    */
18
+     * @return int|string
19
+     */
20 20
     public function getMeta(string $key);
21 21
 
22 22
     public function setId(string $id): bool;
23 23
 
24 24
     /**
25
-    * @param mixed $value
26
-    */
25
+     * @param mixed $value
26
+     */
27 27
     public function setAttribute(string $key, $value): bool;
28 28
 
29 29
     public function setLink(string $key, string $value): bool;
30 30
 
31 31
     /**
32
-    * @param int|string $value
33
-    */
32
+     * @param int|string $value
33
+     */
34 34
     public function setMeta(string $key, $value): bool;
35 35
 
36 36
     /**
37
-    * @return array<string,mixed>
38
-    */
37
+     * @return array<string,mixed>
38
+     */
39 39
     public function toArray(): array;
40 40
 
41 41
     public function toJson(): string;
Please login to merge, or discard this patch.