Completed
Pull Request — master (#168)
by
unknown
02:57
created
Settings/General/SettingsManager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     {
75 75
         foreach ($profiles as $profile) {
76 76
             $setting = new Setting();
77
-            $setting->setId($profile . '_' . $name);
77
+            $setting->setId($profile.'_'.$name);
78 78
             $setting->setName($name);
79 79
             $setting->setDescription($description);
80 80
             $setting->setData((object)['value' => $value]);
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
         foreach ($newProfiles as $profile) {
131 131
             $newSetting = clone $setting;
132 132
 
133
-            $newSetting->setId($profile . '_' . $setting->getName());
133
+            $newSetting->setId($profile.'_'.$setting->getName());
134 134
             $newSetting->setProfile($profile);
135 135
             $newSettings[] = $newSetting;
136 136
         }
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
      */
153 153
     public function get($name, $profile = 'default', $mustExist = true, $type = 'string')
154 154
     {
155
-        $setting = $this->repo->find($profile . '_' . $name);
155
+        $setting = $this->repo->find($profile.'_'.$name);
156 156
         if ($setting === null) {
157 157
             if ($mustExist === true) {
158 158
                 throw new \UnexpectedValueException();
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
     protected function createSetting($name, $profile, $type)
176 176
     {
177 177
         $setting = new Setting();
178
-        $setting->setId($profile . '_' . $name);
178
+        $setting->setId($profile.'_'.$name);
179 179
         $setting->setName($name);
180 180
         $setting->setProfile($profile);
181 181
         $setting->setType($type);
Please login to merge, or discard this patch.
Settings/Personal/PersonalProfilesProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 
58 58
         $settings = [];
59 59
         foreach ($profiles as $profile) {
60
-            $profileId = 'ongr_settings_profile_' . UnderscoreEscaper::escape($profile['name']);
60
+            $profileId = 'ongr_settings_profile_'.UnderscoreEscaper::escape($profile['name']);
61 61
             $settings[$profileId] = [
62 62
                 'name' => $profile['name'],
63 63
                 'category' => 'ongr_settings_profiles',
Please login to merge, or discard this patch.
DependencyInjection/ONGRSettingsExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
         // Set profiles.
41 41
         $container->setParameter('ongr_settings.settings_container.profiles', $config['profiles']);
42 42
 
43
-        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
43
+        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
44 44
         $loader->load('services/twig_extension.yml');
45 45
         $loader->load('services/personal_settings.yml');
46 46
         $loader->load('services/general_settings.yml');
Please login to merge, or discard this patch.
Twig/HiddenExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
                 foreach ($value as $value2) {
111 111
                     if (!is_array($value2)) {
112 112
                         $new[] = [
113
-                            'name' => $name . '[]',
113
+                            'name' => $name.'[]',
114 114
                             'value' => $value2,
115 115
                         ];
116 116
                     }
Please login to merge, or discard this patch.
Service/FormValidator.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,8 +44,7 @@
 block discarded – undo
44 44
         switch ($return['type']) {
45 45
             case 'bool':
46 46
                 $request->request->get('setting-boolean') == 'true' ?
47
-                    $return['value'] = true :
48
-                    $return['value'] = false;
47
+                    $return['value'] = true : $return['value'] = false;
49 48
                 break;
50 49
             case 'string':
51 50
                 $return['value'] = $request->request->get('setting-default');
Please login to merge, or discard this patch.
Tests/app/AppKernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,6 +46,6 @@
 block discarded – undo
46 46
      */
47 47
     public function registerContainerConfiguration(LoaderInterface $loader)
48 48
     {
49
-        $loader->load(__DIR__ . '/config/config_' . $this->getEnvironment() . '.yml');
49
+        $loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
50 50
     }
51 51
 }
Please login to merge, or discard this patch.
Tests/Functional/Settings/SettingsManagerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -181,9 +181,9 @@
 block discarded – undo
181 181
     private function getSetting($name, $type, $value, $profile = 'default')
182 182
     {
183 183
         $setting = new Setting();
184
-        $setting->setId($profile . '_' . $name);
184
+        $setting->setId($profile.'_'.$name);
185 185
         $setting->setName($name);
186
-        $setting->setDescription('ongr_settings.' . $name);
186
+        $setting->setDescription('ongr_settings.'.$name);
187 187
         $setting->setProfile($profile);
188 188
         $setting->setType($type);
189 189
         $setting->setData(['value' => $value]);
Please login to merge, or discard this patch.
Settings/Personal/PersonalSettingsManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -221,13 +221,13 @@
 block discarded – undo
221 221
     private function getStashName($user)
222 222
     {
223 223
         $property = $this->guessPropertyOrMethodName($user);
224
-        $stashName =  self::STASH_NAME.'_';
224
+        $stashName = self::STASH_NAME.'_';
225 225
         try {
226 226
             if ($property[0] == 'public') {
227
-                $stashName = $stashName . $user->$property[1];
227
+                $stashName = $stashName.$user->$property[1];
228 228
             } else {
229 229
                 $method = $property[1];
230
-                $stashName = $stashName . $user->$method();
230
+                $stashName = $stashName.$user->$method();
231 231
             }
232 232
             $this->stash = $stashName;
233 233
             return $stashName;
Please login to merge, or discard this patch.