Passed
Push — master ( 97bca0...c3d0da )
by Carsten
19:24 queued 12:32
created
module/Jobs/test/JobsTest/Factory/Listener/DeleteJobFactoryTest.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,15 +50,15 @@
 block discarded – undo
50 50
         $acl = new Acl();
51 51
         $user = new User();
52 52
         $auth = $this
53
-	        ->getMockBuilder(AuthenticationService::class)
53
+            ->getMockBuilder(AuthenticationService::class)
54 54
             ->disableOriginalConstructor()
55 55
             ->setMethods(['getUser'])
56 56
             ->getMock()
57 57
         ;
58 58
 
59 59
         $auth->expects($this->once())
60
-             ->method('getUser')
61
-             ->will($this->returnValue($user))
60
+                ->method('getUser')
61
+                ->will($this->returnValue($user))
62 62
         ;
63 63
 
64 64
         $repository = $this->getMockBuilder(Job::class)->disableOriginalConstructor()->getMock();
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
         '@testCreateService' => ['mock' => ['__invoke']],
44 44
     ];
45 45
 
46
-    private $inheritance = [ FactoryInterface::class ];
46
+    private $inheritance = [FactoryInterface::class];
47 47
 
48 48
     public function testInvokation()
49 49
     {
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Factory/Listener/MailSenderFactoryTest.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -43,17 +43,17 @@
 block discarded – undo
43 43
         ));
44 44
 
45 45
         $services = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager')
46
-                         ->disableOriginalConstructor()
47
-                         ->getMock();
46
+                            ->disableOriginalConstructor()
47
+                            ->getMock();
48 48
 
49 49
         $services->expects($this->exactly(3))
50
-                 ->method('get')
51
-                 ->withConsecutive(
50
+                    ->method('get')
51
+                    ->withConsecutive(
52 52
                     array('Core/MailService'),
53 53
                     array('Jobs/Options'),
54 54
                     array('Core/Options')
55
-                 )
56
-                 ->will($this->onConsecutiveCalls($mailService, $jobsOptions, $coreOptions));
55
+                    )
56
+                    ->will($this->onConsecutiveCalls($mailService, $jobsOptions, $coreOptions));
57 57
 
58 58
         $expectedOptions = array(
59 59
             'siteName' => $coreOptions->getSiteName(),
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
         );
62 62
 
63 63
         $target = new MailSenderFactory();
64
-        $listener = $target->__invoke($services,'irrelevant');
64
+        $listener = $target->__invoke($services, 'irrelevant');
65 65
 
66 66
         $this->assertInstanceOf('\Jobs\Listener\MailSender', $listener);
67 67
         $this->assertAttributeSame($mailService, 'mailer', $listener);
Please login to merge, or discard this patch.
Jobs/test/JobsTest/Factory/Listener/LoadActiveOrganizationsFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         '@testCreateService' => ['mock' => ['__invoke' => ['count' => 1]]],
42 42
     ];
43 43
 
44
-    private $inheritance = [ FactoryInterface::class ];
44
+    private $inheritance = [FactoryInterface::class];
45 45
 	
46 46
 
47 47
     public function testServiceCreation()
Please login to merge, or discard this patch.
test/JobsTest/Factory/Paginator/ActiveOrganizationsPaginatorFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         '@testCreateService' => ['mock' => ['__invoke' => ['count' => 1]]],
43 43
     ];
44 44
 
45
-    private $inheritance = [ FactoryInterface::class ];
45
+    private $inheritance = [FactoryInterface::class];
46 46
 	
47 47
     public function testServiceCreation()
48 48
     {
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Factory/Model/ApiJobDehydratorFactoryTest.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,12 +55,12 @@
 block discarded – undo
55 55
                 ->willReturn($urlHelper);
56 56
 
57 57
         $serviceManagerMock = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager')
58
-                                   ->disableOriginalConstructor()
59
-                                   ->getMock();
58
+                                    ->disableOriginalConstructor()
59
+                                    ->getMock();
60 60
 
61 61
         $serviceManagerMock->expects($this->once())->method('get')
62
-                           ->with('ViewHelperManager')
63
-                           ->willReturn($helpers);
62
+                            ->with('ViewHelperManager')
63
+                            ->willReturn($helpers);
64 64
 
65 65
         $service = $target->__invoke($serviceManagerMock,'irrelevant');
66 66
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
                            ->with('ViewHelperManager')
63 63
                            ->willReturn($helpers);
64 64
 
65
-        $service = $target->__invoke($serviceManagerMock,'irrelevant');
65
+        $service = $target->__invoke($serviceManagerMock, 'irrelevant');
66 66
 
67 67
         $this->assertInstanceOf('\Jobs\Model\ApiJobDehydrator', $service);
68 68
         $this->assertAttributeSame($urlHelper, 'url', $service);
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Auth/Dependency/ListListenerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@
 block discarded – undo
139 139
             ->with($this->equalTo($userId), $this->equalTo($limit))
140 140
             ->willReturn($cursor);
141 141
         
142
-        $actual = $this->listListener->getItems($user, $view , $limit);
142
+        $actual = $this->listListener->getItems($user, $view, $limit);
143 143
         
144 144
         $this->assertInternalType('array', $actual);
145 145
         $this->assertCount(1, $actual);
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Controller/AdminCategoriesControllerTest.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -91,16 +91,16 @@  discard block
 block discarded – undo
91 91
                     [['value' => 'employmentTypes']],
92 92
                     [['value' => 'industries']]
93 93
                 )->will($this->onConsecutiveCalls(
94
-                                     $professions,
95
-                                     $industries,
96
-                                     $types
97
-                                 ));
94
+                                        $professions,
95
+                                        $industries,
96
+                                        $types
97
+                                    ));
98 98
         } else {
99 99
             $repository->expects($this->exactly(3))->method('findOneBy')
100
-                       ->withConsecutive(
101
-                       [['value' => 'professions']],
102
-                       [['value' => 'employmentTypes']],
103
-                       [['value' => 'industries']]
100
+                        ->withConsecutive(
101
+                        [['value' => 'professions']],
102
+                        [['value' => 'employmentTypes']],
103
+                        [['value' => 'industries']]
104 104
                 )->willReturn(null);
105 105
         }
106 106
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
                 ->with($this->isInstanceOf(Category::class));
116 116
         } else if ($postRequest) {
117 117
             $repositories->expects($this->exactly(1))->method('store')
118
-                         ->with($this->isInstanceOf(Category::class));
118
+                            ->with($this->isInstanceOf(Category::class));
119 119
 
120 120
         }
