Passed
Push — master ( 4c30a2...697d1a )
by Matthijs
05:29
created
src/Services/Shop/ShopService.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@  discard block
 block discarded – undo
13 13
     public function __construct(ShopRepository $shop)
14 14
     {
15 15
         $this->repo = $shop;
16
-        $this->storageImagePath = storage_path() .config('hideyo.storage_path'). "/shop/";
17
-        $this->publicImagePath = public_path() .config('hideyo.public_path'). "/shop/";
16
+        $this->storageImagePath = storage_path().config('hideyo.storage_path')."/shop/";
17
+        $this->publicImagePath = public_path().config('hideyo.public_path')."/shop/";
18 18
     } 
19 19
 
20 20
     /**
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         );
32 32
 
33 33
         if ($shopId) {
34
-            $rules['title'] =   $rules['title'].',title,'.$shopId;
34
+            $rules['title'] = $rules['title'].',title,'.$shopId;
35 35
         }
36 36
 
37 37
         return $rules;
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         
49 49
         if (isset($attributes['logo'])) {
50 50
             $destinationPath = $this->storageImagePath.$model->id;
51
-            $filename =  str_replace(" ", "_", strtolower($attributes['logo']->getClientOriginalName()));
51
+            $filename = str_replace(" ", "_", strtolower($attributes['logo']->getClientOriginalName()));
52 52
             $upload_success = $attributes['logo']->move($destinationPath, $filename);
53 53
 
54 54
             $attributes['logo_file_name'] = $filename;
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
                 File::delete($model->logo_file_path);
91 91
                 $destinationPath = $this->storageImagePath.$model->id;
92 92
 
93
-                $filename =  str_replace(" ", "_", strtolower($attributes['logo']->getClientOriginalName()));
93
+                $filename = str_replace(" ", "_", strtolower($attributes['logo']->getClientOriginalName()));
94 94
                 $upload_success = $attributes['logo']->move($destinationPath, $filename);
95 95
 
96 96
                 $attributes['logo_file_name'] = $filename;
Please login to merge, or discard this patch.
src/Providers/FormBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 
58 58
         //dd($list, $selected);
59 59
         foreach ($list as $value => $display) {
60
-            $sel = isset($selected[$value])?' selected="selected"':'';
60
+            $sel = isset($selected[$value]) ? ' selected="selected"' : '';
61 61
             $html[] = '<option value="'.$value.'"'.$sel.'>'.e($display).'</option>';
62 62
         }
63 63
      
Please login to merge, or discard this patch.