@@ -15,7 +15,6 @@ |
||
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. |
@@ -28,7 +28,7 @@ |
||
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], |
@@ -66,7 +66,7 @@ |
||
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 | ) |
@@ -60,7 +60,7 @@ |
||
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 | } |
@@ -16,7 +16,6 @@ |
||
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 | /** |
@@ -181,9 +181,9 @@ |
||
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]); |
@@ -26,7 +26,7 @@ |
||
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 |
@@ -13,7 +13,6 @@ |
||
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; |
@@ -17,7 +17,6 @@ |
||
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. |
@@ -12,7 +12,6 @@ |
||
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 | /** |