@@ -288,15 +288,15 @@ discard block |
||
| 288 | 288 | public function getAction(): string |
| 289 | 289 | { |
| 290 | 290 | if ($this->action) { |
| 291 | - return admin_url(str_replace('http://', '//',$this->action)); |
|
| 291 | + return admin_url(str_replace('http://', '//', $this->action)); |
|
| 292 | 292 | } |
| 293 | 293 | |
| 294 | 294 | if ($this->isMode(static::MODE_EDIT)) { |
| 295 | - return admin_url(str_replace('http://', '//',$this->form->resource().'/'.$this->id)); |
|
| 295 | + return admin_url(str_replace('http://', '//', $this->form->resource().'/'.$this->id)); |
|
| 296 | 296 | } |
| 297 | 297 | |
| 298 | 298 | if ($this->isMode(static::MODE_CREATE)) { |
| 299 | - return admin_url(str_replace('http://', '//',$this->form->resource(-1))); |
|
| 299 | + return admin_url(str_replace('http://', '//', $this->form->resource(-1))); |
|
| 300 | 300 | } |
| 301 | 301 | |
| 302 | 302 | return ''; |
@@ -349,7 +349,7 @@ discard block |
||
| 349 | 349 | */ |
| 350 | 350 | public function field($name) |
| 351 | 351 | { |
| 352 | - return $this->fields()->first(function (Field $field) use ($name) { |
|
| 352 | + return $this->fields()->first(function(Field $field) use ($name) { |
|
| 353 | 353 | return $field->column() === $name; |
| 354 | 354 | }); |
| 355 | 355 | } |
@@ -584,7 +584,7 @@ discard block |
||
| 584 | 584 | |
| 585 | 585 | $this->form->getLayout()->removeReservedFields($reservedColumns); |
| 586 | 586 | |
| 587 | - $this->fields = $this->fields()->reject(function (Field $field) use ($reservedColumns) { |
|
| 587 | + $this->fields = $this->fields()->reject(function(Field $field) use ($reservedColumns) { |
|
| 588 | 588 | return in_array($field->column(), $reservedColumns, true); |
| 589 | 589 | }); |
| 590 | 590 | } |