Completed
Push — master ( e7e29c...407162 )
by Alexey
05:15
created
system/modules/Ecommerce/appControllers/EcommerceController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
             foreach ($fields as $field) {
44 44
                 if (empty($_POST['userAdds']['fields'][$field->id]) && $field->required) {
45 45
                     $error = 1;
46
-                    Msg::add('Вы не указали: ' . $field->name);
46
+                    Msg::add('Вы не указали: '.$field->name);
47 47
                 }
48 48
             }
49 49
             if (!$error) {
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
                 $extra->price = $card->price;
72 72
                 $extra->count = 1;
73 73
                 $extra->cart_id = $cart->id;
74
-                $extra->info = 'card:' . $card->id . '|cardItem:' . $cardItem->id;
74
+                $extra->info = 'card:'.$card->id.'|cardItem:'.$cardItem->id;
75 75
                 $extra->save();
76 76
                 Tools::redirect('/ecommerce/cart/success');
77 77
             }
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             $items = $this->ecommerce->getItems();
87 87
             $return = [];
88 88
             foreach ($items as $item) {
89
-                $return[] = ['name' => $item->name(), 'search' => $item->search_index . ' ' . $item->name];
89
+                $return[] = ['name' => $item->name(), 'search' => $item->search_index.' '.$item->name];
90 90
             }
91 91
             $return = json_encode($return);
92 92
             Cache::set('itemsAutocomplete', [], $return);
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
             $categoryIds = array_values(array_filter(explode('/', $category->tree_path)));
163 163
             foreach ($categoryIds as $id) {
164 164
                 $cat = Ecommerce\Category::get($id);
165
-                $bread[] = array('text' => $cat->name, 'href' => '/ecommerce/itemList/' . $cat->id);
165
+                $bread[] = array('text' => $cat->name, 'href' => '/ecommerce/itemList/'.$cat->id);
166 166
             }
167 167
             $this->view->setTitle($category->name);
168 168
         }
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
         foreach ($catalogIds as $id) {
227 227
             $cat = Ecommerce\Category::get($id);
228 228
             if ($cat) {
229
-                $bread[] = ['text' => $cat->name, 'href' => '/ecommerce/itemList/' . $cat->id];
229
+                $bread[] = ['text' => $cat->name, 'href' => '/ecommerce/itemList/'.$cat->id];
230 230
             }
231 231
         }
232 232
         $bread[] = ['text' => $item->name()];
@@ -241,9 +241,9 @@  discard block
 block discarded – undo
241 241
         $this->view->addMetaTag(['property' => 'og:title', 'content' => $item->name]);
242 242
         $this->view->addMetaTag(['property' => 'og:description', 'content' => $item->description]);
243 243
         if ($item->image) {
244
-            $this->view->addMetaTag(['property' => 'og:image', 'content' => 'http://' . INJI_DOMAIN_NAME . $item->image->path]);
244
+            $this->view->addMetaTag(['property' => 'og:image', 'content' => 'http://'.INJI_DOMAIN_NAME.$item->image->path]);
245 245
         }
246
-        $this->view->addMetaTag(['property' => 'og:url', 'content' => 'http://' . INJI_DOMAIN_NAME . '/view/' . $item->id]);
246
+        $this->view->addMetaTag(['property' => 'og:url', 'content' => 'http://'.INJI_DOMAIN_NAME.'/view/'.$item->id]);
247 247
 
248 248
         $options['content'] = $item->view ? $item->view : 'view';
249 249
         $this->view->page($options);
Please login to merge, or discard this patch.