@@ -73,7 +73,7 @@ |
||
| 73 | 73 | if (array_key_exists('collapsed', $config)) { |
| 74 | 74 | $fieldKey = $this->fieldsBuilder->getField($config['collapsed'])->getKey(); |
| 75 | 75 | $fieldKey = preg_replace('/^field_/', '', $fieldKey); |
| 76 | - $config['collapsed'] = $this->getName() . '_' . $fieldKey; |
|
| 76 | + $config['collapsed'] = $this->getName().'_'.$fieldKey; |
|
| 77 | 77 | } |
| 78 | 78 | return $config; |
| 79 | 79 | } |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | /** |
| 100 | 100 | * Build the final config array. Build any other builders that may exist |
| 101 | 101 | * in the config. |
| 102 | - * @return array Final field config |
|
| 102 | + * @return string Final field config |
|
| 103 | 103 | */ |
| 104 | 104 | public function build() |
| 105 | 105 | { |
@@ -549,7 +549,7 @@ discard block |
||
| 549 | 549 | } |
| 550 | 550 | |
| 551 | 551 | /** |
| 552 | - * @return array |
|
| 552 | + * @return NamedBuilder[] |
|
| 553 | 553 | */ |
| 554 | 554 | public function getFields() |
| 555 | 555 | { |
@@ -12,10 +12,10 @@ |
||
| 12 | 12 | * Define a list of array keys `transform` should not be recursed upon. |
| 13 | 13 | * @var array |
| 14 | 14 | */ |
| 15 | - protected $dontRecurseKeys = ['fields', 'sub_fields', 'layouts']; |
|
| 15 | + protected $dontRecurseKeys = ['fields', 'sub_fields', 'layouts']; |
|
| 16 | 16 | |
| 17 | - protected function shouldRecurse($value, $key) |
|
| 18 | - { |
|
| 19 | - return is_array($value) && !in_array($key, $this->dontRecurseKeys, true); |
|
| 20 | - } |
|
| 17 | + protected function shouldRecurse($value, $key) |
|
| 18 | + { |
|
| 19 | + return is_array($value) && !in_array($key, $this->dontRecurseKeys, true); |
|
| 20 | + } |
|
| 21 | 21 | } |