|
@@ -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,16 +24,16 @@ 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 = [ |
|
36
|
|
- 'brands' => ['VojtaSvoboda\Brands\Models\Brand', |
|
|
36
|
+ 'brands' => [ 'VojtaSvoboda\Brands\Models\Brand', |
|
37
|
37
|
'table' => 'vojtasvoboda_brands_brand_category', |
|
38
|
38
|
'order' => 'name desc', |
|
39
|
39
|
'scope' => 'isEnabled', |
Please login to merge, or discard this patch.