Completed
Branch master (6ed6e7)
by Lars
07:57
created
src/Intraface/modules/product/Controller/BatchPriceChanger.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
                     $new_price = round($new_price, 0);
35 35
                 }
36 36
                 if ($product->save(array(
37
-            		'price' => $new_price,
37
+                    'price' => $new_price,
38 38
                     'before_price' => (float)$product->get('price')
39 39
                 ))) {
40 40
                 }
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
                     $new_price = round($new_price, 0);
45 45
                 }
46 46
                 if ($product->save(array(
47
-            		'price' => $new_price,
47
+                    'price' => $new_price,
48 48
                     'before_price' => (float)$product->get('price')
49 49
                 ))) {
50 50
                 }
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
                     $new_price = round($new_price, 0);
55 55
                 }
56 56
                 if ($product->save(array(
57
-            		'price' => $new_price,
57
+                    'price' => $new_price,
58 58
                     'before_price' => (float)$product->get('price')
59 59
                 ))) {
60 60
                 }
Please login to merge, or discard this patch.
src/Intraface/modules/product/Controller/Selectproductvariation.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
         }
50 50
 
51 51
         $data = array(
52
-        	'variations' => $variations,
52
+            'variations' => $variations,
53 53
             'product' => $product
54 54
         );
55 55
 
Please login to merge, or discard this patch.
src/Intraface/modules/product/Controller/Selectproduct.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -155,16 +155,16 @@
 block discarded – undo
155 155
                     foreach ($this->body('selected') AS $selected_id => $selected_value) {
156 156
                         if ($selected_value != '' && $selected_value != '0') {
157 157
                             $product = array(
158
-                            	'product_id' => $selected_id,
159
-                            	'product_variation_id' => 0);
158
+                                'product_id' => $selected_id,
159
+                                'product_variation_id' => 0);
160 160
                             $this->addItem($product, $selected_value);                        }
161 161
                     }
162 162
                 }
163 163
             } else {
164 164
                 if ((int)$this->body('selected') != 0) {
165 165
                     $product = array(
166
-                    	'product_id' => (int)$this->body('selected'),
167
-                    	'product_variation_id' => 0);
166
+                        'product_id' => (int)$this->body('selected'),
167
+                        'product_variation_id' => 0);
168 168
                     $this->addItem($product, (int)$this->body('quantity'));
169 169
                 }
170 170
             }
Please login to merge, or discard this patch.
src/Intraface/modules/product/Controller/Productattributegroup.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
 
90 90
     function getProduct()
91 91
     {
92
-    	Intraface_Doctrine_Intranet::singleton($this->getKernel()->intranet->getId());
92
+        Intraface_Doctrine_Intranet::singleton($this->getKernel()->intranet->getId());
93 93
 
94 94
         return new Product($this->getKernel(), $this->context->name());
95 95
     }
Please login to merge, or discard this patch.
src/Intraface/modules/modulepackage/ModulePackage.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      * @param int id on a ModulePackage
38 38
      *
39 39
      * @return void
40
-      */
40
+     */
41 41
     public function __construct($id = 0)
42 42
     {
43 43
         $this->db = MDB2::singleton(DB_DSN);
@@ -155,9 +155,9 @@  discard block
 block discarded – undo
155 155
                         break;
156 156
                 }
157 157
                 $i++;
158
-             } else {
158
+                } else {
159 159
                 throw new Exception('limiter '.$limiter.' in tabel module_package_module for module '.$module.' is not valid!');
160
-             }
160
+                }
161 161
         }
162 162
 
163 163
         return $return_limiters;
@@ -204,18 +204,18 @@  discard block
 block discarded – undo
204 204
         $i = 0;
205 205
         $db = $this->dbquery->getRecordset('module_package.id, module_package_plan.plan, module_package_plan.id AS plan_id, module_package.product_id, module_package_group.group_name, module_package_group.id AS group_id');
