@@ -172,7 +172,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -25,7 +25,7 @@ |
||
| 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 | |