Passed
Push — develop ( 86ca6f...0e6a78 )
by Mathias
22:00 queued 14:21
created
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
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,9 +47,9 @@  discard block
 block discarded – undo
47 47
         ],
48 48
     ];
49 49
 
50
-    private $inheritance = [ JsonLdProviderInterface::class ];
50
+    private $inheritance = [JsonLdProviderInterface::class];
51 51
 
52
-    private function getJob($withOrganization=true, $withDatePublishStart=true)
52
+    private function getJob($withOrganization = true, $withDatePublishStart = true)
53 53
     {
54 54
         $job = new Job();
55 55
         $organization = new Organization();
@@ -57,7 +57,7 @@  discard block
 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.
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.
module/Jobs/test/JobsTest/Entity/JobsTest.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -60,9 +60,9 @@  discard block
 block discarded – undo
60 60
      */
61 61
     private $target = Job::class;
62 62
 
63
-    private $inheritance = [ MetaDataProviderInterface::class ];
63
+    private $inheritance = [MetaDataProviderInterface::class];
64 64
 
65
-    private $traits = [ MetaDataProviderTrait::class ];
65
+    private $traits = [MetaDataProviderTrait::class];
66 66
 
67 67
 
68 68
     /**
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
      */
175 175
     public function testSetGetPortals()
176 176
     {
177
-        $link = array('jobsintown-de','yawik');
177
+        $link = array('jobsintown-de', 'yawik');
178 178
         $this->target->setPortals($link);
179 179
         $this->assertEquals($link, $this->target->getPortals());
180 180
     }
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 
242 242
     public function provideDates()
243 243
     {
244
-        $date="2011-01-12";
244
+        $date = "2011-01-12";
245 245
         return [
246 246
             [$date, new \DateTime($date)],
247 247
             [new \DateTime($date), new \DateTime($date)],
@@ -251,12 +251,12 @@  discard block
 block discarded – undo
251 251
     public function provideSetGetStatusTestData()
252 252
     {
253 253
         return array(
254
-            array(Status::CREATED,  Status::CREATED),
255
-            array(Status::ACTIVE,   Status::ACTIVE),
256
-            array(Status::EXPIRED,  Status::EXPIRED),
257
-            array(Status::PUBLISH,  Status::PUBLISH),
254
+            array(Status::CREATED, Status::CREATED),
255
+            array(Status::ACTIVE, Status::ACTIVE),
256
+            array(Status::EXPIRED, Status::EXPIRED),
257
+            array(Status::PUBLISH, Status::PUBLISH),
258 258
             array(Status::INACTIVE, Status::INACTIVE),
259
-            array(Status::ACTIVE,   Status::ACTIVE),
259
+            array(Status::ACTIVE, Status::ACTIVE),
260 260
         );
261 261
     }
262 262
     /**
@@ -286,8 +286,8 @@  discard block
 block discarded – undo
286 286
     public function provideSetGetAtsEnabledTestData()
287 287
     {
288 288
         return array(
289
-            array(true,    true),
290
-            array(false,   false),
289
+            array(true, true),
290
+            array(false, false),
291 291
         );
292 292
     }
293 293
     /**
@@ -305,8 +305,8 @@  discard block
 block discarded – undo
305 305
     public function provideSetGetDraftTestData()
306 306
     {
307 307
         return array(
308
-            array(true,    true),
309
-            array(false,   false),
308
+            array(true, true),
309
+            array(false, false),
310 310
         );
311 311
     }
312 312
     /**
@@ -324,8 +324,8 @@  discard block
 block discarded – undo
324 324
     public function provideSetGetTemplateTestData()
325 325
     {
326 326
         return array(
327
-            array(null,           'default'),
328
-            array('mytemplate',   'mytemplate'),
327
+            array(null, 'default'),
328
+            array('mytemplate', 'mytemplate'),
329 329
         );
330 330
     }
331 331
     /**
@@ -343,9 +343,9 @@  discard block
 block discarded – undo
343 343
     public function provideIsActiveTestData()
344 344
     {
345 345
         return array(
346
-            array(true,  Status::ACTIVE, false),
346
+            array(true, Status::ACTIVE, false),
347 347
             array(false, Status::ACTIVE, true),
348
-            array(true,  Status::INACTIVE,false),
348
+            array(true, Status::INACTIVE, false),
349 349
             array(false, Status::INACTIVE, false),
350 350
         );
351 351
     }
@@ -592,7 +592,7 @@  discard block
 block discarded – undo
592 592
 
593 593
     public function testGetSnapshotGenerator()
594 594
     {
595
-        $expected =    array(
595
+        $expected = array(
596 596
             'hydrator' => '',
597 597
             'target' => 'Jobs\Entity\JobSnapshot',
598 598
             'exclude' => array('permissions', 'history')
@@ -637,7 +637,7 @@  discard block
 block discarded – undo
637 637
 
638 638
     public function setDescription($description)
639 639
     {
640
-        $this->description=$description;
640
+        $this->description = $description;
641 641
         return $this;
642 642
     }
643 643
     public function getDescription()
@@ -646,7 +646,7 @@  discard block
 block discarded – undo
646 646
     }
647 647
     public function setTest($test)
648 648
     {
649
-        $this->test=$test;
649
+        $this->test = $test;
650 650
         return $this;
651 651
     }
652 652
     public function getTest()
Please login to merge, or discard this patch.