Completed
Push — master ( dc4dd2...16100a )
by Mathias
08:39
created
module/Core/test/CoreTestUtils/TestCase/SetupTargetTrait.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -282,10 +282,10 @@
 block discarded – undo
282 282
                         'return'  => isset($methodSpec['@return'])
283 283
                                      ? $call((array) $methodSpec['@return'])
284 284
                                      : (
285
-                                         isset($methodSpec['return'])
285
+                                            isset($methodSpec['return'])
286 286
                                         ? ('__self__' === $methodSpec['return'] ? $this->returnSelf() : $this->returnValue($methodSpec['return']))
287 287
                                         : null
288
-                                       ),
288
+                                        ),
289 289
                     ];
290 290
                 }
291 291
             }
Please login to merge, or discard this patch.
module/Core/test/CoreTestUtils/TestCase/TestSetterGetterTrait.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
         $errTmpl = __METHOD__ . ': ' . get_class($this);
186 186
         if (!property_exists($this, 'target') || (!is_object($this->target) && !isset($spec['target']))) {
187 187
             throw new PHPUnitException($errTmpl
188
-                                                   . ' must define the property "target" and the value must be an object.');
188
+                                                    . ' must define the property "target" and the value must be an object.');
189 189
         }
190 190
 
191 191
         if (!is_array($spec)) {
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
         }
400 400
 
401 401
         $err = __TRAIT__ . ': ' . get_class($this) . ': Setter ' . get_class($this->target) . '::' . $setter
402
-               . ($expect === $this->target ? ' breaks fluent interface.' : ' does not return expected value.');
402
+                . ($expect === $this->target ? ' breaks fluent interface.' : ' does not return expected value.');
403 403
 
404 404
 
405 405
         if (false === $args) {
Please login to merge, or discard this patch.
module/Core/test/TestConfig.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,10 +4,10 @@  discard block
 block discarded – undo
4 4
 
5 5
 use PHPUnit\Framework\TestCase;
6 6
     'modules' => array_merge(
7
-    	include_once __DIR__.'/../../../config/common.modules.php',
8
-	    array(
7
+        include_once __DIR__.'/../../../config/common.modules.php',
8
+        array(
9 9
             'Core', 'Auth', 'Jobs', 'Applications', 'Organizations'
10
-	    )
10
+        )
11 11
     ),
12 12
 
13 13
     // These are various options for the listeners attached to the ModuleManager
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     //     ),
66 66
     // )
67 67
 
68
-   // Initial configuration with which to seed the ServiceManager.
69
-   // Should be compatible with Zend\ServiceManager\Config.
70
-   // 'service_manager' => array(),
68
+    // Initial configuration with which to seed the ServiceManager.
69
+    // Should be compatible with Zend\ServiceManager\Config.
70
+    // 'service_manager' => array(),
71 71
 );
72 72
\ No newline at end of file
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Form/CompanyNameFieldsetTest.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -34,9 +34,9 @@  discard block
 block discarded – undo
34 34
     protected function setUp(): void
35 35
     {
36 36
         $this->target = $this->getMockBuilder('\Jobs\Form\CompanyNameFieldset')
37
-                             ->disableOriginalConstructor()
38
-                             ->setMethods(array('setAttribute', 'setName', 'add'))
39
-                             ->getMock();
37
+                                ->disableOriginalConstructor()
38
+                                ->setMethods(array('setAttribute', 'setName', 'add'))
39
+                                ->getMock();
40 40
     }
41 41
 
