Passed
Push — master ( bda0ff...1025c3 )
by Matthijs
01:44
created
src/Services/Attribute/AttributeService.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -10,11 +10,11 @@  discard block
 block discarded – undo
10 10
  
11 11
 class AttributeService extends BaseService
12 12
 {
13
-	public function __construct(AttributeRepository $attribute, AttributeGroupRepository $attributeGroup)
14
-	{
15
-		$this->repo = $attribute;
16
-		$this->repoGroup = $attributeGroup;		
17
-	} 
13
+    public function __construct(AttributeRepository $attribute, AttributeGroupRepository $attributeGroup)
14
+    {
15
+        $this->repo = $attribute;
16
+        $this->repoGroup = $attributeGroup;		
17
+    } 
18 18
 
19 19
     private function rules($id = false)
20 20
     {
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     {
47 47
         $attributes['shop_id'] = auth('hideyobackend')->user()->selected_shop_id;
48 48
         $attributes['modified_by_user_id'] = auth('hideyobackend')->user()->id;
49
-  		$attributes['attribute_group_id'] = $attributeGroupId;
49
+            $attributes['attribute_group_id'] = $attributeGroupId;
50 50
 
51 51
         $validator = Validator::make($attributes, $this->rules());
52 52
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
         );
37 37
         
38 38
         if ($id) {
39
-            $rules['title'] =   $rules['title'].','.$id.' = id';
39
+            $rules['title'] = $rules['title'].','.$id.' = id';
40 40
         }
41 41
 
42 42
         return $rules;
Please login to merge, or discard this patch.
src/Services/Brand/BrandService.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,13 +11,13 @@
 block discarded – undo
11 11
  
12 12
 class BrandService extends BaseService
13 13
 {
14
-	public function __construct(BrandRepository $brand)
15
-	{
16
-		$this->repo = $brand;
14
+    public function __construct(BrandRepository $brand)
15
+    {
16
+        $this->repo = $brand;
17 17
         $this->storageImagePath = storage_path() .config('hideyo.storage_path'). "/brand/";
18 18
         $this->publicImagePath = public_path() .config('hideyo.public_path'). "/brand/";
19 19
 
20
-	} 
20
+    } 
21 21
 
22 22
     /**
23 23
      * The validation rules for the model.
Please login to merge, or discard this patch.