Passed
Push — developer ( 19176d...6e2ae0 )
by Radosław
48:20 queued 13:37
created
app/Cache.php 2 patches
Doc Comments   +7 added lines, -8 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 	 * Returns a Cache Item representing the specified key.
48 48
 	 *
49 49
 	 * @param string $key       Cache ID
50
-	 * @param mixed  $nameSpace
50
+	 * @param string  $nameSpace
51 51
 	 *
52 52
 	 * @return mixed
53 53
 	 */
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 	 * @param string $key       Cache ID
76 76
 	 * @param mixed  $value     Data to store, supports string, array, objects
77 77
 	 * @param int    $duration  Cache TTL (in seconds)
78
-	 * @param mixed  $nameSpace
78
+	 * @param string  $nameSpace
79 79
 	 *
80 80
 	 * @return bool
81 81
 	 */
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 	 * @param string $key       Cache ID
94 94
 	 * @param mixed  $nameSpace
95 95
 	 *
96
-	 * @return bool
96
+	 * @return boolean|null
97 97
 	 */
98 98
 	public static function delete($nameSpace, $key)
99 99
 	{
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 	/**
104 104
 	 * Deletes all items in the cache.
105 105
 	 *
106
-	 * @return bool
106
+	 * @return boolean|null
107 107
 	 */
108 108
 	public static function clear()
109 109
 	{
@@ -142,7 +142,6 @@  discard block
 block discarded – undo
142 142
 	 * @param string $nameSpace
143 143
 	 * @param string $key       Cache ID
144 144
 	 * @param mixed  $value     Data to store
145
-	 * @param int    $duration  Cache TTL (in seconds)
146 145
 	 *
147 146
 	 * @return bool
148 147
 	 */
@@ -157,7 +156,7 @@  discard block
 block discarded – undo
157 156
 	 * @param string $nameSpace
158 157
 	 * @param string $key       Cache ID
159 158
 	 *
160
-	 * @return bool
159
+	 * @return boolean|null
161 160
 	 */
162 161
 	public static function staticDelete($nameSpace, $key)
163 162
 	{
@@ -167,7 +166,7 @@  discard block
 block discarded – undo
167 166
 	/**
168 167
 	 * Deletes all items in the static cache.
169 168
 	 *
170
-	 * @return bool
169
+	 * @return boolean|null
171 170
 	 */
172 171
 	public static function staticClear()
173 172
 	{
@@ -177,7 +176,7 @@  discard block
 block discarded – undo
177 176
 	/**
178 177
 	 * Clear the opcache after the script finishes.
179 178
 	 *
180
-	 * @return bool
179
+	 * @return false|null
181 180
 	 */
182 181
 	public static function clearOpcache()
183 182
 	{
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@
 block discarded – undo
184 184
 		if (static::$clearOpcache) {
185 185
 			return false;
186 186
 		}
187
-		register_shutdown_function(function () {
187
+		register_shutdown_function(function() {
188 188
 			static::resetOpcache();
189 189
 		});
190 190
 		static::$clearOpcache = true;
Please login to merge, or discard this patch.
app/Config.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 	/**
53 53
 	 * Get all js configuratin in json.
54 54
 	 *
55
-	 * @return type
55
+	 * @return string
56 56
 	 */
57 57
 	public static function getJsEnv()
58 58
 	{
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 	 * Get integer config value.
88 88
 	 *
89 89
 	 * @param string $key
90
-	 * @param bool   $default
90
+	 * @param integer   $default
91 91
 	 *
92 92
 	 * @return int
93 93
 	 */
Please login to merge, or discard this patch.
app/Controller/Base.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
 	/**
95 95
 	 * Error handler.
96 96
 	 *
97
-	 * @param string $errno
97
+	 * @param integer $errno
98 98
 	 * @param string $errstr
99 99
 	 * @param string $errfile
100 100
 	 * @param string $errline
Please login to merge, or discard this patch.
app/Log.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 	/**
42 42
 	 * Add error to log.
43 43
 	 *
44
-	 * @param mixed  $value
44
+	 * @param string  $value
45 45
 	 * @param string $category
46 46
 	 *
47 47
 	 * @return void
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 	/**
55 55
 	 * Add warning to log.
56 56
 	 *
57
-	 * @param mixed  $value
57
+	 * @param string  $value
58 58
 	 * @param string $category
59 59
 	 *
60 60
 	 * @return void
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 	 */
34 34
 	public static function init()
35 35
 	{
36
-		register_shutdown_function(function () {
36
+		register_shutdown_function(function() {
37 37
 			static::flush();
38 38
 		});
39 39
 	}
Please login to merge, or discard this patch.
app/Payments/Redsys.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -390,7 +390,7 @@
 block discarded – undo
390 390
 	 *
391 391
 	 * @param string $merchantParameters
392 392
 	 *
393
-	 * @return array
393
+	 * @return string
394 394
 	 */
395 395
 	private function decodeMerchantParameters(string $merchantParameters): array
396 396
 	{
Please login to merge, or discard this patch.
app/Viewer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 	 * @param string $moduleName
69 69
 	 * @param bool   $fetch
70 70
 	 *
71
-	 * @return string|true - html data
71
+	 * @return string|boolean - html data
72 72
 	 */
73 73
 	public function view(string $templateName, string $moduleName = '', bool $fetch = false)
74 74
 	{
Please login to merge, or discard this patch.
modules/Products/Model/Cart.php 1 patch
Doc Comments   +1 added lines, -4 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 	/**
97 97
 	 * Returns address.
98 98
 	 *
99
-	 * @return array
99
+	 * @return string
100 100
 	 */
101 101
 	public function getPayment(): string
102 102
 	{
@@ -118,7 +118,6 @@  discard block
 block discarded – undo
118 118
 	/**
119 119
 	 * Sets address.
120 120
 	 *
121
-	 * @param array  $address
122 121
 	 * @param string $methodPayments
123 122
 	 *
124 123
 	 * @return void
@@ -131,8 +130,6 @@  discard block
 block discarded – undo
131 130
 	/**
132 131
 	 * Sets address.
133 132
 	 *
134
-	 * @param array  $address
135
-	 * @param string $methodPayments
136 133
 	 * @param string $attention
137 134
 	 *
138 135
 	 * @return void
Please login to merge, or discard this patch.
modules/Products/Model/CartView.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@
 block discarded – undo
147 147
 	/**
148 148
 	 * Returns selected address.
149 149
 	 *
150
-	 * @return array
150
+	 * @return null|\App\Payments\PaymentsInterface
151 151
 	 */
152 152
 	public function getSelectedPayment(): ?\App\Payments\PaymentsInterface
153 153
 	{
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
  */
23 23
 class CartView extends ListViewModel
24 24
 {
25
-	const ADDRESS_FIELDS = ['addresslevel1', 'addresslevel2', 'addresslevel3', 'addresslevel4', 'addresslevel5', 'addresslevel6',  'addresslevel7', 'addresslevel8',  'buildingnumber', 'localnumber', 'pobox'];
25
+	const ADDRESS_FIELDS = ['addresslevel1', 'addresslevel2', 'addresslevel3', 'addresslevel4', 'addresslevel5', 'addresslevel6', 'addresslevel7', 'addresslevel8', 'buildingnumber', 'localnumber', 'pobox'];
26 26
 
27 27
 	/** @var Shopping cart */
28 28
 	private $cart;
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 				continue;
121 121
 			}
122 122
 			$address[$typeAddress] = array_intersect_key($accountRecordDetail['data'], array_flip(
123
-				array_map(function ($val) use ($typeAddress) {
123
+				array_map(function($val) use ($typeAddress) {
124 124
 					return $val . $typeAddress;
125 125
 				}, static::ADDRESS_FIELDS)
126 126
 			));
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.