42 42
     /**
@@ -53,12 +53,12 @@  discard block
 block discarded – undo
53 53
     public function testInitialization()
54 54
     {
55 55
         $this->target->expects($this->once())
56
-                     ->method('setAttribute')
57
-                     ->with('id', 'jobcompanyname-fieldset');
56
+                        ->method('setAttribute')
57
+                        ->with('id', 'jobcompanyname-fieldset');
58 58
 
59 59
         $this->target->expects($this->once())
60
-                     ->method('setName')
61
-                     ->with('jobCompanyName');
60
+                        ->method('setName')
61
+                        ->with('jobCompanyName');
62 62
 
63 63
         $addParam1 = array(
64 64
             'type' => 'Jobs/HiringOrganizationSelect',
@@ -93,10 +93,10 @@  discard block
 block discarded – undo
93 93
             ];
94 94
 
95 95
         $this->target->expects($this->exactly(2))
96
-                     ->method('add')
97
-                     ->withConsecutive(
98
-                         [$addParam1],
99
-                         [$addParam2]
96
+                        ->method('add')
97
+                        ->withConsecutive(
98
+                            [$addParam1],
99
+                            [$addParam2]
100 100
                     );
101 101
 
102 102
         $this->target->init();
Please login to merge, or discard this patch.
module/Auth/test/AuthTest/Service/ForgotPasswordTest.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -71,12 +71,12 @@  discard block
 block discarded – undo
71 71
             ->getMock();
72 72
 
73 73
         $this->loginFilterMock = $this->getMockBuilder('Auth\Filter\LoginFilter')
74
-                                         ->disableOriginalConstructor()
75
-                                         ->getMock();
74
+                                            ->disableOriginalConstructor()
75
+                                            ->getMock();
76 76
 
77 77
         $this->optionsMock = $this->getMockBuilder('Auth\Options\ModuleOptions')
78
-                                         ->disableOriginalConstructor()
79
-                                         ->getMock();
78
+                                            ->disableOriginalConstructor()
79
+                                            ->getMock();
80 80
 
81 81
         $this->testedObject = new ForgotPassword($this->userRepositoryMock, $this->tokenGeneratorMock, $this->loginFilterMock, $this->optionsMock);
82 82
 
@@ -149,8 +149,8 @@  discard block
 block discarded – undo
149 149
     }
150 150
 
151 151
     /**
152
-    * @todo fix or delete
153
-    */
152
+     * @todo fix or delete
153
+     */
154 154
     /*
155 155
     public function testProceed()
156 156
     {
Please login to merge, or discard this patch.
Factory/EventManager/EventManagerAbstractFactory/AttachListenersTest.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -46,13 +46,13 @@  discard block
 block discarded – undo
46 46
     protected function setUp(): void
47 47
     {
48 48
         $this->target = $this->getMockBuilder('\Core\Factory\EventManager\EventManagerAbstractFactory')
49
-                             ->setMethods([ 'createEventManager', 'getConfig' ])
50
-                             ->getMock();
49
+                                ->setMethods([ 'createEventManager', 'getConfig' ])
50
+                                ->getMock();
51 51
 
52 52
         $events = $this->getMockBuilder('\Zend\EventManager\EventManager')
53
-                       ->disableOriginalConstructor()
54
-                       ->setMethods(['attach'])
55
-                       ->getMock();
53
+                        ->disableOriginalConstructor()
54
+                        ->setMethods(['attach'])
55
+                        ->getMock();
56 56
 
57 57
         $this->target->expects($this->once())->method('createEventManager')->willReturn($events);
58 58
         $this->events = $events;
@@ -67,8 +67,8 @@  discard block
 block discarded – undo
67 67
     protected function getServiceManagerMock($listeners, $expectLazyListeners = false)
68 68
     {
69 69
         $services = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager')
70
-                         ->disableOriginalConstructor()
71
-                         ->getMock();
70
+                            ->disableOriginalConstructor()
71
+                            ->getMock();
72 72
 
73 73
 
74 74
         $hasMap = [ ];
@@ -101,8 +101,8 @@  discard block
 block discarded – undo
101 101
         ;
102 102
 
103 103
         $services->expects($this->exactly(count($getMap)))
104
-                 ->method('get')
105
-                 ->will($this->returnValueMap($getMap))
104
+                    ->method('get')
105
+                    ->will($this->returnValueMap($getMap))
106 106
         ;
107 107
 
108 108
         return $services;
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
     public function testCallsAttachOnListenerAggregates()
167 167
     {
168 168
         $aggregateMock = $this->getMockBuilder('\Zend\EventManager\ListenerAggregateInterface')
169
-                              ->getMockForAbstractClass();
169
+                                ->getMockForAbstractClass();
170 170
         $aggregateMock->expects($this->exactly(2))->method('attach')->withConsecutive([ $this->events, 1], [$this->events, -100]);
171 171
         
172 172
         $this->setTargetListenerConfig(['TestAggregate', 'TestAggregate2' => -100]);
Please login to merge, or discard this patch.
Factory/EventManager/EventManagerAbstractFactory/CreateEventManagerTest.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@  discard block
 block discarded – undo
41 41
     protected function setUp(): void
42 42
     {
43 43
         $this->target = $this->getMockBuilder('\Core\Factory\EventManager\EventManagerAbstractFactory')
44
-                             ->setMethods([ 'attachListeners', 'getConfig' ])
45
-                             ->getMock();
44
+                                ->setMethods([ 'attachListeners', 'getConfig' ])
45
+                                ->getMock();
46 46
     }
47 47
 
48 48
     protected function setTargetConfig($config)
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
     protected function getServiceManagerMock($events, $args = [])
70 70
     {
71 71
         $services = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager')
72
-                         ->disableOriginalConstructor()
73
-                         ->getMock();
72
+                            ->disableOriginalConstructor()
73
+                            ->getMock();
74 74
 
75 75
 
76 76
         if (is_Array($events)) {
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             ->will($this->returnValueMap($hasMap))
102 102
         ;
103 103
         $services->expects($this->exactly(count($getMap)))
104
-                 ->method('get')->will($this->returnValueMap($getMap));
104
+                    ->method('get')->will($this->returnValueMap($getMap));
105 105
 
106 106
         return $services;
107 107
     }
@@ -179,9 +179,9 @@  discard block
 block discarded – undo
179 179
     {
180 180
         $event = new \Zend\EventManager\Event();
181 181
         $events = $this->getMockBuilder('\Zend\EventManager\EventManager')
182
-                       ->disableOriginalConstructor()
183
-                       ->setMethods(['setIdentifiers', 'setEventPrototype'])
184
-                       ->getMock()
182
+                        ->disableOriginalConstructor()
183
+                        ->setMethods(['setIdentifiers', 'setEventPrototype'])
184
+                        ->getMock()
185 185
         ;
186 186
         $events
187 187
             ->expects($this->once())
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Controller/AdminControllerTest.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,10 +43,10 @@
 block discarded – undo
43 43
 
44 44
     protected function setUp(): void
45 45
     {
46
-	    $events = $this->getMockBuilder(EventManager::class)
47
-	                   ->setMethods(['getEvent', 'triggerEvent'])
48
-	                   ->getMock();
49
-	    $this->target = new AdminController($events);
46
+        $events = $this->getMockBuilder(EventManager::class)
47
+                        ->setMethods(['getEvent', 'triggerEvent'])
48
+                        ->getMock();
49
+        $this->target = new AdminController($events);
50 50
     }
51 51
 
52 52
     public function testIndexAction()
Please login to merge, or discard this patch.
module/Core/test/CoreTest/Form/DefaultButtonsFieldsetTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,8 +35,8 @@
 block discarded – undo
35 35
     }
36 36
 
37 37
     /**
38
-    * @todo
39
-    */
38
+     * @todo
39
+     */
40 40
     /*
41 41
     public function testInit()
42 42
     {
Please login to merge, or discard this patch.