Completed
Push — develop ( c09155...432462 )
by
unknown
16:18
created
Jobs/test/JobsTest/Factory/Form/ActiveOrganizationSelectFactoryTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         ];
44 44
 
45 45
         $org1 = new OrganizationEntityMock($org1Values);
46
-        $orgs = [ $org1 ];
46
+        $orgs = [$org1];
47 47
 
48 48
 
49 49
         $jobRepo = $this->getMockBuilder('\Jobs\Repository\Job')->disableOriginalConstructor()->getMock();
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         $this->assertInstanceOf('\Jobs\Form\OrganizationSelect', $select);
70 70
 
71 71
         $actual = $select->getValueOptions();
72
-        $expected = [ '0' => '', 'org1' => 'Org1|Org1City|Org1Street|1|' ];
72
+        $expected = ['0' => '', 'org1' => 'Org1|Org1City|Org1Street|1|'];
73 73
 
74 74
         $this->assertEquals($expected, $actual);
75 75
     }
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Form/OrganizationSelectTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -51,9 +51,9 @@  discard block
 block discarded – undo
51 51
      */
52 52
     public function testSetAndGetHeadscripts()
53 53
     {
54
-        $this->assertEquals([ 'Jobs/js/form.organization-select.js' ], $this->target->getHeadscripts());
55
-        $this->assertSame($this->target, $this->target->setHeadscripts([ 'script1' ]), 'Fluent interface broken on "setHeadscripts"');
56
-        $this->assertEquals([ 'script1' ], $this->target->getHeadscripts());
54
+        $this->assertEquals(['Jobs/js/form.organization-select.js'], $this->target->getHeadscripts());
55
+        $this->assertSame($this->target, $this->target->setHeadscripts(['script1']), 'Fluent interface broken on "setHeadscripts"');
56
+        $this->assertEquals(['script1'], $this->target->getHeadscripts());
57 57
     }
58 58
 
59 59
     public function testSetsDefaultAttributesOnInit()
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
         ]);
79 79
 
80 80
         return [
81
-            [ [ $org1 ], false ],
82
-            [ [ $org1 ], true ],
81
+            [[$org1], false],
82
+            [[$org1], true],
83 83
         ];
84 84
 
85 85
     }
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Repository/Job.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@
 block discarded – undo
138 138
         $qb = $this->createQueryBuilder();
139 139
         $qb->distinct('organization')
140 140
             ->hydrate(true)
141
-           ->field('status.name')->notIn([ StatusInterface::EXPIRED, StatusInterface::INACTIVE ]);
141
+           ->field('status.name')->notIn([StatusInterface::EXPIRED, StatusInterface::INACTIVE]);
142 142
         $q = $qb->getQuery();
143 143
         $r = $q->execute();
144 144
         $r = $r->toArray();
Please login to merge, or discard this patch.