@@ -101,6 +101,9 @@ discard block |
||
101 | 101 | return '__API_PATH__' != Config::$apiUrl; |
102 | 102 | } |
103 | 103 | |
104 | + /** |
|
105 | + * @param Request $request |
|
106 | + */ |
|
104 | 107 | protected function triggerPreProcess($handler, $request) |
105 | 108 | { |
106 | 109 | if ($request->isAjax()) { |
@@ -110,6 +113,9 @@ discard block |
||
110 | 113 | $handler->preProcess(); |
111 | 114 | } |
112 | 115 | |
116 | + /** |
|
117 | + * @param Request $request |
|
118 | + */ |
|
113 | 119 | protected function triggerPostProcess($handler, $request) |
114 | 120 | { |
115 | 121 | if ($request->isAjax()) { |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | /** |
38 | 38 | * Function to get the view value. |
39 | 39 | * |
40 | - * @return string |
|
40 | + * @return boolean |
|
41 | 41 | */ |
42 | 42 | public function setIsNewRecord() |
43 | 43 | { |
@@ -62,7 +62,7 @@ discard block |
||
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 |
||
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 | { |
@@ -224,9 +224,8 @@ discard block |
||
224 | 224 | /** |
225 | 225 | * Gets value to edit. |
226 | 226 | * |
227 | - * @param mixed $value |
|
228 | 227 | * |
229 | - * @return mixed |
|
228 | + * @return string |
|
230 | 229 | */ |
231 | 230 | public function getEditViewDisplayValue() |
232 | 231 | { |
@@ -236,7 +235,7 @@ discard block |
||
236 | 235 | /** |
237 | 236 | * Function to get the raw value. |
238 | 237 | * |
239 | - * @return Value for the given key |
|
238 | + * @return string for the given key |
|
240 | 239 | */ |
241 | 240 | public function getRawValue() |
242 | 241 | { |
@@ -251,7 +250,7 @@ discard block |
||
251 | 250 | * |
252 | 251 | * @param string $value |
253 | 252 | * |
254 | - * @return Field |
|
253 | + * @return BaseField |
|
255 | 254 | */ |
256 | 255 | public function setRawValue($value) |
257 | 256 | { |
@@ -262,7 +261,7 @@ discard block |
||
262 | 261 | /** |
263 | 262 | * Validator. |
264 | 263 | * |
265 | - * @return mixed |
|
264 | + * @return string |
|
266 | 265 | */ |
267 | 266 | public function getValidator() |
268 | 267 | { |
@@ -101,7 +101,7 @@ |
||
101 | 101 | * |
102 | 102 | * @param string $value |
103 | 103 | * |
104 | - * @return \self |
|
104 | + * @return AbstractListView |
|
105 | 105 | */ |
106 | 106 | public function setModuleName($value): self |
107 | 107 | { |
@@ -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 | */ |
@@ -25,7 +25,7 @@ |
||
25 | 25 | } |
26 | 26 | $values = ''; |
27 | 27 | $data = \is_array($this->value) ? $this->value : [$this->value]; |
28 | - foreach($data as $value){ |
|
28 | + foreach ($data as $value) { |
|
29 | 29 | $values .= "<div style=\"width:80px\" class=\"ml-1\"><img src=\"data:image/jpeg;base64,{$value}\"/></div>"; |
30 | 30 | } |
31 | 31 | return $values; |
@@ -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\Exception\BadRequest('Invalid request - Response For Illegal Access'); |
22 | 22 | }; |
23 | 23 | $js = PUBLIC_DIRECTORY . 'vendor/yetiforce/csrf-magic/src/Csrf.min.js'; |