Passed
Push — developer ( 02e24e...5c2b4d )
by Radosław
31:14
created
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/Api.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 	{
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
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'])) {
Please login to merge, or discard this patch.
app/Response.php 1 patch
Doc Comments   +3 added lines, -3 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
 	{
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
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
 	 */
Please login to merge, or discard this patch.
modules/Users/View/TwoFactorAuthenticationModal.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
app/Request.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
app/TextParser.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
app/Controller/Headers.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
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
 	{
Please login to merge, or discard this patch.
modules/Base/FieldTypes/BaseField.php 1 patch
Doc Comments   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 	/**
51 51
 	 * Function to get the view value.
52 52
 	 *
53
-	 * @return string
53
+	 * @return boolean
54 54
 	 */
55 55
 	public function setIsNewRecord()
56 56
 	{
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	 *
63 63
 	 * @param string $value
64 64
 	 *
65
-	 * @return Field
65
+	 * @return BaseField
66 66
 	 */
67 67
 	public function setDisplayValue($value): self
68 68
 	{
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 	 *
76 76
 	 * @param string $value
77 77
 	 *
78
-	 * @return \self
78
+	 * @return BaseField
79 79
 	 */
80 80
 	public function setModuleName($value)
81 81
 	{
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
 	 *
250 250
 	 * @param string $value
251 251
 	 *
252
-	 * @return Field
252
+	 * @return BaseField
253 253
 	 */
254 254
 	public function setRawValue($value)
255 255
 	{
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
 	/**
261 261
 	 * Validator.
262 262
 	 *
263
-	 * @return mixed
263
+	 * @return string
264 264
 	 */
265 265
 	public function getValidator()
266 266
 	{
@@ -326,10 +326,9 @@  discard block
 block discarded – undo
326 326
 	/**
327 327
 	 * Gets value to edit.
328 328
 	 *
329
-	 * @param mixed                              $value
330 329
 	 * @param \YF\Modules\Base\Model\Record|null $recordModel
331 330
 	 *
332
-	 * @return mixed
331
+	 * @return string
333 332
 	 */
334 333
 	public function getEditViewDisplayValue(\YF\Modules\Base\Model\Record $recordModel = null)
335 334
 	{
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
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
 	 *
173 173
 	 * @param string $key
174 174
 	 *
175
-	 * @return mixed
175
+	 * @return string
176 176
 	 */
177 177
 	public function getRawValue(string $key)
178 178
 	{
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
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
 	 */
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
 	 *
286 286
 	 * @param string $moduleName
287 287
 	 *
288
-	 * @return \self
288
+	 * @return Record
289 289
 	 */
290 290
 	public function setModuleName(string $moduleName): self
291 291
 	{
Please login to merge, or discard this patch.