@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | /** |
27 | 27 | * Returns a cache item representing the specified key. |
28 | 28 | * |
29 | - * @param string|array $key Cache ID |
|
29 | + * @param string $key Cache ID |
|
30 | 30 | * |
31 | 31 | * @return string|array |
32 | 32 | */ |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | /** |
39 | 39 | * Confirms if the cache contains specified cache item. |
40 | 40 | * |
41 | - * @param string|array $key Cache ID |
|
41 | + * @param string $key Cache ID |
|
42 | 42 | * |
43 | 43 | * @return bool |
44 | 44 | */ |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * |
53 | 53 | * @param string $key Cache ID |
54 | 54 | * @param string|array|null $value Data to store |
55 | - * @param int|false $duration Cache TTL (in seconds) |
|
55 | + * @param integer $duration Cache TTL (in seconds) |
|
56 | 56 | * |
57 | 57 | * @return bool |
58 | 58 | */ |
@@ -66,9 +66,9 @@ discard block |
||
66 | 66 | /** |
67 | 67 | * Removes the item from the cache. |
68 | 68 | * |
69 | - * @param string|array $key Cache ID |
|
69 | + * @param string $key Cache ID |
|
70 | 70 | * |
71 | - * @return bool |
|
71 | + * @return boolean|null |
|
72 | 72 | */ |
73 | 73 | public function delete($key) |
74 | 74 | { |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | /** |
79 | 79 | * Deletes all items in the cache. |
80 | 80 | * |
81 | - * @return bool |
|
81 | + * @return boolean|null |
|
82 | 82 | */ |
83 | 83 | public function clear() |
84 | 84 | { |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | } |
152 | 152 | |
153 | 153 | /** |
154 | - * @param array $data |
|
154 | + * @param string $data |
|
155 | 155 | * |
156 | 156 | * @return string Encrypted string |
157 | 157 | */ |
@@ -163,11 +163,11 @@ discard block |
||
163 | 163 | } |
164 | 164 | |
165 | 165 | /** |
166 | - * @param array $data |
|
166 | + * @param string $data |
|
167 | 167 | * |
168 | 168 | * @throws \App\Exceptions\AppException |
169 | 169 | * |
170 | - * @return array Decrypted string |
|
170 | + * @return string Decrypted string |
|
171 | 171 | */ |
172 | 172 | public function decryptData($data) |
173 | 173 | { |
@@ -134,7 +134,7 @@ |
||
134 | 134 | if (Config::$apiAllLogs || (Config::$apiErrorLogs && (isset($responseBody['error']) || empty($responseBody) || 200 !== $response->getStatusCode()))) { |
135 | 135 | \App\Log::info([ |
136 | 136 | 'request' => ['date' => date('Y-m-d H:i:s', $startTime), 'requestType' => strtoupper($requestType), 'method' => $method, 'headers' => $headers, 'rawBody' => $rawRequest, 'body' => $data], |
137 | - 'response' => ['time' => round(microtime(true) - $startTime, 2), 'status' => $response->getStatusCode(), 'reasonPhrase' => $response->getReasonPhrase(), 'headers' => $response->getHeaders(), 'rawBody' => $rawResponse, 'body' => $responseBody], |
|
137 | + 'response' => ['time' => round(microtime(true) - $startTime, 2), 'status' => $response->getStatusCode(), 'reasonPhrase' => $response->getReasonPhrase(), 'headers' => $response->getHeaders(), 'rawBody' => $rawResponse, 'body' => $responseBody], |
|
138 | 138 | ], 'Api'); |
139 | 139 | } |
140 | 140 | if (isset($responseBody['error'])) { |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | /** |
59 | 59 | * Set headers to send. |
60 | 60 | * |
61 | - * @param mixed $header |
|
61 | + * @param string $header |
|
62 | 62 | */ |
63 | 63 | public function setHeader($header) |
64 | 64 | { |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | /** |
80 | 80 | * Set emit type. |
81 | 81 | * |
82 | - * @param mixed $type |
|
82 | + * @param integer $type |
|
83 | 83 | */ |
84 | 84 | public function setEmitType($type) |
85 | 85 | { |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | /** |
120 | 120 | * Set exception error to send. |
121 | 121 | * |
122 | - * @param Throwable $e |
|
122 | + * @param \Throwable $e |
|
123 | 123 | * |
124 | 124 | * @return void |
125 | 125 | */ |
@@ -58,7 +58,7 @@ |
||
58 | 58 | if (empty($response['secretKey'])) { |
59 | 59 | $this->authMethods = $response['authMethods']; |
60 | 60 | } else { |
61 | - ['authMethods' => $this->authMethods , 'secretKey' => $this->secretKey] = $response; |
|
61 | + ['authMethods' => $this->authMethods, 'secretKey' => $this->secretKey] = $response; |
|
62 | 62 | $this->viewer->assign('QR_CODE_HTML', $this->createQrCodeForUser()); |
63 | 63 | } |
64 | 64 | $this->viewer->assign('SECRET_KEY', $this->secretKey); |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | * |
60 | 60 | * @param string $key |
61 | 61 | * |
62 | - * @return mixed |
|
62 | + * @return string |
|
63 | 63 | */ |
64 | 64 | public function getRaw(string $key) |
65 | 65 | { |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | /** |
78 | 78 | * Check for existence of key. |
79 | 79 | * |
80 | - * @param mixed $key |
|
80 | + * @param string $key |
|
81 | 81 | */ |
82 | 82 | public function has($key) |
83 | 83 | { |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | /** |
88 | 88 | * Is the value (linked to key) empty? |
89 | 89 | * |
90 | - * @param mixed $key |
|
90 | + * @param string $key |
|
91 | 91 | */ |
92 | 92 | public function isEmpty($key) |
93 | 93 | { |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | * |
100 | 100 | * @param string $key Key name |
101 | 101 | * @param int|string $type Data type that is only acceptable, default only words 'Standard' |
102 | - * @param mixed $defaultValue |
|
102 | + * @param integer $defaultValue |
|
103 | 103 | * |
104 | 104 | * @return mixed |
105 | 105 | */ |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | /** |
209 | 209 | * Set the value for key. |
210 | 210 | * |
211 | - * @param mixed $key |
|
211 | + * @param string $key |
|
212 | 212 | * @param mixed $newvalue |
213 | 213 | */ |
214 | 214 | public function set($key, $newvalue) |
@@ -17,7 +17,7 @@ |
||
17 | 17 | * Truncating text. |
18 | 18 | * |
19 | 19 | * @param string $text |
20 | - * @param bool|int $length |
|
20 | + * @param integer $length |
|
21 | 21 | * @param bool $addDots |
22 | 22 | * |
23 | 23 | * @return string |
@@ -73,7 +73,7 @@ |
||
73 | 73 | /** |
74 | 74 | * Get headers instance. |
75 | 75 | * |
76 | - * @return \self |
|
76 | + * @return Headers |
|
77 | 77 | */ |
78 | 78 | public static function getInstance() |
79 | 79 | { |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | * |
32 | 32 | * @param string $value |
33 | 33 | * |
34 | - * @return \self |
|
34 | + * @return BaseField |
|
35 | 35 | */ |
36 | 36 | public function setModuleName($value) |
37 | 37 | { |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | /** |
193 | 193 | * Validator. |
194 | 194 | * |
195 | - * @return mixed |
|
195 | + * @return string |
|
196 | 196 | */ |
197 | 197 | public function getValidator() |
198 | 198 | { |
@@ -258,10 +258,9 @@ discard block |
||
258 | 258 | /** |
259 | 259 | * Gets value to edit. |
260 | 260 | * |
261 | - * @param mixed $value |
|
262 | 261 | * @param \YF\Modules\Base\Model\Record|null $recordModel |
263 | 262 | * |
264 | - * @return mixed |
|
263 | + * @return string |
|
265 | 264 | */ |
266 | 265 | public function getEditViewDisplayValue(\YF\Modules\Base\Model\Record $recordModel = null) |
267 | 266 | { |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | /** |
125 | 125 | * Function to get the id of the record. |
126 | 126 | * |
127 | - * @return int|null |
|
127 | + * @return string |
|
128 | 128 | */ |
129 | 129 | public function getId(): ?int |
130 | 130 | { |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | * Function to set the raw value for a given key. |
184 | 184 | * |
185 | 185 | * @param string $key |
186 | - * @param mixed $value |
|
186 | + * @param integer $value |
|
187 | 187 | * |
188 | 188 | * @return self |
189 | 189 | */ |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | * |
280 | 280 | * @param string $moduleName |
281 | 281 | * |
282 | - * @return \self |
|
282 | + * @return Record |
|
283 | 283 | */ |
284 | 284 | public function setModuleName(string $moduleName): self |
285 | 285 | { |