@@ -40,17 +40,17 @@ discard block |
||
40 | 40 | public function handle(ConfigurationFormBuilder $builder, ConfigurationRepositoryInterface $configuration) |
41 | 41 | { |
42 | 42 | $scope = $builder->getScope(); |
43 | - $namespace = $builder->getFormEntry() . '::'; |
|
43 | + $namespace = $builder->getFormEntry().'::'; |
|
44 | 44 | |
45 | 45 | /** |
46 | 46 | * Get the fields from the config system. Sections are |
47 | 47 | * optionally defined the same way. |
48 | 48 | */ |
49 | - if (!$fields = $this->config->get($namespace . 'configuration/configuration')) { |
|
50 | - $fields = $fields = $this->config->get($namespace . 'configuration', []); |
|
49 | + if (!$fields = $this->config->get($namespace.'configuration/configuration')) { |
|
50 | + $fields = $fields = $this->config->get($namespace.'configuration', []); |
|
51 | 51 | } |
52 | 52 | |
53 | - if ($sections = $this->config->get($namespace . 'configuration/sections')) { |
|
53 | + if ($sections = $this->config->get($namespace.'configuration/sections')) { |
|
54 | 54 | $builder->setSections($sections); |
55 | 55 | } |
56 | 56 | |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | $label = array_get( |
80 | 80 | $field, |
81 | 81 | 'label', |
82 | - $namespace . 'configuration.' . $slug . '.label' |
|
82 | + $namespace.'configuration.'.$slug.'.label' |
|
83 | 83 | ) |
84 | 84 | ) |
85 | 85 | ) { |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | $field['label'] = array_get( |
91 | 91 | $field, |
92 | 92 | 'label', |
93 | - $namespace . 'configuration.' . $slug . '.name' |
|
93 | + $namespace.'configuration.'.$slug.'.name' |
|
94 | 94 | ); |
95 | 95 | |
96 | 96 | // Default the warning. |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | $warning = array_get( |
99 | 99 | $field, |
100 | 100 | 'warning', |
101 | - $namespace . 'configuration.' . $slug . '.warning' |
|
101 | + $namespace.'configuration.'.$slug.'.warning' |
|
102 | 102 | ) |
103 | 103 | ) |
104 | 104 | ) { |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | $field['config']['placeholder'] = array_get( |
110 | 110 | $field, |
111 | 111 | 'placeholder', |
112 | - $namespace . 'configuration.' . $slug . '.placeholder' |
|
112 | + $namespace.'configuration.'.$slug.'.placeholder' |
|
113 | 113 | ); |
114 | 114 | |
115 | 115 | // Default the instructions. |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | $instructions = array_get( |
118 | 118 | $field, |
119 | 119 | 'instructions', |
120 | - $namespace . 'configuration.' . $slug . '.instructions' |
|
120 | + $namespace.'configuration.'.$slug.'.instructions' |
|
121 | 121 | ) |
122 | 122 | ) |
123 | 123 | ) { |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | } |
126 | 126 | |
127 | 127 | // Get the value defaulting to the default value. |
128 | - if ($applied = $configuration->get($namespace . $slug, $scope)) { |
|
128 | + if ($applied = $configuration->get($namespace.$slug, $scope)) { |
|
129 | 129 | $field['value'] = $applied->getValue(); |
130 | 130 | } else { |
131 | 131 | $field['value'] = array_get($field['config'], 'default_value'); |