Completed
Push — master ( 078d8e...777f90 )
by Radu
10:17
created
src/WebServCo/Api/AbstractSecurity.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -59,16 +59,16 @@  discard block
 block discarded – undo
59 59
     }
60 60
 
61 61
     /**
62
-    * @return array<int|string,string>
63
-    */
62
+     * @return array<int|string,string>
63
+     */
64 64
     public function getClientContentTypes(): array
65 65
     {
66 66
         return $this->clientContentTypes;
67 67
     }
68 68
 
69 69
     /**
70
-    * @param array<int,string> $allowedMethods
71
-    */
70
+     * @param array<int,string> $allowedMethods
71
+     */
72 72
     public function setAllowedMethods(array $allowedMethods): bool
73 73
     {
74 74
         $this->allowedMethods = $allowedMethods;
@@ -76,8 +76,8 @@  discard block
 block discarded – undo
76 76
     }
77 77
 
78 78
     /**
79
-    * @param array<int|string,string> $supportedContentTypes
80
-    */
79
+     * @param array<int|string,string> $supportedContentTypes
80
+     */
81 81
     public function setSupportedContentTypes(array $supportedContentTypes): bool
82 82
     {
83 83
         $this->supportedContentTypes = $supportedContentTypes;
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
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
     }
43 43
 
44 44
     /**
45
-    * @return array<string,int|string>|string
46
-    */
45
+     * @return array<string,int|string>|string
46
+     */
47 47
     public function getAttribute(string $key)
48 48
     {
49 49
         if (!\array_key_exists($key, $this->attributes)) {
@@ -58,8 +58,8 @@  discard block
 block discarded – undo
58 58
     }
59 59
 
60 60
     /**
61
-    * @return int|string
62
-    */
61
+     * @return int|string
62
+     */
63 63
     public function getMeta(string $key)
64 64
     {
65 65
         if (!\array_key_exists($key, $this->meta)) {
@@ -81,8 +81,8 @@  discard block
 block discarded – undo
81 81
     }
82 82
 
83 83
     /**
84
-    * @param array<string,int|string>|string $value
85
-    */
84
+     * @param array<string,int|string>|string $value
85
+     */
86 86
     public function setAttribute(string $key, $value): bool
87 87
     {
88 88
         $this->attributes[$key] = $value;
@@ -96,8 +96,8 @@  discard block
 block discarded – undo
96 96
     }
97 97
 
98 98
     /**
99
-    * @param int|string $value
100
-    */
99
+     * @param int|string $value
100
+     */
101 101
     public function setMeta(string $key, $value): bool
102 102
     {
103 103
         $this->meta[$key] = $value;
@@ -105,8 +105,8 @@  discard block
 block discarded – undo
105 105
     }
106 106
 
107 107
     /**
108
-    * @return array<string,mixed>
109
-    */
108
+     * @return array<string,mixed>
109
+     */
110 110
     public function toArray(): array
111 111
     {
112 112
         $array = [
Please login to merge, or discard this patch.
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/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/Interfaces/ResourceObjectInterface.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -8,15 +8,15 @@  discard block
 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 setType(string $type): bool;
@@ -24,20 +24,20 @@  discard block
 block discarded – undo
24 24
     public function setId(string $id): bool;
25 25
 
26 26
     /**
27
-    * @param array<string,int|string>|string $value
28
-    */
27
+     * @param array<string,int|string>|string $value
28
+     */
29 29
     public function setAttribute(string $key, $value): bool;
30 30
 
31 31
     public function setLink(string $key, string $value): bool;
32 32
 
33 33
     /**
34
-    * @param int|string $value
35
-    */
34
+     * @param int|string $value
35
+     */
36 36
     public function setMeta(string $key, $value): bool;
37 37
 
38 38
     /**
39
-    * @return array<string,mixed>
40
-    */
39
+     * @return array<string,mixed>
40
+     */
41 41
     public function toArray(): array;
42 42
 
43 43
     public function toJson(): string;
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.