Completed
Pull Request — master (#153)
by
unknown
26:31
created
Twig/HiddenExtension.php 1 patch
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.
Twig/WrapperExtension.php 1 patch
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.
EventListener/SettingsCookieListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     ) {
39 39
         $settingsMap = $this->generalSettingsManager->getSettingsMap();
40 40
         $cookiesServiceNames = array_map(
41
-            function ($setting) {
41
+            function($setting) {
42 42
                 return $setting['cookie'];
43 43
             },
44 44
             $settingsMap
Please login to merge, or discard this patch.
Tests/Fixtures/ElasticSearch/RepositoryTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
         $mock = $this->getMock(
85 85
             'ONGR\ElasticsearchBundle\ORM\Repository',
86 86
             ['getBundlesMapping', 'getRepository', 'find', 'remove', 'search', 'execute', 'getTypes'],
87
-            [$this->getOrmManagerMock(), ['ONGRSettingsBundle:Setting']  ]
87
+            [$this->getOrmManagerMock(), ['ONGRSettingsBundle:Setting']]
88 88
         );
89 89
 
90 90
         return $mock;
Please login to merge, or discard this patch.
Tests/Functional/Controller/UserControllerTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
         if ($shouldSucceed) {
80 80
             $this->assertContains(' already logged in', $response->getContent());
81 81
 
82
-             // Assert correct cookie has been set.
82
+                // Assert correct cookie has been set.
83 83
             /** @var Cookie $cookie */
84 84
             $cookie = $client->getCookieJar()->get('ongr_settings_user_auth');
85 85
             $this->assertSame('ongr_settings_user_auth', $cookie->getName());
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.
Settings/Personal/UnderscoreEscaper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
         $string = preg_replace_callback(
37 37
             '/[^a-zA-Z0-9_]/u',
38
-            function ($matches) {
38
+            function($matches) {
39 39
                 return '-' . bin2hex($matches[0]) . '-';
40 40
             },
41 41
             $string
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
         $string = preg_replace_callback(
61 61
             '/-([0-9a-f]+)-/u',
62
-            function ($matches) {
62
+            function($matches) {
63 63
                 return hex2bin($matches[1]);
64 64
             },
65 65
             $string
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.