Completed
Push — master ( ff1179...d20415 )
by Ryan
02:21
created
src/Setting/Form/SettingFormFields.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -39,17 +39,17 @@  discard block
 block discarded – undo
39 39
      */
40 40
     public function handle(SettingFormBuilder $builder, SettingRepositoryInterface $settings)
41 41
     {
42
-        $namespace = $builder->getFormEntry() . '::';
42
+        $namespace = $builder->getFormEntry().'::';
43 43
 
44 44
         /**
45 45
          * Get the fields from the config system. Sections are
46 46
          * optionally defined the same way.
47 47
          */
48
-        if (!$fields = $this->config->get($namespace . 'settings/settings')) {
49
-            $fields = $fields = $this->config->get($namespace . 'settings', []);
48
+        if (!$fields = $this->config->get($namespace.'settings/settings')) {
49
+            $fields = $fields = $this->config->get($namespace.'settings', []);
50 50
         }
51 51
 
52
-        if ($sections = $this->config->get($namespace . 'settings/sections')) {
52
+        if ($sections = $this->config->get($namespace.'settings/sections')) {
53 53
             $builder->setSections($sections);
54 54
         }
55 55
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
                 $label = array_get(
79 79
                     $field,
80 80
                     'label',
81
-                    $namespace . 'setting.' . $slug . '.label'
81
+                    $namespace.'setting.'.$slug.'.label'
82 82
                 )
83 83
             )
84 84
             ) {
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             $field['label'] = array_get(
90 90
                 $field,
91 91
                 'label',
92
-                $namespace . 'setting.' . $slug . '.name'
92
+                $namespace.'setting.'.$slug.'.name'
93 93
             );
94 94
 
95 95
             // Default the warning.
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
                 $warning = array_get(
98 98
                     $field,
99 99
                     'warning',
100
-                    $namespace . 'setting.' . $slug . '.warning'
100
+                    $namespace.'setting.'.$slug.'.warning'
101 101
                 )
102 102
             )
103 103
             ) {
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
                 $placeholder = array_get(
110 110
                     $field,
111 111
                     'placeholder',
112
-                    $namespace . 'setting.' . $slug . '.placeholder'
112
+                    $namespace.'setting.'.$slug.'.placeholder'
113 113
                 )
114 114
             )
115 115
             ) {
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                 $instructions = array_get(
122 122
                     $field,
123 123
                     'instructions',
124
-                    $namespace . 'setting.' . $slug . '.instructions'
124
+                    $namespace.'setting.'.$slug.'.instructions'
125 125
                 )
126 126
             )
127 127
             ) {
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
             }
130 130
 
131 131
             // Get the value defaulting to the default value.
132
-            if ($value = $settings->get($namespace . $slug)) {
132
+            if ($value = $settings->get($namespace.$slug)) {
133 133
                 $field['value'] = $value->getValue();
134 134
             } else {
135 135
                 $field['value'] = array_get($field['config'], 'default_value');
Please login to merge, or discard this patch.