Completed
Push — master ( fec5e4...9d55fa )
by Vojta
01:20
created
controllers/Brands.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,15 +38,15 @@
 block discarded – undo
38 38
             $key = 'vojtasvoboda_brands-Brands-Filter-listFilter';
39 39
 
40 40
             // create new filter
41
-            $filter['scope-category'] = [
41
+            $filter[ 'scope-category' ] = [
42 42
                 $id => Category::find($id)->name,
43 43
             ];
44 44
 
45 45
             // save new filter
46 46
             $encoded = base64_encode(serialize($filter));
47
-            $withoutFiltering = !isset($widgetSession[$key]);
48
-            if ($withoutFiltering || $widgetSession[$key] !== $encoded) {
49
-                $widgetSession[$key] = $encoded;
47
+            $withoutFiltering = !isset($widgetSession[ $key ]);
48
+            if ($withoutFiltering || $widgetSession[ $key ] !== $encoded) {
49
+                $widgetSession[ $key ] = $encoded;
50 50
                 Session::put('widget', $widgetSession);
51 51
             }
52 52
         }
Please login to merge, or discard this patch.
controllers/Categories.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,9 +33,9 @@
 block discarded – undo
33 33
     public function listOverrideColumnValue($record, $columnName, $definition = null)
34 34
     {
35 35
         if ($columnName == 'brands_count') {
36
-            $link = Backend::url('vojtasvoboda/brands/brands?category=' . $record->id);
36
+            $link = Backend::url('vojtasvoboda/brands/brands?category='.$record->id);
37 37
 
38
-            return '<a class="btn btn-xs btn-primary" href="' . $link . '">' . $record->brands_count . '</a>';
38
+            return '<a class="btn btn-xs btn-primary" href="'.$link.'">'.$record->brands_count.'</a>';
39 39
         }
40 40
     }
41 41
 }
Please login to merge, or discard this patch.
models/Category.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 
14 14
     use ValidationTrait;
15 15
 
16
-    public $implement = ['@RainLab.Translate.Behaviors.TranslatableModel'];
16
+    public $implement = [ '@RainLab.Translate.Behaviors.TranslatableModel' ];
17 17
 
18 18
     public $table = 'vojtasvoboda_brands_categories';
19 19
 
@@ -24,12 +24,12 @@  discard block
 block discarded – undo
24 24
         'description' => 'max:10000',
25 25
     ];
26 26
 
27
-    public $translatable = ['name', 'slug', 'description'];
27
+    public $translatable = [ 'name', 'slug', 'description' ];
28 28
 
29
-    public $dates = ['created_at', 'updated_at', 'deleted_at'];
29
+    public $dates = [ 'created_at', 'updated_at', 'deleted_at' ];
30 30
 
31 31
     public $attachOne = [
32
-        'image' => ['System\Models\File'],
32
+        'image' => [ 'System\Models\File' ],
33 33
     ];
34 34
 
35 35
     public $belongsToMany = [
Please login to merge, or discard this patch.