Test Setup Failed
Pull Request — developer (#300)
by Arkadiusz
38:14 queued 03:06
created
modules/Base/Model/Record.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 	 *
158 158
 	 * @param array $rawData
159 159
 	 *
160
-	 * @return void
160
+	 * @return Record
161 161
 	 */
162 162
 	public function setRawData(array $rawData)
163 163
 	{
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
 	 * Function to set the raw value for a given key.
182 182
 	 *
183 183
 	 * @param string $key
184
-	 * @param mixed  $value
184
+	 * @param integer  $value
185 185
 	 *
186 186
 	 * @return self
187 187
 	 */
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 	 *
197 197
 	 * @param string $value
198 198
 	 *
199
-	 * @return \self
199
+	 * @return Record
200 200
 	 */
201 201
 	public function setModuleName($value)
202 202
 	{
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
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
  */
22 22
 class CartView extends ListViewModel
23 23
 {
24
-	const ADDRESS_FIELDS = ['addresslevel1', 'addresslevel2', 'addresslevel3', 'addresslevel4', 'addresslevel5', 'addresslevel6',  'addresslevel7', 'addresslevel8',  'buildingnumber', 'localnumber', 'pobox'];
24
+	const ADDRESS_FIELDS = ['addresslevel1', 'addresslevel2', 'addresslevel3', 'addresslevel4', 'addresslevel5', 'addresslevel6', 'addresslevel7', 'addresslevel8', 'buildingnumber', 'localnumber', 'pobox'];
25 25
 	/**
26 26
 	 * Shopping cart.
27 27
 	 *
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 				continue;
118 118
 			}
119 119
 			$address[$typeAddress] = array_intersect_key($accountRecordDetail['data'], array_flip(
120
-				array_map(function ($val) use ($typeAddress) {
120
+				array_map(function($val) use ($typeAddress) {
121 121
 					return $val . $typeAddress;
122 122
 				}, static::ADDRESS_FIELDS)
123 123
 			));
Please login to merge, or discard this patch.
modules/Products/Model/Tree.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 	 *
58 58
 	 * @param array $selectedItems
59 59
 	 *
60
-	 * @return void
60
+	 * @return Tree
61 61
 	 */
62 62
 	public function setSelectedItems(array $selectedItems)
63 63
 	{
@@ -88,7 +88,6 @@  discard block
 block discarded – undo
88 88
 	/**
89 89
 	 * Prepare tree data for jstree.
90 90
 	 *
91
-	 * @param mixed $cat
92 91
 	 *
93 92
 	 * @return array
94 93
 	 */
Please login to merge, or discard this patch.
app/Request.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -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/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.
app/Response.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -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
 	{
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
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)
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.