@@ -157,7 +157,7 @@ discard block |
||
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 |
||
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 |
||
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 | { |
@@ -96,7 +96,7 @@ discard block |
||
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 |
||
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 |
||
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 |
@@ -147,7 +147,7 @@ |
||
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 | { |
@@ -21,7 +21,7 @@ discard block |
||
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 |
||
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 | )); |
@@ -57,7 +57,7 @@ discard block |
||
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 |
||
88 | 88 | /** |
89 | 89 | * Prepare tree data for jstree. |
90 | 90 | * |
91 | - * @param mixed $cat |
|
92 | 91 | * |
93 | 92 | * @return array |
94 | 93 | */ |
@@ -77,7 +77,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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) |
@@ -169,7 +169,7 @@ discard block |
||
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 |
||
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 |
||
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 | { |
@@ -21,6 +21,7 @@ |
||
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 |
@@ -79,7 +79,7 @@ discard block |
||
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 |
||
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) |
@@ -17,7 +17,7 @@ |
||
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'; |