Completed
Push — master ( 42e6bf...4e0ac1 )
by Marcus
02:50
created
src/Shop/Items.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -163,12 +163,12 @@  discard block
 block discarded – undo
163 163
             if (!$bEnableItemGroups || \trim($aRow['itm_group']) == 0) {
164 164
                 $aAssembly['item'][$aRow['itm_no']] = $aRow;
165 165
             } else {
166
-                if (isset($aAssembly['groups']['ITEMGROUP-' .$aRow['itm_group']])) {
167
-                    $aAssembly['groups']['ITEMGROUP-' .$aRow['itm_group']][$aRow['itm_no']] = $aRow;
166
+                if (isset($aAssembly['groups']['ITEMGROUP-'.$aRow['itm_group']])) {
167
+                    $aAssembly['groups']['ITEMGROUP-'.$aRow['itm_group']][$aRow['itm_no']] = $aRow;
168 168
                 } else {
169
-                    $aAssembly['item']['ITEMGROUP-' .$aRow['itm_group']]['group'] = 'ITEMGROUP-' .$aRow['itm_group'];
170
-                    $aAssembly['groups']['ITEMGROUP-' .$aRow['itm_group']]['ITEMGROUP-DATA'] = $this->getGroupdata($aRow['itm_group']);
171
-                    $aAssembly['groups']['ITEMGROUP-' .$aRow['itm_group']][$aRow['itm_no']] = $aRow;
169
+                    $aAssembly['item']['ITEMGROUP-'.$aRow['itm_group']]['group'] = 'ITEMGROUP-'.$aRow['itm_group'];
170
+                    $aAssembly['groups']['ITEMGROUP-'.$aRow['itm_group']]['ITEMGROUP-DATA'] = $this->getGroupdata($aRow['itm_group']);
171
+                    $aAssembly['groups']['ITEMGROUP-'.$aRow['itm_group']][$aRow['itm_no']] = $aRow;
172 172
                 }
173 173
             }
174 174
         }
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
             $aData['itm_vatid'] = 'full';
210 210
         }
211 211
 
212
-        if(is_numeric($aData['itm_price']) && (float) $aData['itm_price'] > 0) {
212
+        if (is_numeric($aData['itm_price']) && (float) $aData['itm_price'] > 0) {
213 213
             $aPrice['netto_list'] = $aData['itm_price'];
214 214
             $aPrice['brutto_list'] = $this->addVat($aPrice['netto_list'], HelperConfig::$shop['vat'][$aData['itm_vatid']]);
215 215
             if (
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
                         bcdiv(
232 232
                             bcsub(
233 233
                                 '100',
234
-                                (string)HelperConfig::$shop['rebate_groups'][$aData['itm_rg']][CHelper::getUserData('cust_group')]
234
+                                (string) HelperConfig::$shop['rebate_groups'][$aData['itm_rg']][CHelper::getUserData('cust_group')]
235 235
                             ),
236 236
                             '100'
237 237
                         )
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
                 bcdiv(
264 264
                     bcmul(
265 265
                         $price,
266
-                        (string)$vat
266
+                        (string) $vat
267 267
                     ),
268 268
                     '100'
269 269
                 ),
Please login to merge, or discard this patch.
src/Shop/Helper.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -102,11 +102,11 @@  discard block
 block discarded – undo
102 102
         }
103 103
 
104 104
         if ($aOrder['iMindergebuehr_id'] > 0) {
105
-            $aOrder['fVoll'] += HelperConfig::$shop['reducedorderamountfee' . $aOrder['iMindergebuehr_id']];
106
-            $aOrder['fGesamtnetto'] += HelperConfig::$shop['reducedorderamountfee' . $aOrder['iMindergebuehr_id']];
105
+            $aOrder['fVoll'] += HelperConfig::$shop['reducedorderamountfee'.$aOrder['iMindergebuehr_id']];
106
+            $aOrder['fGesamtnetto'] += HelperConfig::$shop['reducedorderamountfee'.$aOrder['iMindergebuehr_id']];
107 107
             $aOrder['fSteuervoll'] = $aOrder['fVoll'] * $iVATfull / 100;
108 108
             $aOrder['fGesamtbrutto'] = $aOrder['fGesamtnetto'] + $aOrder['fSteuervoll'] + $aOrder['fSteuererm'];
109
-            $aOrder['fMindergebuehr'] = HelperConfig::$shop['reducedorderamountfee' . $aOrder['iMindergebuehr_id']];
109
+            $aOrder['fMindergebuehr'] = HelperConfig::$shop['reducedorderamountfee'.$aOrder['iMindergebuehr_id']];
110 110
         }
111 111
 
112 112
         $aOrder['fVersandkosten'] = 0;
@@ -423,12 +423,12 @@  discard block
 block discarded – undo
423 423
                 }
424 424
                 // because array_rand will change numerical (string) values to integer, we have to do this awkward dance
425 425
                 foreach ($keysAddSuggsTMP as $key => $item) {
426
-                    $keysAddSuggs[] = (string)$item;
426
+                    $keysAddSuggs[] = (string) $item;
427 427
                 }
428 428
 
429 429
                 // iterate suggestions and remove those that which will not be kept
430 430
                 foreach ($suggestions['additional'] as $addSuggsKey => $addSuggsVal) {
431
-                    if (!in_array((string)$addSuggsKey, $keysAddSuggs, true)) {
431
+                    if (!in_array((string) $addSuggsKey, $keysAddSuggs, true)) {
432 432
                         unset($suggestions['additional'][$addSuggsKey]);
433 433
                     }
434 434
                 }
Please login to merge, or discard this patch.
src/Customer/Helper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,13 +66,13 @@
 block discarded – undo
66 66
         if (HelperConfig::$customer['validate_fax'] && (!isset($_POST['fax']) || strlen(trim($_POST['fax']))) < 6) {
67 67
             $aErr['fax'] = true;
68 68
         }
69
-        if (HelperConfig::$customer['validate_country'] && (!isset($_POST['country']) || !isset(HelperConfig::$countries['countries_' .$sLang][$_POST['country']]))) {
69
+        if (HelperConfig::$customer['validate_country'] && (!isset($_POST['country']) || !isset(HelperConfig::$countries['countries_'.$sLang][$_POST['country']]))) {
70 70
             $aErr['country'] = true;
71 71
         }
72 72
         if (!$bEdit && (!isset($_POST['tos']) || $_POST['tos'] !== 'y')) {
73 73
             $aErr['tos'] = true;
74 74
         }
75
-        if (!$bEdit && (!isset( $_POST['cancellationdisclaimer'] ) || $_POST['cancellationdisclaimer'] !== 'y')) {
75
+        if (!$bEdit && (!isset($_POST['cancellationdisclaimer']) || $_POST['cancellationdisclaimer'] !== 'y')) {
76 76
             $aErr['cancellationdisclaimer'] = true;
77 77
         }
78 78
 
Please login to merge, or discard this patch.
src/Helper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -213,7 +213,7 @@
 block discarded – undo
213 213
         }
214 214
 
215 215
         $aP['countrylist'][] = ' | ';
216
-        foreach (HelperConfig::$countries['countries_' .HelperConfig::$lang] as $sKey => $sValue) {
216
+        foreach (HelperConfig::$countries['countries_'.HelperConfig::$lang] as $sKey => $sValue) {
217 217
             $aP['countrylist'][] = $sKey.'|'.$sValue;
218 218
         }
219 219
 
Please login to merge, or discard this patch.