Passed
Push — developer ( 19176d...6e2ae0 )
by Radosław
48:20 queued 13:37
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   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 	{
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
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
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
 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
 	 */
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
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
 	{
Please login to merge, or discard this patch.