Passed
Push — developer ( ac75b2...f4c496 )
by Mariusz
30:53
created
app/Api.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 	{
Please login to merge, or discard this patch.
app/Payments/PaymentsInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -21,6 +21,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
config/csrf_config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.
modules/Base/Model/DetailView.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
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
 	 */
Please login to merge, or discard this patch.
app/Cache/Base.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 	{
Please login to merge, or discard this patch.
app/Response.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 	{
@@ -105,8 +105,8 @@  discard block
 block discarded – undo
105 105
 	/**
106 106
 	 * Set error data to send.
107 107
 	 *
108
-	 * @param mixed      $code
109
-	 * @param mixed|null $message
108
+	 * @param integer      $code
109
+	 * @param string $message
110 110
 	 * @param mixed      $trace
111 111
 	 *
112 112
 	 * @return void
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 	/**
127 127
 	 * Set exception error to send.
128 128
 	 *
129
-	 * @param Throwable $e
129
+	 * @param \Throwable $e
130 130
 	 *
131 131
 	 * @return void
132 132
 	 */
Please login to merge, or discard this patch.
modules/Base/FieldTypes/BaseField.php 1 patch
Doc Comments   +7 added lines, -8 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 	{
Please login to merge, or discard this patch.
modules/Base/Model/Record.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 	{
Please login to merge, or discard this patch.