@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | } |
170 | 170 | |
171 | 171 | /** |
172 | - * @param array $data |
|
172 | + * @param string $data |
|
173 | 173 | * |
174 | 174 | * @return string Encrypted string |
175 | 175 | */ |
@@ -181,11 +181,11 @@ discard block |
||
181 | 181 | } |
182 | 182 | |
183 | 183 | /** |
184 | - * @param array $data |
|
184 | + * @param string $data |
|
185 | 185 | * |
186 | 186 | * @throws \App\Exceptions\AppException |
187 | 187 | * |
188 | - * @return array Decrypted string |
|
188 | + * @return string Decrypted string |
|
189 | 189 | */ |
190 | 190 | public function decryptData($data) |
191 | 191 | { |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | * @param string $method |
203 | 203 | * @param array $data |
204 | 204 | * @param array $response |
205 | - * @param mixed $rawResponse |
|
205 | + * @param string $rawResponse |
|
206 | 206 | */ |
207 | 207 | public function addLogs($method, $data, $response, $rawResponse = false) |
208 | 208 | { |
@@ -40,7 +40,6 @@ |
||
40 | 40 | /** |
41 | 41 | * Function to check permission. |
42 | 42 | * |
43 | - * @param \App\Request $request |
|
44 | 43 | * |
45 | 44 | * @throws \App\Exceptions\NoPermitted |
46 | 45 | */ |
@@ -21,6 +21,7 @@ |
||
21 | 21 | * |
22 | 22 | * @param ConfigInterface $config |
23 | 23 | * @param string $type |
24 | + * @return void |
|
24 | 25 | */ |
25 | 26 | public function __construct(ConfigInterface $config, string $type); |
26 | 27 |
@@ -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 | { |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | * Set error data to send. |
107 | 107 | * |
108 | 108 | * @param mixed $code |
109 | - * @param mixed|null $message |
|
109 | + * @param string $message |
|
110 | 110 | * @param mixed $trace |
111 | 111 | */ |
112 | 112 | public function setError($code, $message = null, $trace = false) |
@@ -17,7 +17,7 @@ |
||
17 | 17 | { |
18 | 18 | //Override the default expire time of token |
19 | 19 | \CsrfMagic\Csrf::$expires = 259200; |
20 | - \CsrfMagic\Csrf::$callback = function ($tokens) { |
|
20 | + \CsrfMagic\Csrf::$callback = function($tokens) { |
|
21 | 21 | throw new \App\Exceptions\BadRequest('Invalid request - Response For Illegal Access'); |
22 | 22 | }; |
23 | 23 | $js = PUBLIC_DIRECTORY . 'vendor/yetiforce/csrf-magic/src/Csrf.min.js'; |