121 121
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -37,9 +37,9 @@  discard block
 block discarded – undo
37 37
 
38 38
     private $target = AdminCategoriesController::class;
39 39
 
40
-    private $inheritance = [ AbstractActionController::class ];
40
+    private $inheritance = [AbstractActionController::class];
41 41
 
42
-    private function getConfiguredServiceManager($rootExists=true, $postRequest = false)
42
+    private function getConfiguredServiceManager($rootExists = true, $postRequest = false)
43 43
     {
44 44
         $form = $this
45 45
             ->getMockBuilder(CategoriesContainer::class)
@@ -70,11 +70,11 @@  discard block
 block discarded – undo
70 70
                 ->setMethods(['__invoke'])->getMock();
71 71
             $helper->expects($this->once())->method('__invoke')->with($subForm);
72 72
 
73
-            $viewHelpers = $this->createPluginManagerMock(['summaryForm' => $helper],$sm);
73
+            $viewHelpers = $this->createPluginManagerMock(['summaryForm' => $helper], $sm);
74 74
         } else {
75
-            $viewHelpers = $this->createPluginManagerMock([],$sm);
75
+            $viewHelpers = $this->createPluginManagerMock([], $sm);
76 76
         }
77
-        $forms = $this->createPluginManagerMock(['Jobs/AdminCategories' => $form],$sm);
77
+        $forms = $this->createPluginManagerMock(['Jobs/AdminCategories' => $form], $sm);
78 78
 
79 79
         $repository = $this->getMockBuilder(AbstractRepository::class)
80 80
             ->disableOriginalConstructor()
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Repository/CategoriesTest.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -61,16 +61,16 @@  discard block
 block discarded – undo
61 61
             ->getMock();
62 62
 
63 63
         $dm = $this->getMockBuilder(DocumentManager::class)
64
-                   ->disableOriginalConstructor()
64
+                    ->disableOriginalConstructor()
65 65
                     ->setMethods(['getEventManager'])
66
-                   ->getMock();
66
+                    ->getMock();
67 67
 
68 68
         $dm->expects($this->once())->method('getEventManager')->willReturn($evm);
69 69
 
70 70
         $persister = $this->getMockBuilder(DocumentPersister::class)
71
-                          ->disableOriginalConstructor()
72
-                          ->setMethods(['load', 'loadAll'])
73
-                          ->getMock();
71
+                            ->disableOriginalConstructor()
72
+                            ->setMethods(['load', 'loadAll'])
73
+                            ->getMock();
74 74
 
75 75
         $cursor = $this->getMockBuilder(Cursor::class)
76 76
                         ->disableOriginalConstructor()
@@ -90,8 +90,8 @@  discard block
 block discarded – undo
90 90
         $uow->expects($this->exactly(2))->method('getDocumentPersister')->willReturn($persister);
91 91
 
92 92
         $meta = $this->getMockBuilder(ClassMetadata::class)
93
-                     ->disableOriginalConstructor()
94
-                     ->getMock();
93
+                        ->disableOriginalConstructor()
94
+                        ->getMock();
95 95
         $meta->name = 'idonotcare';
96 96
 
97 97
         return [$dm, $uow, $meta];
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         Categories::class,
46 46
         'args' => false,
47 47
         'mock' => ['getService', 'store'],
48
-        '@testInheritance' => [Categories::class, 'as_reflection' => true ],
48
+        '@testInheritance' => [Categories::class, 'as_reflection' => true],
49 49
         '@testFindByCreatesDefaultCategory' => [
50 50
             'args' => 'setupTargetArgsForFindTests',
51 51
             'mock' => ['createDefaultCategory' => 2],
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Entity/Decorator/JsonLdProviderTest.php 2 patches
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
         $organization->setOrganizationName($name);
58 58
         if ($withOrganization) {
59 59
             $job->setOrganization($organization);
60
-        }else{
60
+        } else{
61 61
             $job->setCompany("Company Name");
62 62
         }
63 63
         $job->setTitle('Test JsonLdProvider');
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,9 +51,9 @@  discard block
 block discarded – undo
51 51
         ]
52 52
     ];
53 53
 
54
-    private $inheritance = [ JsonLdProviderInterface::class ];
54
+    private $inheritance = [JsonLdProviderInterface::class];
55 55
 
56
-    private function getJob($withOrganization=true, $withDatePublishStart=true, $withSalary=false)
56
+    private function getJob($withOrganization = true, $withDatePublishStart = true, $withSalary = false)
57 57
     {
58 58
         $job = new Job();
59 59
         $organization = new Organization();
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         $organization->setOrganizationName($name);
62 62
         if ($withOrganization) {
63 63
             $job->setOrganization($organization);
64
-        }else{
64
+        } else {
65 65
             $job->setCompany("Company Name");
66 66
         }
67 67
         $job->setTitle('Test JsonLdProvider');
Please login to merge, or discard this patch.