Completed
Push — master ( c9a513...b3d424 )
by Simonas
12s
created
DependencyInjection/ONGRSettingsExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
Tests/app/AppKernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,6 +46,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Document/Setting.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Tests/Unit/Service/SettingsManagerTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.
Service/SettingsManager.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.