Passed
Push — master ( d0c1c4...993795 )
by Radu
08:37
created
src/WebServCo/Api/JsonApi/Error.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,8 +68,8 @@
 block discarded – undo
68 68
     }
69 69
 
70 70
     /**
71
-    * @return array<string,mixed>
72
-    */
71
+     * @return array<string,mixed>
72
+     */
73 73
     public function toArray(): array
74 74
     {
75 75
         $array = [];
Please login to merge, or discard this patch.
src/WebServCo/Api/AbstractClientRequest.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -20,10 +20,10 @@  discard block
 block discarded – undo
20 20
     protected bool $processRequestData;
21 21
 
22 22
     /**
23
-    * Request data.
24
-    *
25
-    * @var array<mixed>
26
-    */
23
+     * Request data.
24
+     *
25
+     * @var array<mixed>
26
+     */
27 27
     protected array $requestData;
28 28
 
29 29
     public function __construct(RequestInterface $request)
@@ -115,8 +115,8 @@  discard block
 block discarded – undo
115 115
     }
116 116
 
117 117
     /**
118
-    * @param array<string,mixed> $data
119
-    */
118
+     * @param array<string,mixed> $data
119
+     */
120 120
     protected function verifyData(array $data): bool
121 121
     {
122 122
         foreach (['type', 'attributes'] as $item) {
Please login to merge, or discard this patch.
src/WebServCo/Api/AbstractResponse.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
     }
39 39
 
40 40
     /**
41
-    * @return mixed
42
-    */
41
+     * @return mixed
42
+     */
43 43
     public function getData()
44 44
     {
45 45
         return $this->data;
@@ -61,8 +61,8 @@  discard block
 block discarded – undo
61 61
     }
62 62
 
63 63
     /**
64
-    * @return mixed
65
-    */
64
+     * @return mixed
65
+     */
66 66
     protected function processResponseData()
67 67
     {
68 68
         $responseContent = $this->response->getContent();
Please login to merge, or discard this patch.
src/WebServCo/Api/JsonApi/Document.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -27,17 +27,17 @@  discard block
 block discarded – undo
27 27
     protected array $jsonapi;
28 28
 
29 29
     /**
30
-    * Data.
31
-    *
32
-    * @var array<int,\WebServCo\Api\JsonApi\Interfaces\ResourceObjectInterface>
33
-    */
30
+     * Data.
31
+     *
32
+     * @var array<int,\WebServCo\Api\JsonApi\Interfaces\ResourceObjectInterface>
33
+     */
34 34
     protected array $data;
35 35
 
36 36
     /**
37
-    * Errors.
38
-    *
39
-    * @var array<int,\WebServCo\Api\JsonApi\Error>
40
-    */
37
+     * Errors.
38
+     *
39
+     * @var array<int,\WebServCo\Api\JsonApi\Error>
40
+     */
41 41
     protected array $errors;
42 42
 
43 43
     protected int $statusCode;
@@ -76,8 +76,8 @@  discard block
 block discarded – undo
76 76
     }
77 77
 
78 78
     /**
79
-    * @return array<string,mixed>
80
-    */
79
+     * @return array<string,mixed>
80
+     */
81 81
     public function toArray(): array
82 82
     {
83 83
         $array = [
Please login to merge, or discard this patch.
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 mixed
48
-    */
47
+     * @return mixed
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|null
64
-    */
63
+     * @return int|string|null
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 mixed $value
96
-    */
95
+     * @param mixed $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 mixed $value
33
-    */
32
+     * @param mixed $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(int $flags = 0): string;
Please login to merge, or discard this patch.
src/WebServCo/Api/AbstractSecurity.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -61,16 +61,16 @@  discard block
 block discarded – undo
61 61
     }
62 62
 
63 63
     /**
64
-    * @return array<string,string>
65
-    */
64
+     * @return array<string,string>
65
+     */
66 66
     public function getClientContentTypes(): array
67 67
     {
68 68
         return $this->acceptContentTypes;
69 69
     }
70 70
 
71 71
     /**
72
-    * @param array<int,string> $allowedMethods
73
-    */
72
+     * @param array<int,string> $allowedMethods
73
+     */
74 74
     public function setAllowedMethods(array $allowedMethods): bool
75 75
     {
76 76
         $this->allowedMethods = $allowedMethods;
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
     }
79 79
 
80 80
     /**
81
-    * @param array<int,string> $supportedContentTypes
82
-    */
81
+     * @param array<int,string> $supportedContentTypes
82
+     */
83 83
     public function setSupportedContentTypes(array $supportedContentTypes): bool
84 84
     {
85 85
         $this->supportedContentTypes = $supportedContentTypes;
Please login to merge, or discard this patch.