@@ -50,7 +50,7 @@ |
||
| 50 | 50 | /** |
| 51 | 51 | * Sets record model. |
| 52 | 52 | * |
| 53 | - * @param YF\Modules\Base\Model\Record $recordModel |
|
| 53 | + * @param Record $recordModel |
|
| 54 | 54 | * |
| 55 | 55 | * @return void |
| 56 | 56 | */ |
@@ -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 | { |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | /** |
| 44 | 44 | * Function to get the view value. |
| 45 | 45 | * |
| 46 | - * @return string |
|
| 46 | + * @return boolean |
|
| 47 | 47 | */ |
| 48 | 48 | public function setIsNewRecord() |
| 49 | 49 | { |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | * |
| 56 | 56 | * @param string $value |
| 57 | 57 | * |
| 58 | - * @return Field |
|
| 58 | + * @return BaseField |
|
| 59 | 59 | */ |
| 60 | 60 | public function setDisplayValue($value): self |
| 61 | 61 | { |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | * |
| 69 | 69 | * @param string $value |
| 70 | 70 | * |
| 71 | - * @return \self |
|
| 71 | + * @return BaseField |
|
| 72 | 72 | */ |
| 73 | 73 | public function setModuleName($value) |
| 74 | 74 | { |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | /** |
| 228 | 228 | * Function to get the raw value. |
| 229 | 229 | * |
| 230 | - * @return mixed for the given key |
|
| 230 | + * @return string for the given key |
|
| 231 | 231 | */ |
| 232 | 232 | public function getRawValue() |
| 233 | 233 | { |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | * |
| 243 | 243 | * @param string $value |
| 244 | 244 | * |
| 245 | - * @return Field |
|
| 245 | + * @return BaseField |
|
| 246 | 246 | */ |
| 247 | 247 | public function setRawValue($value) |
| 248 | 248 | { |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | /** |
| 254 | 254 | * Validator. |
| 255 | 255 | * |
| 256 | - * @return mixed |
|
| 256 | + * @return string |
|
| 257 | 257 | */ |
| 258 | 258 | public function getValidator() |
| 259 | 259 | { |
@@ -309,9 +309,8 @@ discard block |
||
| 309 | 309 | /** |
| 310 | 310 | * Gets value to edit. |
| 311 | 311 | * |
| 312 | - * @param mixed $value |
|
| 313 | 312 | * |
| 314 | - * @return mixed |
|
| 313 | + * @return string |
|
| 315 | 314 | */ |
| 316 | 315 | public function getEditViewDisplayValue() |
| 317 | 316 | { |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | * |
| 182 | 182 | * @param array $rawData |
| 183 | 183 | * |
| 184 | - * @return void |
|
| 184 | + * @return Record |
|
| 185 | 185 | */ |
| 186 | 186 | public function setRawData(array $rawData) |
| 187 | 187 | { |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | * Function to set the raw value for a given key. |
| 206 | 206 | * |
| 207 | 207 | * @param string $key |
| 208 | - * @param mixed $value |
|
| 208 | + * @param integer $value |
|
| 209 | 209 | * |
| 210 | 210 | * @return self |
| 211 | 211 | */ |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | * |
| 221 | 221 | * @param string $moduleName |
| 222 | 222 | * |
| 223 | - * @return \self |
|
| 223 | + * @return Record |
|
| 224 | 224 | */ |
| 225 | 225 | public function setModuleName(string $moduleName): self |
| 226 | 226 | { |
@@ -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 |