Completed
Push — master ( 8e922e...3329c8 )
by Alexey
05:08
created
system/modules/Ecommerce/widgets/categorys.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@
 block discarded – undo
1 1
 <div class="ecommerce-sidebar-categorys">
2 2
   <?php
3
-  if (empty($category)) {
4
-      $category = [];
5
-  }
6
-  $tree = new Ui\Tree();
7
-  $tree->ul('\Ecommerce\Category', 0, function($categoryItem) use($category) {
8
-      if ($category && $category->id == $categoryItem->id) {
9
-          $class = 'active';
10
-      } else {
11
-          $class = '';
12
-      }
13
-      return [
14
-          'attributes' => [
15
-              'class' => $class,
16
-          ],
17
-          'text' => "<a {$class} href = '/ecommerce/itemList/{$categoryItem->id}'>{$categoryItem->name}</a>"
18
-      ];
19
-  });
20
-  ?>
3
+    if (empty($category)) {
4
+        $category = [];
5
+    }
6
+    $tree = new Ui\Tree();
7
+    $tree->ul('\Ecommerce\Category', 0, function($categoryItem) use($category) {
8
+        if ($category && $category->id == $categoryItem->id) {
9
+            $class = 'active';
10
+        } else {
11
+            $class = '';
12
+        }
13
+        return [
14
+            'attributes' => [
15
+                'class' => $class,
16
+            ],
17
+            'text' => "<a {$class} href = '/ecommerce/itemList/{$categoryItem->id}'>{$categoryItem->name}</a>"
18
+        ];
19
+    });
20
+    ?>
21 21
 </div>
22 22
\ No newline at end of file
Please login to merge, or discard this patch.