Completed
Push — master ( dc4dd2...16100a )
by Mathias
08:39
created
module/Auth/test/AuthTest/Entity/UserTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -63,10 +63,10 @@  discard block
 block discarded – undo
63 63
     public function provideRoleTestData()
64 64
     {
65 65
         return array(
66
-            array(null,                 User::ROLE_USER),
67
-            array(User::ROLE_ADMIN,     User::ROLE_ADMIN),
66
+            array(null, User::ROLE_USER),
67
+            array(User::ROLE_ADMIN, User::ROLE_ADMIN),
68 68
             array(User::ROLE_RECRUITER, User::ROLE_RECRUITER),
69
-            array(User::ROLE_USER,      User::ROLE_USER),
69
+            array(User::ROLE_USER, User::ROLE_USER),
70 70
         );
71 71
     }
72 72
     /**
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     public function provideInfoTestData()
85 85
     {
86 86
         return array(
87
-            array(new Info(),     new Info()),
87
+            array(new Info(), new Info()),
88 88
         );
89 89
     }
90 90
     /**
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
     public function provideTokenTestData()
177 177
     {
178 178
         return array(
179
-            array(new Token(),     new Token()),
179
+            array(new Token(), new Token()),
180 180
         );
181 181
     }
182 182
 }
Please login to merge, or discard this patch.
module/Auth/test/AuthTest/Entity/AuthSessionTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,8 +60,8 @@  discard block
 block discarded – undo
60 60
 
61 61
     public function provideSessionTestData()
62 62
     {
63
-        $data = ["a"=>"b","c"=>[1,2,3,4]];
64
-        $serialized=serialize($data);
63
+        $data = ["a"=>"b", "c"=>[1, 2, 3, 4]];
64
+        $serialized = serialize($data);
65 65
 
66 66
         return [
67 67
             [$data, $data],
@@ -91,9 +91,9 @@  discard block
 block discarded – undo
91 91
         $timezone = new \DateTimeZone(getenv('TIMEZONE'));
92 92
         $date = "2015-01-12 12:11:06";
93 93
         return [
94
-            [null,                 new \DateTime('now', $timezone)],
94
+            [null, new \DateTime('now', $timezone)],
95 95
             [new \DateTime($date), new \DateTime($date, $timezone)],
96
-            [$date,                new \DateTime($date, $timezone)],
96
+            [$date, new \DateTime($date, $timezone)],
97 97
         ];
98 98
     }
99 99
     /**
Please login to merge, or discard this patch.
module/Auth/test/AuthTest/Options/CaptchaOptionsTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
             'imgDir' => 'public/captcha',
93 93
             'imgUrl' => '/captcha'
94 94
             ];
95
-        $target=$this->options;
95
+        $target = $this->options;
96 96
         $target->setImage($params);
97 97
 
98 98
         $this->assertSame($target->getImage(), $params);
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     public function testSetGetReCaptcha()
106 106
     {
107 107
         $params = new ReCaptcha();
108
-        $target=$this->options;
108
+        $target = $this->options;
109 109
         $target->setReCaptcha($params);
110 110
         $this->assertSame($target->getReCaptcha(), $params);
111 111
     }
Please login to merge, or discard this patch.
Auth/test/AuthTest/Listener/SocialProfilesUnconfiguredErrorListenerTest.php 2 patches
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -40,8 +40,8 @@  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' ])
44
-               ->willReturn('worked');
43
+                ->method('attach')->with(MvcEvent::EVENT_DISPATCH_ERROR, [ $target, 'onDispatchError' ])
44
+                ->willReturn('worked');
45 45
 
46 46
         $this->assertSame($target, $target->attach($events), 'Fluent interface broken');
47 47
         $this->assertAttributeEquals(['worked'], 'listeners', $target);
@@ -50,15 +50,15 @@  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 ],
61
-       ];
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
+        ];
62 62
     }
63 63
 
64 64
     /**
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
         $event = $this->getMockBuilder('\Zend\Mvc\MvcEvent')->disableOriginalConstructor()->getMock();
79 79
 
80 80
         $event->expects($this->once())
81
-              ->method('getParam')->with('exception')
82
-              ->willReturn($exception);
81
+                ->method('getParam')->with('exception')
82
+                ->willReturn($exception);
83 83
 
84 84
         if ($useValidModel) {
85 85
             $model = $this->getMockBuilder('\Zend\View\Model\ViewModel')->disableOriginalConstructor()->getMock();
@@ -89,16 +89,16 @@  discard block
 block discarded – undo
89 89
                 $model->expects($this->never())->method('setTemplate');
90 90
             }
91 91
             $event->expects($this->once())
92
-                  ->method('getError')
93
-                  ->willReturn($useValidError ? Application::ERROR_EXCEPTION : 'NotMatchError');
92
+                    ->method('getError')
93
+                    ->willReturn($useValidError ? Application::ERROR_EXCEPTION : 'NotMatchError');
94 94
         } else {
95 95
             $model = 'not a view model instance';
96 96
             $event->expects($this->never())->method('getError');
97 97
         }
98 98
 
99 99
         $event->expects($this->once())
100
-              ->method('getResult')
101
-              ->willReturn($model);
100
+                ->method('getResult')
101
+                ->willReturn($model);
102 102
 
103 103
         $target->onDispatchError($event);
104 104
     }
Please login to merge, or discard this 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/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/TestConfig.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
     //     ),
59 59
     // )
60 60
 
61
-   // Initial configuration with which to seed the ServiceManager.
62
-   // Should be compatible with Zend\ServiceManager\Config.
63
-   // 'service_manager' => array(),
61
+    // Initial configuration with which to seed the ServiceManager.
62
+    // Should be compatible with Zend\ServiceManager\Config.
63
+    // 'service_manager' => array(),
64 64
 );
65 65
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
     // This should be an array of module namespaces used in the application.
6 6
 
7 7
 use PHPUnit\Framework\TestCase;
8
-    'modules' => array_merge($commonModules,array(
8
+    'modules' => array_merge($commonModules, array(
9 9
         'Install',
10 10
     )),
11 11
 
Please login to merge, or discard this patch.
module/Install/test/InstallTest/ModuleTest.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,8 +99,8 @@
 block discarded – undo
99 99
         $application->expects($this->once())->method('getServiceManager')->willReturn($services);
100 100
 
101 101
         $event = $this->getMockBuilder('\Zend\Mvc\MvcEvent')
102
-                      ->disableOriginalConstructor()
103
-                      ->getMock();
102
+                        ->disableOriginalConstructor()
103
+                        ->getMock();
104 104
 
105 105
         $event->expects($this->once())->method('getApplication')->willReturn($application);
106 106
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
     protected function setUp(): void
50 50
     {
51
-        $this->moduleDir = realpath(__DIR__ . '/../../');
51
+        $this->moduleDir = realpath(__DIR__.'/../../');
52 52
         $this->target    = new Module();
53 53
     }
54 54
     /**
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
     public function testProvidesCorrectConfigArray()
64 64
     {
65
-        $config = include $this->moduleDir . '/config/module.config.php';
65
+        $config = include $this->moduleDir.'/config/module.config.php';
66 66
 
67 67
         $this->assertEquals($config, $this->target->getConfig());
68 68
     }
Please login to merge, or discard this patch.
Applications/test/ApplicationsTest/Factory/Form/StatusSelectFactoryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,12 +39,12 @@
 block discarded – undo
39 39
         StatusSelectFactory::class,
40 40
         '@testCreateService' => [
41 41
             'mock' => [
42
-                '__invoke' => ['@with' => 'getInvokeMockArgs','count' => 1]
42
+                '__invoke' => ['@with' => 'getInvokeMockArgs', 'count' => 1]
43 43
             ]
44 44
         ],
45 45
     ];
46 46
 
47
-    private $inheritance = [ FactoryInterface::class ];
47
+    private $inheritance = [FactoryInterface::class];
48 48
 
49 49
     private function getInvokeMockArgs()
50 50
     {
Please login to merge, or discard this patch.
test/ApplicationsTest/Factory/Listener/JobSelectValuesFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         ],
45 45
     ];
46 46
 
47
-    private $inheritance = [ FactoryInterface::class ];
47
+    private $inheritance = [FactoryInterface::class];
48 48
 
49 49
     private function getInvokeArgs()
50 50
     {
Please login to merge, or discard this patch.