Completed
Push — develop ( 928e2a...e40e4d )
by Mathias
28:01 queued 20:22
created
module/Auth/test/AuthTest/Form/RegisterTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -81,20 +81,20 @@  discard block
 block discarded – undo
81 81
         $options = new CaptchaOptions();
82 82
         $options->setMode("reCaptcha");
83 83
         $testedObject = new Register(null, $options);
84
-        $captchaInput= $testedObject->get('captcha');
84
+        $captchaInput = $testedObject->get('captcha');
85 85
         $this->assertInstanceOf('Zend\Form\Element\Captcha', $captchaInput);
86 86
         $this->assertInstanceOf('Zend\Captcha\ReCaptcha', $captchaInput->getOption('captcha'));
87 87
     }
88 88
     
89 89
     public function testWithImageField()
90 90
     {
91
-	    if (! function_exists("imageftbbox")) {
91
+	    if (!function_exists("imageftbbox")) {
92 92
 		    return $this->markTestSkipped('This test requires GD FT fonts support');
93 93
 	    }
94 94
         $options = new CaptchaOptions();
95 95
         $options->setMode("image");
96 96
         $testedObject = new Register(null, $options);
97
-        $captchaInput= $testedObject->get('captcha');
97
+        $captchaInput = $testedObject->get('captcha');
98 98
         $this->assertInstanceOf('Zend\Captcha\Image', $captchaInput->getOption('captcha'));
99 99
     }
100 100
     
@@ -103,6 +103,6 @@  discard block
 block discarded – undo
103 103
         $options = new CaptchaOptions();
104 104
         $testedObject = new Register(null, $options, 'user');
105 105
         $roleField = $testedObject->get('register')->get('role');
106
-        $this->assertTrue($roleField->getValue() =='user');
106
+        $this->assertTrue($roleField->getValue() == 'user');
107 107
     }
108 108
 }
