Completed
Pull Request — master (#168)
by
unknown
02:57
created
Tests/Functional/Twig/PersonalSettingWidgetExtensionTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
 use ONGR\SettingsBundle\Tests\Fixtures\Security\LoginTestHelper;
16 16
 use ONGR\ElasticsearchBundle\Test\ElasticsearchTestCase;
17 17
 use Symfony\Bundle\FrameworkBundle\Client;
18
-use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
19 18
 
20 19
 /**
21 20
  * Tests for testing settings TWIG extension functionality.
Please login to merge, or discard this patch.
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.
Tests/Functional/Settings/SettingsManagerTest.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,6 @@
 block discarded – undo
16 16
 use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
17 17
 use ONGR\ElasticsearchBundle\Service\Manager;
18 18
 use ONGR\ElasticsearchDSL\Query\MatchAllQuery;
19
-use Symfony\Component\Translation\TranslatorInterface;
20 19
 use Symfony\Component\DependencyInjection\ContainerInterface;
21 20
 
22 21
 /**
Please login to merge, or discard this 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.
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.
Controller/SettingsManagerController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
 
14 14
 use ONGR\SettingsBundle\Settings\General\SettingsManager;
15 15
 use Symfony\Bundle\FrameworkBundle\Controller\Controller;
16
-use Symfony\Component\HttpFoundation\JsonResponse;
17 16
 use Symfony\Component\HttpFoundation\RedirectResponse;
18 17
 use Symfony\Component\HttpFoundation\Request;
19 18
 use Symfony\Component\HttpFoundation\Response;
Please login to merge, or discard this patch.
ONGRSettingsBundle.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 use ONGR\SettingsBundle\DependencyInjection\Compiler\SettingAwareFactoryPass;
18 18
 use Symfony\Component\DependencyInjection\ContainerBuilder;
19 19
 use Symfony\Component\HttpKernel\Bundle\Bundle;
20
-use ONGR\SettingsBundle\DependencyInjection\Security\SessionlessAuthenticationFactory;
21 20
 
22 21
 /**
23 22
  * This class is used to register component into Symfony app kernel.
Please login to merge, or discard this patch.
Tests/Functional/Controller/PersonalSettingsControllerTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 namespace ONGR\SettingsBundle\Tests\Functional\Controller;
13 13
 
14 14
 use ONGR\ElasticsearchBundle\Test\AbstractElasticsearchTestCase;
15
-use ONGR\SettingsBundle\Tests\Fixtures\Security\LoginTestHelper;
16 15
 use Symfony\Bundle\FrameworkBundle\Client;
17 16
 
18 17
 /**
Please login to merge, or discard this patch.