@@ -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 | { |
@@ -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 | { |
@@ -30,6 +30,9 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | private $setting; |
| 32 | 32 | |
| 33 | + /** |
|
| 34 | + * @param \ONGR\SettingsBundle\Document\Setting $setting |
|
| 35 | + */ |
|
| 33 | 36 | public function __construct($name, array $data = null, $setting = null) |
| 34 | 37 | { |
| 35 | 38 | $this->name = $name; |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | $container->setParameter('ongr_settings.repo', $config['repo']); |
| 36 | 36 | |
| 37 | 37 | // Set profiles. |
| 38 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 38 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 39 | 39 | $loader->load('services.yml'); |
| 40 | 40 | $loader->load('filter_manager.yml'); |
| 41 | 41 | } |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | 'value' => 'foo', |
| 131 | 131 | ]; |
| 132 | 132 | |
| 133 | - $this->manager->expects($this->once())->method('persist')->with($this->callback(function ($obj) { |
|
| 133 | + $this->manager->expects($this->once())->method('persist')->with($this->callback(function($obj) { |
|
| 134 | 134 | return $obj instanceof Setting; |
| 135 | 135 | }))->willReturn(null); |
| 136 | 136 | $this->manager->expects($this->once())->method('persist')->willReturn(null); |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | $document = $manager->create($data); |
| 143 | 143 | |
| 144 | 144 | foreach ($data as $key => $value) { |
| 145 | - $this->assertEquals($value, $document->{'get' . ucfirst($key)}()); |
|
| 145 | + $this->assertEquals($value, $document->{'get'.ucfirst($key)}()); |
|
| 146 | 146 | } |
| 147 | 147 | } |
| 148 | 148 | |
@@ -445,7 +445,7 @@ discard block |
||
| 445 | 445 | $activeProfilesSetting = 'active_profiles'; |
| 446 | 446 | |
| 447 | 447 | $this->repository->expects($this->any())->method('findOneBy')->willReturnCallback( |
| 448 | - function ($arg) use ($activeProfilesSetting) { |
|
| 448 | + function($arg) use ($activeProfilesSetting) { |
|
| 449 | 449 | $settingName = $arg['name.name']; |
| 450 | 450 | $setting = new Setting(); |
| 451 | 451 | switch ($settingName) { |
@@ -492,7 +492,7 @@ discard block |
||
| 492 | 492 | $this->cookie->expects($this->any())->method('getValue')->willReturn(['foo']); |
| 493 | 493 | $this->cache->expects($this->any())->method('contains')->willReturn(true); |
| 494 | 494 | $this->cache->expects($this->any())->method('fetch')->willReturnCallback( |
| 495 | - function ($arg) use ($activeProfilesSetting) { |
|
| 495 | + function($arg) use ($activeProfilesSetting) { |
|
| 496 | 496 | if ($arg == $activeProfilesSetting) { |
| 497 | 497 | return ['foo']; |
| 498 | 498 | } |