Completed
Pull Request — master (#1350)
by
unknown
02:44
created
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.