Completed
Push — master ( 0986b8...060173 )
by Alexey
05:33
created
system/modules/Ecommerce/widgets/filters.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -17,30 +17,30 @@  discard block
 block discarded – undo
17 17
         ?>
18 18
         <div class="filter">    
19 19
           <?php
20
-          switch ($option->type) {
21
-              case 'radio':
20
+            switch ($option->type) {
21
+                case 'radio':
22 22
                   foreach ($option->items as $item) {
23
-                      $this->widget('Ui\Form/' . $option->type, [
24
-                          'label' => $item->name,
25
-                          'name' => "filters[options][{$option->id}]",
26
-                          !empty($_GET['filters']['options'][$option->id]) && $_GET['filters']['options'][$option->id] == $item->id ? 'checked' : false,
27
-                          'options' => [
28
-                              'value' => $item->id,
29
-                          ]
30
-                      ]);
31
-                  }
32
-                  break;
33
-              default:
23
+                        $this->widget('Ui\Form/' . $option->type, [
24
+                            'label' => $item->name,
25
+                            'name' => "filters[options][{$option->id}]",
26
+                            !empty($_GET['filters']['options'][$option->id]) && $_GET['filters']['options'][$option->id] == $item->id ? 'checked' : false,
27
+                            'options' => [
28
+                                'value' => $item->id,
29
+                            ]
30
+                        ]);
31
+                    }
32
+                    break;
33
+                default:
34 34
                   $this->widget('Ui\Form/' . $option->type, [
35
-                      'label' => $option->name,
36
-                      'name' => "filters[options][{$option->id}]",
37
-                      'options' => [
38
-                          'value' => !empty($_GET['filters']['options'][$option->id]) ? $_GET['filters']['options'][$option->id] : '',
39
-                      ]
40
-                  ]);
41
-          }
42
-          foreach ($option->items as $item) {
43
-              ?>
35
+                        'label' => $option->name,
36
+                        'name' => "filters[options][{$option->id}]",
37
+                        'options' => [
38
+                            'value' => !empty($_GET['filters']['options'][$option->id]) ? $_GET['filters']['options'][$option->id] : '',
39
+                        ]
40
+                    ]);
41
+            }
42
+            foreach ($option->items as $item) {
43
+                ?>
44 44
               <div class="radio">
45 45
                 <label>
46 46
                   <input type="radio" name = 'filters[options][<?= $option->id; ?>]' value ="<?= $item->id; ?>" <?= !empty($_GET['filters']['options'][$option->id]) && $_GET['filters']['options'][$option->id] == $item->id ? 'checked' : ''; ?>>
@@ -48,8 +48,8 @@  discard block
 block discarded – undo
48 48
                 </label>
49 49
               </div>
50 50
               <?php
51
-          }
52
-          ?>
51
+            }
52
+            ?>
53 53
         </div>
54 54
         <?php
55 55
     }
Please login to merge, or discard this patch.
system/modules/Ecommerce/widgets/categorys.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <div class="ecommerce-sidebar-categorys">
2 2
   <?php
3
-  $tree = new Ui\Tree();
4
-  $tree->ul('\Ecommerce\Category', 0, function($categoryItem) use($category) {
5
-      if ($category->id == $categoryItem->id) {
6
-          $class = 'active';
7
-      } else {
8
-          $class = '';
9
-      }
10
-      return [
11
-          'class' => $class,
12
-          'text' => "<a {$class} href = '/ecommerce/itemList/{$categoryItem->id}'>{$categoryItem->name}</a>"
13
-      ];
14
-  });
15
-  ?>
3
+    $tree = new Ui\Tree();
4
+    $tree->ul('\Ecommerce\Category', 0, function($categoryItem) use($category) {
5
+        if ($category->id == $categoryItem->id) {
6
+            $class = 'active';
7
+        } else {
8
+            $class = '';
9
+        }
10
+        return [
11
+            'class' => $class,
12
+            'text' => "<a {$class} href = '/ecommerce/itemList/{$categoryItem->id}'>{$categoryItem->name}</a>"
13
+        ];
14
+    });
15
+    ?>
16 16
 </div>
17 17
\ No newline at end of file
Please login to merge, or discard this patch.