206 206
         while ($db->nextRecord()) {
207
-             $list[$i]['id'] = $db->f('id');
208
-             $list[$i]['plan'] = $db->f('plan');
209
-             $list[$i]['plan_id'] = $db->f('plan_id');
210
-             $list[$i]['group'] = $db->f('group_name');
211
-             $list[$i]['group_id'] = $db->f('group_id');
212
-             $list[$i]['product_id'] = $db->f('product_id');
213
-             if ($db->f('product_id') != 0) {
214
-                 $product_ids[] = $db->f('product_id');
215
-             }
216
-             $list[$i]['modules'] = $this->getModules($db->f('id'));
217
-             $list[$i]['product'] = array();
218
-             $i++;
207
+                $list[$i]['id'] = $db->f('id');
208
+                $list[$i]['plan'] = $db->f('plan');
209
+                $list[$i]['plan_id'] = $db->f('plan_id');
210
+                $list[$i]['group'] = $db->f('group_name');
211
+                $list[$i]['group_id'] = $db->f('group_id');
212
+                $list[$i]['product_id'] = $db->f('product_id');
213
+                if ($db->f('product_id') != 0) {
214
+                    $product_ids[] = $db->f('product_id');
215
+                }
216
+                $list[$i]['modules'] = $this->getModules($db->f('id'));
217
+                $list[$i]['product'] = array();
218
+                $i++;
219 219
         }
220 220
 
221 221
         // get all products in one request and add them to the array
@@ -226,13 +226,13 @@  discard block
 block discarded – undo
226 226
         // we apply the products to the aray
227 227
         if (is_array($products) && count($products) > 0) {
228 228
             for ($i = 0, $max = count($list); $i < $max; $i++) {
229
-                 if ($list[$i]['product_id'] != 0) {
230
-                     foreach ($products['products'] AS $product) {
231
-                         if ($product['id'] == $list[$i]['product_id']) {
232
-                             $list[$i]['product'] = $product;
233
-                         }
234
-                     }
235
-                 }
229
+                    if ($list[$i]['product_id'] != 0) {
230
+                        foreach ($products['products'] AS $product) {
231
+                            if ($product['id'] == $list[$i]['product_id']) {
232
+                                $list[$i]['product'] = $product;
233
+                            }
234
+                        }
235
+                    }
236 236
             }
237 237
         }
238 238
 
Please login to merge, or discard this patch.
src/Intraface/modules/modulepackage/ActionStore.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -189,10 +189,10 @@
 block discarded – undo
189 189
     }
190 190
     
191 191
 /**
192
-     * Returns the store identifier which is generated on store and restore.
193
-     * 
194
-     * @return string action store identifier
195
-     */ 
192
+ * Returns the store identifier which is generated on store and restore.
193
+ * 
194
+ * @return string action store identifier
195
+ */ 
196 196
     public function getIdentifier() {
197 197
         return $this->identifier;
198 198
     }
Please login to merge, or discard this patch.
src/Intraface/modules/modulepackage/Manager.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -557,7 +557,7 @@
 block discarded – undo
557 557
             'month' => $parsed_duration['month']));
558 558
 
559 559
         return $action;
560
-     }
560
+        }
561 561
 
562 562
     /**
563 563
      * Returns an array of the packages that an intranet has.
Please login to merge, or discard this patch.
src/Intraface/modules/modulepackage/Controller/AddPackage.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         $modulepackageshop = new Intraface_modules_modulepackage_ShopExtension();
32 32
 
33 33
         $data = array(
34
-        	'modulepackagemanager' => $this->modulepackagemanager,
34
+            'modulepackagemanager' => $this->modulepackagemanager,
35 35
             'add_type' => $add_type,
36 36
             'modulepackageshop' => $modulepackageshop,
37 37
             'modulepackage' => $this->modulepackage,
Please login to merge, or discard this patch.
src/Intraface/modules/modulepackage/Controller/Payment.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
         }
60 60
 
61 61
         $data = array(
62
-        	'shop' => $shop,
62
+            'shop' => $shop,
63 63
             'order' => $order,
64 64
             'action' => $this->action,
65 65
             'translation' => $this->getKernel()->getTranslation(),
Please login to merge, or discard this patch.