Please login to merge, or discard this patch.
module/Auth/test/AuthTest/Service/RegisterTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     public function testProceed_WhenUserAlreadyExists()
113 113
     {
114 114
         $name = uniqid('name');
115
-        $email = uniqid('email') . '@' . uniqid('host') . '.com.pl';
115
+        $email = uniqid('email').'@'.uniqid('host').'.com.pl';
116 116
         $user = UserEntityProvider::createEntityWithRandomData();
117 117
         $role = 'user';
118 118
 
@@ -155,8 +155,8 @@  discard block
 block discarded – undo
155 155
      */
156 156
     public function testProceed($role)
157 157
     {
158
-        $name = uniqid('name') . ' ' . uniqid('surname');
159
-        $email = uniqid('email') . '@' . uniqid('host') . '.com.pl';
158
+        $name = uniqid('name').' '.uniqid('surname');
159
+        $email = uniqid('email').'@'.uniqid('host').'.com.pl';
160 160
         $user = UserEntityProvider::createEntityWithRandomData();
161 161
         $confirmationLink = uniqid('confirmationLink');
162 162
         $self = $this;
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 
189 189
         $this->userRepositoryMock->expects($this->once())
190 190
             ->method('store')
191
-            ->with($this->callback(function ($user) use ($self) {
191
+            ->with($this->callback(function($user) use ($self) {
192 192
                 $self->assertInstanceOf('Auth\Entity\User', $user);
193 193
 
194 194
                 return $user;
Please login to merge, or discard this patch.
Auth/test/AuthTest/Listener/SocialProfilesUnconfiguredErrorListenerTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
         $events = $this->getMockBuilder('\Zend\EventManager\EventManager')->disableOriginalConstructor()->getMock();
42 42
         $events->expects($this->once())
43
-               ->method('attach')->with(MvcEvent::EVENT_DISPATCH_ERROR, [ $target, 'onDispatchError' ])
43
+               ->method('attach')->with(MvcEvent::EVENT_DISPATCH_ERROR, [$target, 'onDispatchError'])
44 44
                ->willReturn('worked');
45 45
 
46 46
         $this->assertSame($target, $target->attach($events), 'Fluent interface broken');
@@ -50,14 +50,14 @@  discard block
 block discarded – undo
50 50
     public function provideTestData()
51 51
     {
52 52
         return [
53
-           [ true, true, true, true ],
54
-           [ false, true, true, false ],
55
-           [ true, false, true, false ],
56
-           [ true, true, false, false ],
57
-           [ false, false, true, false ],
58
-           [ false, true, false, false ],
59
-           [ true, false, false, false ],
60
-           [ false, false, false, false ],
53
+           [true, true, true, true],
54
+           [false, true, true, false],
55
+           [true, false, true, false],
56
+           [true, true, false, false],
57
+           [false, false, true, false],
58
+           [false, true, false, false],
59
+           [true, false, false, false],
60
+           [false, false, false, false],
61 61
        ];
62 62
     }
63 63
 
Please login to merge, or discard this patch.
module/Auth/test/AuthTest/Listener/DeactivatedUserListenerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
             ->getMock();
82 82
         $this->serviceManager->expects($this->any())
83 83
             ->method('get')
84
-            ->will($this->returnCallback(function ($name)
84
+            ->will($this->returnCallback(function($name)
85 85
             {
86 86
                 switch ($name)
87 87
                 {
Please login to merge, or discard this patch.
module/Auth/test/AuthTest/Listener/TokenListenerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 
58 58
         $events->expects($this->once())
59 59
                ->method('detach')
60
-               ->with($expCallback,'Zend\Mvc\Application')
60
+               ->with($expCallback, 'Zend\Mvc\Application')
61 61
                ->willReturn(true);
62 62
 
63 63
 
Please login to merge, or discard this patch.
module/Auth/src/Auth/Module.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     public function getConfig()
41 41
     {
42
-        return ModuleConfigLoader::load(__DIR__ . '/../../config');
42
+        return ModuleConfigLoader::load(__DIR__.'/../../config');
43 43
     }
44 44
 
45 45
     /**
@@ -71,10 +71,10 @@  discard block
 block discarded – undo
71 71
                 // This is an hack due to bad design of Hybridauth
72 72
                 // This ensures the class from "addtional-providers" is loaded.
73 73
                 array(
74
-                    'Hybrid_Providers_XING' => $addProvidersDir . '/hybridauth-xing/Providers/XING.php',
74
+                    'Hybrid_Providers_XING' => $addProvidersDir.'/hybridauth-xing/Providers/XING.php',
75 75
                 ),
76 76
                 array(
77
-                    'Hybrid_Providers_Github' => $addProvidersDir. '/hybridauth-github/Providers/GitHub.php',
77
+                    'Hybrid_Providers_Github' => $addProvidersDir.'/hybridauth-github/Providers/GitHub.php',
78 78
                 ),
79 79
             ),
80 80
         );
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
             
91 91
         $eventManager->attach(
92 92
             MvcEvent::EVENT_ROUTE,
93
-            function (MvcEvent $e) use ($services) {
93
+            function(MvcEvent $e) use ($services) {
94 94
                 /* @var $checkPermissionsListener \Acl\Listener\CheckPermissionsListener */
95 95
                 $checkPermissionsListener = $services->get('Auth/CheckPermissionsListener');
96 96
                 $checkPermissionsListener->onRoute($e);
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 
101 101
         $eventManager->attach(
102 102
             MvcEvent::EVENT_DISPATCH,
103
-            function (MvcEvent $e) use ($services) {
103
+            function(MvcEvent $e) use ($services) {
104 104
                 /** @var CheckPermissionsListener $checkPermissionsListener */
105 105
                 $checkPermissionsListener = $services->get('Auth/CheckPermissionsListener');
106 106
                 $checkPermissionsListener->onDispatch($e);
Please login to merge, or discard this patch.
module/Install/test/autoload_classmap.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 // Generated by ZF2's ./bin/classmap_generator.php
3 3
 return array(
4
-  'InstallTest\Controller\Plugin\PrerequisitesTest'      => __DIR__ . '/InstallTest/Controller/Plugin/PrerequisitesTest.php',
5
-  'InstallTest\Controller\Plugin\YawikConfigCreatorTest' => __DIR__ . '/InstallTest/Controller/Plugin/YawikConfigCreatorTest.php',
6
-  'InstallTest\Form\InstallationTest'                    => __DIR__ . '/InstallTest/Form/InstallationTest.php',
7
-  'InstallTest\Validator\MongoDbConnectionStringTest'    => __DIR__ . '/InstallTest/Validator/MongoDbConnectionStringTest.php',
4
+  'InstallTest\Controller\Plugin\PrerequisitesTest'      => __DIR__.'/InstallTest/Controller/Plugin/PrerequisitesTest.php',
5
+  'InstallTest\Controller\Plugin\YawikConfigCreatorTest' => __DIR__.'/InstallTest/Controller/Plugin/YawikConfigCreatorTest.php',
6
+  'InstallTest\Form\InstallationTest'                    => __DIR__.'/InstallTest/Form/InstallationTest.php',
7
+  'InstallTest\Validator\MongoDbConnectionStringTest'    => __DIR__.'/InstallTest/Validator/MongoDbConnectionStringTest.php',
8 8
 );
Please login to merge, or discard this patch.
module/Install/test/TestConfig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 
4 4
 return array(
5 5
     // This should be an array of module namespaces used in the application.
6
-    'modules' => array_merge($commonModules,array(
6
+    'modules' => array_merge($commonModules, array(
7 7
         'Install',
8 8
     )),
9 9
 
Please login to merge, or discard this patch.
module/Install/test/InstallTest/ModuleTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 
47 47
     public function setUp()
48 48
     {
49
-        $this->moduleDir = realpath(__DIR__ . '/../../');
49
+        $this->moduleDir = realpath(__DIR__.'/../../');
50 50
         $this->target    = new Module();
51 51
     }
52 52
     /**
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
     public function testProvidesCorrectConfigArray()
62 62
     {
63
-        $config = include $this->moduleDir . '/config/module.config.php';
63
+        $config = include $this->moduleDir.'/config/module.config.php';
64 64
 
65 65
         $this->assertEquals($config, $this->target->getConfig());
66 66
     }
Please login to merge, or discard this patch.