@@ -26,7 +26,7 @@ |
||
26 | 26 | /** |
27 | 27 | * Constructor. |
28 | 28 | * |
29 | - * @param Action $action |
|
29 | + * @param string $action |
|
30 | 30 | */ |
31 | 31 | public function __construct($action) |
32 | 32 | { |
@@ -120,7 +120,7 @@ |
||
120 | 120 | } |
121 | 121 | |
122 | 122 | /** |
123 | - * @param array $profiles |
|
123 | + * @param string[] $profiles |
|
124 | 124 | */ |
125 | 125 | public function setProfiles($profiles) |
126 | 126 | { |
@@ -17,7 +17,6 @@ |
||
17 | 17 | use ONGR\ElasticsearchBundle\ORM\Manager; |
18 | 18 | use ONGR\SettingsBundle\Document\Setting; |
19 | 19 | use ONGR\SettingsBundle\Event\SettingChangeEvent; |
20 | -use Exception; |
|
21 | 20 | |
22 | 21 | /** |
23 | 22 | * Class SettingsManager responsible for managing settings actions. |
@@ -12,8 +12,6 @@ |
||
12 | 12 | namespace ONGR\SettingsBundle\Tests\Functional\Controller; |
13 | 13 | |
14 | 14 | use ONGR\SettingsBundle\Tests\Fixtures\Security\LoginTestHelper; |
15 | -use ONGR\SettingsBundle\Tests\Functional\PreparePersonalData; |
|
16 | -use ONGR\SettingsBundle\Tests\Functional\PrepareAdminData; |
|
17 | 15 | use ONGR\ElasticsearchBundle\Test\ElasticsearchTestCase; |
18 | 16 | use Symfony\Bundle\FrameworkBundle\Client; |
19 | 17 |
@@ -99,7 +99,7 @@ |
||
99 | 99 | |
100 | 100 | // Try to change value through change setting action. |
101 | 101 | $data[0] = ['foo_setting_1', false]; |
102 | - $data[1] = ['foo_setting_non_existent', false ]; |
|
102 | + $data[1] = ['foo_setting_non_existent', false]; |
|
103 | 103 | |
104 | 104 | foreach ($data as $case) { |
105 | 105 | $client->request('get', '/admin/setting/change/' . base64_encode($case[0])); |
@@ -12,7 +12,6 @@ |
||
12 | 12 | namespace ONGR\SettingsBundle\Tests\Functional\Twig; |
13 | 13 | |
14 | 14 | use ONGR\SettingsBundle\Exception\SettingNotFoundException; |
15 | -use ONGR\SettingsBundle\Settings\Personal\PersonalSettingsManager; |
|
16 | 15 | use ONGR\SettingsBundle\Twig\GeneralSettingsWidgetExtension; |
17 | 16 | use ONGR\SettingsBundle\Tests\Fixtures\Security\LoginTestHelper; |
18 | 17 | use ONGR\SettingsBundle\Settings\General\SettingsContainerInterface; |
@@ -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. |
@@ -66,7 +66,7 @@ |
||
66 | 66 | } |
67 | 67 | |
68 | 68 | /** |
69 | - * @return array |
|
69 | + * @return string[] |
|
70 | 70 | */ |
71 | 71 | public function getFirewallsDetails() |
72 | 72 | { |
@@ -108,7 +108,7 @@ |
||
108 | 108 | * @param bool $miss |
109 | 109 | * @param array $settings |
110 | 110 | * |
111 | - * @return \PHPUnit_Framework_MockObject_MockObject|PoolInterface |
|
111 | + * @return PoolInterface |
|
112 | 112 | */ |
113 | 113 | private function getPool($miss = true, $settings = []) |
114 | 114 | { |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | /** |
128 | 128 | * Returns mock of SettingsManager. |
129 | 129 | * |
130 | - * @param object $ormManagerMock |
|
130 | + * @param Manager $ormManagerMock |
|
131 | 131 | * |
132 | 132 | * @return SettingsManager |
133 | 133 | */ |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | /** |
144 | 144 | * Returns mock of event dispatcher. |
145 | 145 | * |
146 | - * @return EventDispatcherInterface|MockObject |
|
146 | + * @return EventDispatcherInterface |
|
147 | 147 | */ |
148 | 148 | protected function getEventDispatcherMock() |
149 | 149 | { |
@@ -166,10 +166,10 @@ |
||
166 | 166 | $cases[1] = ['name' => 'bar_name', 'profile' => true]; |
167 | 167 | |
168 | 168 | // Case No 3. Array. |
169 | - $cases[2] = ['name' => 'bar_name', 'profile' => ['value1', 'value2'] ]; |
|
169 | + $cases[2] = ['name' => 'bar_name', 'profile' => ['value1', 'value2']]; |
|
170 | 170 | |
171 | 171 | // Case No 3. Object. |
172 | - $cases[3] = ['name' => 'bar_name', 'profile' => $this->getOrmRepositoryMock() ]; |
|
172 | + $cases[3] = ['name' => 'bar_name', 'profile' => $this->getOrmRepositoryMock()]; |
|
173 | 173 | |
174 | 174 | return $cases; |
175 | 175 | } |