@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | */ |
| 48 | 48 | private function buildLayouts() |
| 49 | 49 | { |
| 50 | - return array_map(function ($layout) { |
|
| 50 | + return array_map(function($layout) { |
|
| 51 | 51 | $layout = ($layout instanceof Builder) ? $layout->build() : $layout; |
| 52 | 52 | return $this->transformLayout($layout); |
| 53 | 53 | }, $this->getLayouts()); |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | */ |
| 176 | 176 | private function getDefaultButtonLabel() |
| 177 | 177 | { |
| 178 | - return 'Add ' . $this->singularize($this->getLabel()); |
|
| 178 | + return 'Add '.$this->singularize($this->getLabel()); |
|
| 179 | 179 | } |
| 180 | 180 | |
| 181 | 181 | public function removeLayout($name) |
@@ -223,8 +223,7 @@ |
||
| 223 | 223 | } elseif ($modify instanceof \Closure) { |
| 224 | 224 | throw new \Exception('FieldsBuilder can\'t be modified with a closure.'); |
| 225 | 225 | } |
| 226 | - } |
|
| 227 | - else if (is_array($modify)) { |
|
| 226 | + } else if (is_array($modify)) { |
|
| 228 | 227 | $this->updateConfig($modify); |
| 229 | 228 | } elseif ($modify instanceof \Closure) { |
| 230 | 229 | throw new \Exception('FlexibleContentBuilder can\'t be modified with a closure.'); |