Completed
Push — master ( 0567ce...b1f00b )
by Ryan
02:35
created
src/Configuration/ConfigurationRepository.php 2 patches
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,6 @@
 block discarded – undo
36 36
      * Create a new ConfigurationRepositoryInterface instance.
37 37
      *
38 38
      * @param ConfigurationModel  $model
39
-     * @param Repository          $config
40
-     * @param FieldTypeCollection $fieldTypes
41 39
      */
42 40
     public function __construct(ConfigurationModel $model)
43 41
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function get($key, $scope)
57 57
     {
58
-        return $this->configurations->get($key . $scope);
58
+        return $this->configurations->get($key.$scope);
59 59
     }
60 60
 
61 61
     /**
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      */
138 138
     public function purge($namespace)
139 139
     {
140
-        $this->model->where('key', 'LIKE', $namespace . '::%')->delete();
140
+        $this->model->where('key', 'LIKE', $namespace.'::%')->delete();
141 141
 
142 142
         return $this;
143 143
     }
Please login to merge, or discard this patch.
src/Configuration/Form/ConfigurationFormRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,13 +75,13 @@
 block discarded – undo
75 75
      */
76 76
     public function save(FormBuilder $builder)
77 77
     {
78
-        $namespace = $builder->getFormEntry() . '::';
78
+        $namespace = $builder->getFormEntry().'::';
79 79
 
80 80
         /* @var FieldType $field */
81 81
         foreach ($builder->getFormFields() as $field) {
82 82
 
83 83
             $scope = $builder->getScope();
84
-            $key   = $namespace . $field->getField();
84
+            $key   = $namespace.$field->getField();
85 85
             $value = $builder->getFormValue($field->getInputName());
86 86
 
87 87
             $this->configurations->set($key, $scope, $value);
Please login to merge, or discard this patch.
src/Configuration/Form/ConfigurationFormFields.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -40,17 +40,17 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/Configuration/ConfigurationCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     {
24 24
         /* @var ConfigurationInterface $item */
25 25
         foreach ($items as $item) {
26
-            $this->items[$item->getKey() . $item->getScope()] = $item;
26
+            $this->items[$item->getKey().$item->getScope()] = $item;
27 27
         }
28 28
     }
29 29
 }
Please login to merge, or discard this patch.