Passed
Push — master ( 58c562...e63ab8 )
by Steve
01:53
created
src/FlexibleContentBuilder.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -223,8 +223,7 @@
 block discarded – undo
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.');
Please login to merge, or discard this patch.