@@ -40,7 +40,7 @@ |
||
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'); |
@@ -46,6 +46,6 @@ |
||
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 | } |
@@ -150,7 +150,7 @@ |
||
150 | 150 | /** |
151 | 151 | * Set profile. |
152 | 152 | * |
153 | - * @param string|array $profile |
|
153 | + * @param string[] $profile |
|
154 | 154 | */ |
155 | 155 | public function setProfile($profile) |
156 | 156 | { |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | 'value' => 'foo', |
125 | 125 | ]; |
126 | 126 | |
127 | - $this->manager->expects($this->once())->method('persist')->with($this->callback(function ($obj) { |
|
127 | + $this->manager->expects($this->once())->method('persist')->with($this->callback(function($obj) { |
|
128 | 128 | return $obj instanceof Setting; |
129 | 129 | }))->willReturn(null); |
130 | 130 | $this->manager->expects($this->once())->method('persist')->willReturn(null); |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | $document = $manager->create($data); |
137 | 137 | |
138 | 138 | foreach ($data as $key => $value) { |
139 | - $this->assertEquals($value, $document->{'get' . ucfirst($key)}()); |
|
139 | + $this->assertEquals($value, $document->{'get'.ucfirst($key)}()); |
|
140 | 140 | } |
141 | 141 | } |
142 | 142 | |
@@ -434,7 +434,7 @@ discard block |
||
434 | 434 | $activeProfilesSetting = 'active_profiles'; |
435 | 435 | |
436 | 436 | $this->repository->expects($this->any())->method('findOneBy')->willReturnCallback( |
437 | - function ($arg) use ($activeProfilesSetting) { |
|
437 | + function($arg) use ($activeProfilesSetting) { |
|
438 | 438 | $settingName = $arg['name']; |
439 | 439 | $setting = new Setting(); |
440 | 440 | switch ($settingName) { |
@@ -480,7 +480,7 @@ discard block |
||
480 | 480 | $this->cookie->expects($this->any())->method('getValue')->willReturn(['foo']); |
481 | 481 | $this->cache->expects($this->any())->method('contains')->willReturn(true); |
482 | 482 | $this->cache->expects($this->any())->method('fetch')->willReturnCallback( |
483 | - function ($arg) use ($activeProfilesSetting) { |
|
483 | + function($arg) use ($activeProfilesSetting) { |
|
484 | 484 | if ($arg == $activeProfilesSetting) { |
485 | 485 | return ['foo']; |
486 | 486 | } |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | } |
147 | 147 | |
148 | 148 | /** |
149 | - * @param array $activeProfilesList |
|
149 | + * @param string[] $activeProfilesList |
|
150 | 150 | */ |
151 | 151 | public function setActiveProfilesList(array $activeProfilesList) |
152 | 152 | { |
@@ -376,7 +376,7 @@ discard block |
||
376 | 376 | * |
377 | 377 | * @param string $profile |
378 | 378 | * |
379 | - * @return array |
|
379 | + * @return \ONGR\ElasticsearchBundle\Result\ArrayIterator |
|
380 | 380 | */ |
381 | 381 | public function getProfileSettings($profile) |
382 | 382 | { |