Completed
Pull Request — master (#1350)
by
unknown
03:06
created
src/Form/Field/MultipleFile.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -102,8 +102,8 @@  discard block
 block discarded – undo
102 102
         $rules = $input = [];
103 103
 
104 104
         foreach ($value as $key => $file) {
105
-            $rules[$this->column . $key] = $this->getRules();
106
-            $input[$this->column . $key] = $file;
105
+            $rules[$this->column.$key] = $this->getRules();
106
+            $input[$this->column.$key] = $file;
107 107
         }
108 108
 
109 109
         return [
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
     {
157 157
         $this->name = $this->getStoreName($file);
158 158
 
159
-        return tap($this->upload($file), function () {
159
+        return tap($this->upload($file), function() {
160 160
             $this->name = null;
161 161
         });
162 162
     }
Please login to merge, or discard this patch.
src/Form/Field/Editor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
         $this->options(['contentsLangDirection' => 'ltr']);
24 24
         $this->options(['language' => config('app.locale', 'en')]);
25 25
         //for jquery validation
26
-        $this->addElementClass(['validate','ckeditor']);
26
+        $this->addElementClass(['validate', 'ckeditor']);
27 27
 
28 28
     }
29 29
 
@@ -36,12 +36,12 @@  discard block
 block discarded – undo
36 36
      * @param string $dir
37 37
      * @return $this
38 38
      */
39
-    public function direction($dir ='ltr')
39
+    public function direction($dir = 'ltr')
40 40
     {
41 41
          $this->options(['contentsLangDirection' => $dir]);
42 42
         $this->direction = $dir;
43 43
 
44
-        return $this;    }
44
+        return $this; }
45 45
 
46 46
     /**
47 47
      * set language for editor
Please login to merge, or discard this patch.
src/Widgets/Form.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
      */
173 173
     public function setWidth($fieldWidth = 8, $labelWidth = 2)
174 174
     {
175
-        collect($this->fields)->each(function ($field) use ($fieldWidth, $labelWidth) {
175
+        collect($this->fields)->each(function($field) use ($fieldWidth, $labelWidth) {
176 176
             /* @var Field $field */
177 177
             $field->setWidth($fieldWidth, $labelWidth);
178 178
         });
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
     {
342 342
         $rules = [];
343 343
         foreach ($this->fields as $item) {
344
-            if(!empty($item->getRules())){
344
+            if (!empty($item->getRules())) {
345 345
                 $rules[$item->id] = $item->getRules();
346 346
             }
347 347
         }
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
     public function getRuleMessages()
358 358
     {
359 359
         $rules = [];
360
-        foreach ($this->fields as $item ) {
360
+        foreach ($this->fields as $item) {
361 361
             foreach ($item->validationMessages as $key => $value) {
362 362
                 $rules[$key] = $value;
363 363
             }
Please login to merge, or discard this patch.
src/Widgets/InfoBox.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      * @param string $link
26 26
      * @param string $info
27 27
      */
28
-    public function __construct($name, $icon, $color, $link, $info, $more_text =null )
28
+    public function __construct($name, $icon, $color, $link, $info, $more_text = null)
29 29
     {
30 30
         if ($more_text == null) $more_text = trans('admin.more');
31 31
 
Please login to merge, or discard this patch.