Completed
Pull Request — master (#168)
by
unknown
02:57
created
Tests/Unit/EventListener/ProfileRequestListenerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         // Case #0. No profiles selected.
29 29
         $cases[] = [[], []];
30 30
         // Case #1. One profile selected.
31
-        $cases[] = [ ['ongr_settings_profile_foo-2e-com' => true], ['foo.com'] ];
31
+        $cases[] = [['ongr_settings_profile_foo-2e-com' => true], ['foo.com']];
32 32
         // Case #2. One profile unselected.
33 33
         $cases[] = [
34 34
             ['ongr_settings_profile_foo-2e-com' => false, 'ongr_settings_profile_bar-2e-com' => true],
Please login to merge, or discard this patch.
Tests/Unit/DependencyInjection/Compiler/SettingsModifierPassTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
             ->with(
67 67
                 'extractSettings',
68 68
                 $this->callback(
69
-                    function ($value) use ($expectedMethod) {
69
+                    function($value) use ($expectedMethod) {
70 70
                         return $value[1] == $expectedMethod;
71 71
                     }
72 72
                 )
Please login to merge, or discard this patch.
DependencyInjection/Compiler/ProviderPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
         // elements comes out reversed compared to original.
61 61
         uasort(
62 62
             $providers,
63
-            function ($a, $b) {
63
+            function($a, $b) {
64 64
                 if ($a['priority'] == $b['priority']) {
65 65
                     return 0;
66 66
                 }
Please login to merge, or discard this patch.
Twig/EncryptionExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     public function getFilters()
27 27
     {
28 28
         return [
29
-            'base64Encode' => new \Twig_SimpleFilter('base64Encode', [$this,'base64EncodeFilter'])
29
+            'base64Encode' => new \Twig_SimpleFilter('base64Encode', [$this, 'base64EncodeFilter'])
30 30
         ];
31 31
     }
32 32
 
Please login to merge, or discard this patch.
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/General/SettingAwareServiceFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,6 +82,6 @@
 block discarded – undo
82 82
      */
83 83
     protected function guessName($setting)
84 84
     {
85
-        return 'set' . Container::camelize($setting);
85
+        return 'set'.Container::camelize($setting);
86 86
     }
87 87
 }
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.
Settings/Personal/UnderscoreEscaper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,8 +35,8 @@  discard block
 block discarded – undo
35 35
 
36 36
         $string = preg_replace_callback(
37 37
             '/[^a-zA-Z0-9_]/u',
38
-            function ($matches) {
39
-                return '-' . bin2hex($matches[0]) . '-';
38
+            function($matches) {
39
+                return '-'.bin2hex($matches[0]).'-';
40 40
             },
41 41
             $string
42 42
         );
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
         $string = preg_replace_callback(
61 61
             '/-([0-9a-f]+)-/u',
62
-            function ($matches) {
62
+            function($matches) {
63 63
                 return hex2bin($matches[1]);
64 64
             },
65 65
             $string
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.