Passed
Push — develop ( 7fd0a7...b40d4d )
by Mykola
04:17
created
engine/config/application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     along with this program. If not, see <http://www.gnu.org/licenses/>. */
22 22
 
23 23
 // Site
24
-$_['app_url']        = '/application/';
24
+$_['app_url'] = '/application/';
25 25
 
26 26
 // Cache ( file or redis)
27 27
 $_['cache_type']       = 'redis';
Please login to merge, or discard this patch.
engine/library/Mail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -272,7 +272,7 @@
 block discarded – undo
272 272
                     stream_socket_enable_crypto($handle, true, STREAM_CRYPTO_METHOD_TLS_CLIENT);
273 273
                 }
274 274
 
275
-                if (!empty($this->smtp_username)  && !empty($this->smtp_password)) {
275
+                if (!empty($this->smtp_username) && !empty($this->smtp_password)) {
276 276
                     fputs($handle, 'EHLO ' . getenv('SERVER_NAME') . "\r\n");
277 277
 
278 278
                     $reply = '';
Please login to merge, or discard this patch.
administration/controller/extension/payment/bank_transfer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@
 block discarded – undo
167 167
 
168 168
         foreach ($languages as $language) {
169 169
             if (empty($this->request->post['bank_transfer_bank' . $language['language_id']])) {
170
-                $this->error['bank' .  $language['language_id']] = $this->language->get('error_bank');
170
+                $this->error['bank' . $language['language_id']] = $this->language->get('error_bank');
171 171
             }
172 172
         }
173 173
 
Please login to merge, or discard this patch.
administration/controller/extension/shipping/xshipping.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -89,41 +89,41 @@
 block discarded – undo
89 89
 
90 90
         $data['cancel'] = $this->url->link('extension/extension', 'token=' . $this->session->data['token'] . '&type=shipping', true);
91 91
         
92
-        for ($i=1;$i<=12;$i++) {
93
-            if (isset($this->request->post['xshipping_cost'.$i])) {
94
-                $data['xshipping_cost'.$i] = $this->request->post['xshipping_cost'.$i];
92
+        for ($i = 1; $i <= 12; $i++) {
93
+            if (isset($this->request->post['xshipping_cost' . $i])) {
94
+                $data['xshipping_cost' . $i] = $this->request->post['xshipping_cost' . $i];
95 95
             } else {
96
-                $data['xshipping_cost'.$i] = $this->config->get('xshipping_cost'.$i);
96
+                $data['xshipping_cost' . $i] = $this->config->get('xshipping_cost' . $i);
97 97
             }
98 98
                 
99
-            if (isset($this->request->post['xshipping_name'.$i])) {
100
-                $data['xshipping_name'.$i] = $this->request->post['xshipping_name'.$i];
99
+            if (isset($this->request->post['xshipping_name' . $i])) {
100
+                $data['xshipping_name' . $i] = $this->request->post['xshipping_name' . $i];
101 101
             } else {
102
-                $data['xshipping_name'.$i] = $this->config->get('xshipping_name'.$i);
102
+                $data['xshipping_name' . $i] = $this->config->get('xshipping_name' . $i);
103 103
             }
104 104
                 
105
-            if (isset($this->request->post['xshipping_free'.$i])) {
106
-                $data['xshipping_free'.$i] = $this->request->post['xshipping_free'.$i];
105
+            if (isset($this->request->post['xshipping_free' . $i])) {
106
+                $data['xshipping_free' . $i] = $this->request->post['xshipping_free' . $i];
107 107
             } else {
108
-                $data['xshipping_free'.$i] = $this->config->get('xshipping_free'.$i);
108
+                $data['xshipping_free' . $i] = $this->config->get('xshipping_free' . $i);
109 109
             }
110 110
         
111
-            if (isset($this->request->post['xshipping_geo_zone_id'.$i])) {
112
-                $data['xshipping_geo_zone_id'.$i] = $this->request->post['xshipping_geo_zone_id'.$i];
111
+            if (isset($this->request->post['xshipping_geo_zone_id' . $i])) {
112
+                $data['xshipping_geo_zone_id' . $i] = $this->request->post['xshipping_geo_zone_id' . $i];
113 113
             } else {
114
-                $data['xshipping_geo_zone_id'.$i] = $this->config->get('xshipping_geo_zone_id'.$i);
114
+                $data['xshipping_geo_zone_id' . $i] = $this->config->get('xshipping_geo_zone_id' . $i);
115 115
             }
116 116
                 
117
-            if (isset($this->request->post['xshipping_status'.$i])) {
118
-                $data['xshipping_status'.$i] = $this->request->post['xshipping_status'.$i];
117
+            if (isset($this->request->post['xshipping_status' . $i])) {
118
+                $data['xshipping_status' . $i] = $this->request->post['xshipping_status' . $i];
119 119
             } else {
120
-                $data['xshipping_status'.$i] = $this->config->get('xshipping_status'.$i);
120
+                $data['xshipping_status' . $i] = $this->config->get('xshipping_status' . $i);
121 121
             }
122 122
                 
123
-            if (isset($this->request->post['xshipping_sort_order'.$i])) {
124
-                $data['xshipping_sort_order'.$i] = $this->request->post['xshipping_sort_order'.$i];
123
+            if (isset($this->request->post['xshipping_sort_order' . $i])) {
124
+                $data['xshipping_sort_order' . $i] = $this->request->post['xshipping_sort_order' . $i];
125 125
             } else {
126
-                $data['xshipping_sort_order'.$i] = $this->config->get('xshipping_sort_order'.$i);
126
+                $data['xshipping_sort_order' . $i] = $this->config->get('xshipping_sort_order' . $i);
127 127
             }
128 128
         }
129 129
          
Please login to merge, or discard this patch.
administration/controller/localisation/location.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -170,14 +170,14 @@  discard block
 block discarded – undo
170 170
             $url .= '&page=' . $this->request->get['page'];
171 171
         }
172 172
 
173
-        $data['breadcrumbs'] =   array();
173
+        $data['breadcrumbs'] = array();
174 174
 
175
-        $data['breadcrumbs'][] =   array(
175
+        $data['breadcrumbs'][] = array(
176 176
             'text' =>  $this->language->get('text_home'),
177 177
             'href' => $this->url->link('common/dashboard', 'token=' . $this->session->data['token'], true)
178 178
         );
179 179
 
180
-        $data['breadcrumbs'][] =   array(
180
+        $data['breadcrumbs'][] = array(
181 181
             'text' =>  $this->language->get('heading_title'),
182 182
             'href' =>  $this->url->link('localisation/location', 'token=' . $this->session->data['token'] . $url, true)
183 183
         );
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
         $results = $this->model_localisation_location->getLocations($filter_data);
200 200
 
201 201
         foreach ($results as $result) {
202
-            $data['location'][] =   array(
202
+            $data['location'][] = array(
203 203
                 'location_id' => $result['location_id'],
204 204
                 'name'        => $result['name'],
205 205
                 'address'     => $result['address'],
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
         if (!isset($this->request->get['location_id'])) {
366 366
             $data['action'] = $this->url->link('localisation/location/add', 'token=' . $this->session->data['token'] . $url, true);
367 367
         } else {
368
-            $data['action'] = $this->url->link('localisation/location/edit', 'token=' . $this->session->data['token'] .  '&location_id=' . $this->request->get['location_id'] . $url, true);
368
+            $data['action'] = $this->url->link('localisation/location/edit', 'token=' . $this->session->data['token'] . '&location_id=' . $this->request->get['location_id'] . $url, true);
369 369
         }
370 370
 
371 371
         $data['cancel'] = $this->url->link('localisation/location', 'token=' . $this->session->data['token'] . $url, true);
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
         } elseif (!empty($location_info)) {
382 382
             $data['name'] = $location_info['name'];
383 383
         } else {
384
-            $data['name'] =   '';
384
+            $data['name'] = '';
385 385
         }
386 386
 
387 387
         if (isset($this->request->post['address'])) {
Please login to merge, or discard this patch.
administration/controller/design/custommenu.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 
126 126
         foreach ($custommenus as $id => $custommenu) {
127 127
             $rent_custommenu[] = array(
128
-                'name'          => $custommenu['name'] ,
128
+                'name'          => $custommenu['name'],
129 129
                 'custommenu_id'       => $custommenu['custommenu_id'],
130 130
                 'custommenu_type'     => $custommenu['custommenu_type'],
131 131
                 'status'        => $custommenu['status'],
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
         $html  = '<li id="custommenu-item-' . $custommenu['custommenu_id'] . '" class="custommenu-item custommenu-item-depth-0 custommenu-item-page custommenu-item-edit-inactive pending">';
227 227
         $html .= '	<dl class="custommenu-item-bar">';
228 228
         $html .= '		<dt class="custommenu-item-handle">';
229
-        $html .= '			<span class="item-title"><span class="custommenu-item-title">' . $custommenu['name'] .'</span> <span class="is-subcustommenu" style="display: none;">' . $this->language->get('text_sub_item') . '</span></span>';
229
+        $html .= '			<span class="item-title"><span class="custommenu-item-title">' . $custommenu['name'] . '</span> <span class="is-subcustommenu" style="display: none;">' . $this->language->get('text_sub_item') . '</span></span>';
230 230
         $html .= '          <span class="item-controls">';
231 231
         $html .= '			<span class="item-type">' . ucwords($custommenu['custommenu_type']) . '</span>';
232 232
         $html .= '				<a class="item-edit opencustommenuItem ' . $custommenu['custommenu_type'] . '" id="edit-' . $custommenu['custommenu_id'] . '" title="">';
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
 
244 244
         foreach ($languages as $language) {
245 245
             $html .= '<div class="input-group"><span class="input-group-addon"><img src="language/' . $language["code"] . '/' . $language["code"] . '.png' . '" title="' . $language["name"] . '"/></span>';
246
-            $html .= '   <input type="text" name="custommenu_name[' . $language['language_id'] . ']" value="' . $custommenu_desc[$custommenu['custommenu_id']][$language['language_id']]['name']. '" placeholder="' . $this->language->get('text_custommenu_name') . '" class="form-control" />';
246
+            $html .= '   <input type="text" name="custommenu_name[' . $language['language_id'] . ']" value="' . $custommenu_desc[$custommenu['custommenu_id']][$language['language_id']]['name'] . '" placeholder="' . $this->language->get('text_custommenu_name') . '" class="form-control" />';
247 247
             $html .= '</div>';
248 248
         }
249 249
         $html .= '<br>';
@@ -266,15 +266,15 @@  discard block
 block discarded – undo
266 266
         $html .= '</div>';
267 267
         $html .= '<br>';
268 268
         $html .= '<div class="pull-right">';
269
-        $html .= ' <a id="disablecustommenu-'. $count . '" onclick="statuscustommenu(\'disable\', \'' . $custommenu['custommenu_id'] . '\', \'custommenu-item-' . $custommenu['custommenu_id'] . '\', \'disablecustommenu-' . $count .'\')" data-type="iframe" style="top:2px!important;font-size:1.2em !important;" title="' . $this->language->get('button_disable') . '" class="btn btn-danger btn-xs btn-edit btn-group"><i class="fa fa-times-circle"></i></a>';
269
+        $html .= ' <a id="disablecustommenu-' . $count . '" onclick="statuscustommenu(\'disable\', \'' . $custommenu['custommenu_id'] . '\', \'custommenu-item-' . $custommenu['custommenu_id'] . '\', \'disablecustommenu-' . $count . '\')" data-type="iframe" style="top:2px!important;font-size:1.2em !important;" title="' . $this->language->get('button_disable') . '" class="btn btn-danger btn-xs btn-edit btn-group"><i class="fa fa-times-circle"></i></a>';
270 270
         $html .= ' <a onclick="savecustommenu(\'custommenu-item-settings-edit-' . $custommenu['custommenu_id'] . '\', \'custommenu-item-' . $custommenu['custommenu_id'] . '\')" data-type="iframe" style="top:2px!important;font-size:1.2em !important;" title="' . $this->language->get('button_save') . '" class="btn btn-success btn-xs btn-edit btn-group"><i class="fa fa-save"></i></a>';
271 271
         $html .= ' <button type="button" title="" style="top:2px!important;font-size:1.2em !important;" class="btn btn-danger btn-xs btn-edit btn-group btn-loading" onclick="confirm(\'Are you sure?\') ? deletecustommenu(\'' . $custommenu['custommenu_id'] . '\', \'custommenu-item-' . $custommenu['custommenu_id'] . '\') : false;" data-original-title="Delete"><i class="fa fa-trash-o"></i></button>';
272 272
         $html .= '</div>';
273 273
         $html .= '<br><br>';
274 274
 
275
-        $html .= '<input class="custommenu-item-data-typecustommenu" type="hidden" name="custommenu-item-typecustommenu[Maincustommenu-' . $custommenu['custommenu_id'].']" value="Maincustommenu">';
275
+        $html .= '<input class="custommenu-item-data-typecustommenu" type="hidden" name="custommenu-item-typecustommenu[Maincustommenu-' . $custommenu['custommenu_id'] . ']" value="Maincustommenu">';
276 276
         $html .= '<input class="custommenu-item-data-db-id" type="hidden" name="custommenu-item-db-id[Maincustommenu-' . $custommenu['custommenu_id'] . ']" value="' . $custommenu['custommenu_id'] . '">';
277
-        $html .= '<input class="custommenu-item-data-parent-id" type="hidden" name="custommenu-item-parent-id[Maincustommenu-' . $custommenu['custommenu_id'] .']" value="0">';
277
+        $html .= '<input class="custommenu-item-data-parent-id" type="hidden" name="custommenu-item-parent-id[Maincustommenu-' . $custommenu['custommenu_id'] . ']" value="0">';
278 278
         $html .= '<input class="custommenu-item-data-position" type="hidden" name="custommenu-item-position[Maincustommenu-' . $custommenu['custommenu_id'] . ']" value="' . $custommenu['custommenu_id'] . '">';
279 279
         $html .= '<input class="custommenu-item-data-type" type="hidden" name="custommenu-item-type[Maincustommenu-' . $custommenu['custommenu_id'] . ']" value="post_type">';
280 280
 
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
 
366 366
         $id = explode('-', $this->request->post['id']);
367 367
 
368
-        $button = "<a id=\"disablecustommenu-" . $id[1] . "\" onclick=\"statuscustommenu('disable', '" . $this->request->post['custommenu_id'] . "', 'custommenu-item-" .  $this->request->post['custommenu_id'] . "', 'disablecustommenu-" . $id[1] . "')\" data-type=\"iframe\" data-toggle=\"tooltip\" style=\"top:2px!important;font-size:1.2em !important;\" title=\"\" class=\"btn btn-danger btn-xs btn-edit btn-group\"><i class=\"fa fa-times-circle\"></i></a>";
368
+        $button = "<a id=\"disablecustommenu-" . $id[1] . "\" onclick=\"statuscustommenu('disable', '" . $this->request->post['custommenu_id'] . "', 'custommenu-item-" . $this->request->post['custommenu_id'] . "', 'disablecustommenu-" . $id[1] . "')\" data-type=\"iframe\" data-toggle=\"tooltip\" style=\"top:2px!important;font-size:1.2em !important;\" title=\"\" class=\"btn btn-danger btn-xs btn-edit btn-group\"><i class=\"fa fa-times-circle\"></i></a>";
369 369
 
370 370
         echo $button;
371 371
         exit();
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
 
385 385
         $id = explode('-', $this->request->post['id']);
386 386
 
387
-        $button = "<a id=\"enablecustommenu-" . $id[1] . "\" onclick=\"statuscustommenu('enable', '" . $this->request->post['custommenu_id'] . "', 'custommenu-item-" .  $this->request->post['custommenu_id'] . "', 'enablecustommenu-" . $id[1] . "')\" data-type=\"iframe\" data-toggle=\"tooltip\" style=\"top:2px!important;font-size:1.2em !important;\" title=\"\" class=\"btn btn-success btn-xs btn-edit btn-group\"><i class=\"fa fa-check-circle\"></i></a>";
387
+        $button = "<a id=\"enablecustommenu-" . $id[1] . "\" onclick=\"statuscustommenu('enable', '" . $this->request->post['custommenu_id'] . "', 'custommenu-item-" . $this->request->post['custommenu_id'] . "', 'enablecustommenu-" . $id[1] . "')\" data-type=\"iframe\" data-toggle=\"tooltip\" style=\"top:2px!important;font-size:1.2em !important;\" title=\"\" class=\"btn btn-success btn-xs btn-edit btn-group\"><i class=\"fa fa-check-circle\"></i></a>";
388 388
 
389 389
         echo $button;
390 390
         exit();
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
 
404 404
         $id = explode('-', $this->request->post['id']);
405 405
 
406
-        $button = "<a id=\"disablecustommenu-" . $id[1] . "\" onclick=\"statuscustommenu('disable', '" . $this->request->post['custommenu_id'] . "', 'custommenu-child-item-" .  $this->request->post['custommenu_id'] . "', 'disablecustommenu-" . $id[1] . "')\" data-type=\"iframe\" data-toggle=\"tooltip\" style=\"top:2px!important;font-size:1.2em !important;\" title=\"\" class=\"btn btn-danger btn-xs btn-edit btn-group\"><i class=\"fa fa-times-circle\"></i></a>";
406
+        $button = "<a id=\"disablecustommenu-" . $id[1] . "\" onclick=\"statuscustommenu('disable', '" . $this->request->post['custommenu_id'] . "', 'custommenu-child-item-" . $this->request->post['custommenu_id'] . "', 'disablecustommenu-" . $id[1] . "')\" data-type=\"iframe\" data-toggle=\"tooltip\" style=\"top:2px!important;font-size:1.2em !important;\" title=\"\" class=\"btn btn-danger btn-xs btn-edit btn-group\"><i class=\"fa fa-times-circle\"></i></a>";
407 407
 
408 408
         echo $button;
409 409
         exit();
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
 
423 423
         $id = explode('-', $this->request->post['id']);
424 424
 
425
-        $button = "<a id=\"enablecustommenu-" . $id[1] . "\" onclick=\"statuscustommenu('enable', '" . $this->request->post['custommenu_id'] . "', 'custommenu-child-item-" .  $this->request->post['custommenu_id'] . "', 'enablecustommenu-" . $id[1] . "')\" data-type=\"iframe\" data-toggle=\"tooltip\" style=\"top:2px!important;font-size:1.2em !important;\" title=\"\" class=\"btn btn-success btn-xs btn-edit btn-group\"><i class=\"fa fa-check-circle\"></i></a>";
425
+        $button = "<a id=\"enablecustommenu-" . $id[1] . "\" onclick=\"statuscustommenu('enable', '" . $this->request->post['custommenu_id'] . "', 'custommenu-child-item-" . $this->request->post['custommenu_id'] . "', 'enablecustommenu-" . $id[1] . "')\" data-type=\"iframe\" data-toggle=\"tooltip\" style=\"top:2px!important;font-size:1.2em !important;\" title=\"\" class=\"btn btn-success btn-xs btn-edit btn-group\"><i class=\"fa fa-check-circle\"></i></a>";
426 426
 
427 427
         echo $button;
428 428
         exit();
Please login to merge, or discard this patch.
administration/controller/design/layout.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
         }
235 235
 
236 236
         if (isset($this->request->post['selected'])) {
237
-            $data['selected'] = (array) $this->request->post['selected'];
237
+            $data['selected'] = (array)$this->request->post['selected'];
238 238
         } else {
239 239
             $data['selected'] = array();
240 240
         }
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
             foreach ($modules as $module) {
397 397
                 $module_data[] = array(
398 398
                     'name' => strip_tags($module['name']),
399
-                    'code' => $code . '.' .  $module['module_id']
399
+                    'code' => $code . '.' . $module['module_id']
400 400
                 );
401 401
             }
402 402
 
Please login to merge, or discard this patch.
administration/model/extension/module.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
             UPDATE `module` 
39 39
             SET `name` = '" . $this->db->escape($data['name']) . "', 
40 40
                 `setting` = '" . $this->db->escape(json_encode($data)) . "' 
41
-            WHERE `module_id` = '" . (int) $module_id . "'
41
+            WHERE `module_id` = '" . (int)$module_id . "'
42 42
         ");
43 43
     }
44 44
 
@@ -47,12 +47,12 @@  discard block
 block discarded – undo
47 47
         $this->db->query("
48 48
             DELETE 
49 49
             FROM `module` 
50
-            WHERE `module_id` = '" . (int) $module_id . "'
50
+            WHERE `module_id` = '" . (int)$module_id . "'
51 51
         ");
52 52
         $this->db->query("
53 53
             DELETE 
54 54
             FROM `layout_module` 
55
-            WHERE `code` LIKE '%." . (int) $module_id . "'
55
+            WHERE `code` LIKE '%." . (int)$module_id . "'
56 56
         ");
57 57
     }
58 58
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     {
61 61
         $query = $this->db->query("
62 62
             SELECT * FROM `module` 
63
-            WHERE `module_id` = '" . (int) $module_id . "'
63
+            WHERE `module_id` = '" . (int)$module_id . "'
64 64
         ");
65 65
 
66 66
         if ($query->row) {
Please login to merge, or discard this patch.
administration/model/catalog/product.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -56,20 +56,20 @@  discard block
 block discarded – undo
56 56
             foreach ($data['product_tab'] as $tabdata) {
57 57
                 $this->db->query("
58 58
                     INSERT INTO product_tab 
59
-                    SET product_id = '".(int)$product_id."', 
60
-                        status = '".(int)$tabdata['status']."', 
61
-                        sort_order='".(int)$tabdata['sort_order']."'
59
+                    SET product_id = '".(int)$product_id . "', 
60
+                        status = '".(int)$tabdata['status'] . "', 
61
+                        sort_order='".(int)$tabdata['sort_order'] . "'
62 62
                 ");
63 63
             
64 64
                 $product_tab_id = $this->db->getLastId();
65 65
                 foreach ($tabdata['description'] as $language_id => $value) {
66 66
                     $this->db->query("
67 67
                         INSERT INTO product_tab_desc 
68
-                        SET product_tab_id = '".(int)$product_tab_id."', 
69
-                            heading = '".$this->db->escape($value['heading'])."', 
70
-                            description = '".$this->db->escape($value['description'])."', 
71
-                            product_id = '".(int)$product_id."', 
72
-                            language_id = '".(int)$language_id."'
68
+                        SET product_tab_id = '".(int)$product_tab_id . "', 
69
+                            heading = '".$this->db->escape($value['heading']) . "', 
70
+                            description = '".$this->db->escape($value['description']) . "', 
71
+                            product_id = '".(int)$product_id . "', 
72
+                            language_id = '".(int)$language_id . "'
73 73
                     ");
74 74
                 }
75 75
             }
@@ -410,9 +410,9 @@  discard block
 block discarded – undo
410 410
             foreach ($data['product_tab'] as $tabdata) {
411 411
                 $this->db->query("
412 412
                     INSERT INTO product_tab 
413
-                    SET product_id = '".(int)$product_id."', 
414
-                        status = '". (int)$tabdata['status']."', 
415
-                        sort_order='". (int)$tabdata['sort_order']."'
413
+                    SET product_id = '".(int)$product_id . "', 
414
+                        status = '". (int)$tabdata['status'] . "', 
415
+                        sort_order='". (int)$tabdata['sort_order'] . "'
416 416
                 ");
417 417
         
418 418
                 $product_tab_id = $this->db->getLastId();
@@ -420,11 +420,11 @@  discard block
 block discarded – undo
420 420
                 foreach ($tabdata['description'] as $language_id => $value) {
421 421
                     $this->db->query("
422 422
                         INSERT INTO product_tab_desc 
423
-                        SET product_tab_id = '".(int)$product_tab_id."', 
424
-                            heading = '".$this->db->escape($value['heading'])."', 
425
-                            description = '".$this->db->escape($value['description'])."', 
426
-                            product_id = '".(int)$product_id."', 
427
-                            language_id = '".(int)$language_id."'
423
+                        SET product_tab_id = '".(int)$product_tab_id . "', 
424
+                            heading = '".$this->db->escape($value['heading']) . "', 
425
+                            description = '".$this->db->escape($value['description']) . "', 
426
+                            product_id = '".(int)$product_id . "', 
427
+                            language_id = '".(int)$language_id . "'
428 428
                     ");
429 429
                 }
430 430
             }
@@ -1002,15 +1002,15 @@  discard block
 block discarded – undo
1002 1002
             $querys = $this->db->query("
1003 1003
                 SELECT * 
1004 1004
                 FROM product_tab_desc 
1005
-                WHERE product_tab_id = '" . (int)$result['product_tab_id']. "'
1005
+                WHERE product_tab_id = '" . (int)$result['product_tab_id'] . "'
1006 1006
             ");
1007 1007
             foreach ($querys->rows as $row) {
1008
-                $description[$row['language_id']]=array(
1008
+                $description[$row['language_id']] = array(
1009 1009
                         'heading' 	  => $row['heading'],
1010 1010
                         'description' => $row['description'],
1011 1011
                     );
1012 1012
             }
1013
-            $product_tab_data[]=array(
1013
+            $product_tab_data[] = array(
1014 1014
                     'status' 	 => $result['status'],
1015 1015
                     'sort_order' => $result['sort_order'],
1016 1016
                     'description' => $description,
@@ -1488,7 +1488,7 @@  discard block
 block discarded – undo
1488 1488
     {
1489 1489
         $benefits = array();
1490 1490
     
1491
-        $query  =  $this->db->query("
1491
+        $query = $this->db->query("
1492 1492
             SELECT benefit_id 
1493 1493
             FROM `product_to_benefit` 
1494 1494
             WHERE product_id = 
Please login to merge, or discard this patch.