Completed
Pull Request — master (#168)
by
unknown
02:57
created
Event/SettingChangeEvent.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Settings/General/SettingsContainer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
     }
121 121
 
122 122
     /**
123
-     * @param array $profiles
123
+     * @param string[] $profiles
124 124
      */
125 125
     public function setProfiles($profiles)
126 126
     {
Please login to merge, or discard this patch.
Tests/Functional/Twig/PersonalSettingWidgetExtensionTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
Tests/Unit/Settings/General/SettingsContainerTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Twig/HiddenExtension.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     }
42 42
 
43 43
     /**
44
-     * @return array
44
+     * @return \Twig_SimpleFunction[]
45 45
      */
46 46
     public function getFunctions()
47 47
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
                 foreach ($value as $value2) {
111 111
                     if (!is_array($value2)) {
112 112
                         $new[] = [
113
-                            'name' => $name . '[]',
113
+                            'name' => $name.'[]',
114 114
                             'value' => $value2,
115 115
                         ];
116 116
                     }
Please login to merge, or discard this patch.
Twig/WrapperExtension.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     /**
20 20
      * Returns list of new Twig functions.
21 21
      *
22
-     * @return array
22
+     * @return \Twig_SimpleFilter[]
23 23
      */
24 24
     public function getFilters()
25 25
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         foreach ($explodedLowerCaseText as $key => $word) {
53 53
             if (in_array($word, $keywords)) {
54 54
                 // Keyword matches entire word.
55
-                $result .= $prefix . $explodedText[$key] . $suffix;
55
+                $result .= $prefix.$explodedText[$key].$suffix;
56 56
             } else {
57 57
                 foreach ($keywords as $keyword) {
58 58
                     $startPosition = strpos($word, $keyword);
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
                         $wordMiddle = substr($explodedText[$key], $startPosition, strlen($keyword));
63 63
                         $wordEnd = substr($explodedText[$key], $startPosition + strlen($keyword));
64 64
 
65
-                        $result .= $wordStart . $prefix . $wordMiddle . $suffix . $wordEnd;
65
+                        $result .= $wordStart.$prefix.$wordMiddle.$suffix.$wordEnd;
66 66
 
67 67
                         if ($lastElementKey !== $key) {
68 68
                             $result .= ' ';
Please login to merge, or discard this patch.
Tests/Unit/EventListener/ProfileRequestListenerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
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],
Please login to merge, or discard this patch.
Tests/Unit/DependencyInjection/Compiler/SettingsModifierPassTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
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
                 )
Please login to merge, or discard this patch.
DependencyInjection/Compiler/ProviderPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.