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.
Jobs/test/JobsTest/Factory/Form/HiringOrganizationSelectFactoryTest.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -69,25 +69,25 @@
 block discarded – undo
69 69
         $this->user = $user;
70 70
 
71 71
         $auth = $this->getMockBuilder('Auth\AuthenticationService')
72
-                     ->disableOriginalConstructor()
73
-                     ->getMock();
72
+                        ->disableOriginalConstructor()
73
+                        ->getMock();
74 74
 
75 75
         $auth->expects($this->once())
76
-             ->method('getUser')
77
-             ->willReturn($user);
76
+                ->method('getUser')
77
+                ->willReturn($user);
78 78
 
79 79
         $services = $this->getMockBuilder('\Zend\ServiceManager\ServiceManager')
80
-                         ->disableOriginalConstructor()
81
-                         ->getMock();
80
+                            ->disableOriginalConstructor()
81
+                            ->getMock();
82 82
 
83 83
         $services->expects($this->once())
84
-                 ->method('get')
85
-                 ->with('AuthenticationService')
86
-                 ->willReturn($auth);
84
+                    ->method('get')
85
+                    ->with('AuthenticationService')
86
+                    ->willReturn($auth);
87 87
 
88 88
         $formElements = $this->getMockBuilder('\Zend\Form\FormElementManager')
89
-                             ->disableOriginalConstructor()
90
-                             ->getMock();
89
+                                ->disableOriginalConstructor()
90
+                                ->getMock();
91 91
 
92 92
         $formElements->expects($this->once())->method('getServiceLocator')->willReturn($services);
93 93
         $this->formElements = $formElements;
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Form/OrganizationSelectTest.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @license MIT
7
- * @copyright  2013 - 2016 Cross Solution <http://cross-solution.de>
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @license MIT
7
+     * @copyright  2013 - 2016 Cross Solution <http://cross-solution.de>
8
+     */
9 9
   
10 10
 /** */
11 11
 namespace JobsTest\Form;
Please login to merge, or discard this 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/Factory/Form/HiringOrganizationSelectFactory.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @license    MIT
7
- * @copyright  2013 - 2015 Cross Solution <http://cross-solution.de>
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @license    MIT
7
+     * @copyright  2013 - 2015 Cross Solution <http://cross-solution.de>
8
+     */
9 9
 
10 10
 /** */
11 11
 namespace Organizations\Form\Element;
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Factory/Form/ActiveOrganizationSelectFactory.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @license    MIT
7
- * @copyright  2013 - 2015 Cross Solution <http://cross-solution.de>
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @license    MIT
7
+     * @copyright  2013 - 2015 Cross Solution <http://cross-solution.de>
8
+     */
9 9
 
10 10
 /** */
11 11
 namespace Organizations\Form\Element;
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Repository/Job.php 2 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
6
- * @license   MIT
7
- */
3
+     * YAWIK
4
+     *
5
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
6
+     * @license   MIT
7
+     */
8 8
 
9 9
 namespace Jobs\Repository;
10 10
 
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
     {
41 41
         $qb = $this->createQueryBuilder();
42 42
         $qb->hydrate(false)
43
-           ->select('applyId')
44
-           ->field('applyId')->equals($applyId);
43
+            ->select('applyId')
44
+            ->field('applyId')->equals($applyId);
45 45
            
46 46
         $result = $qb->getQuery()->execute();
47 47
         $count = $result->count();
@@ -76,11 +76,11 @@  discard block
 block discarded – undo
76 76
     {
77 77
         $qb = $this->createQueryBuilder();
78 78
         $qb->hydrate(false)
79
-           ->select('title', 'applyId')
80
-           ->field('permissions.view')->equals($userId)
81
-           ->field('title')->equals(new \MongoRegex('/' . $query . '/i'))
82
-           ->sort('title')
83
-           ->limit(5);
79
+            ->select('title', 'applyId')
80
+            ->field('permissions.view')->equals($userId)
81
+            ->field('title')->equals(new \MongoRegex('/' . $query . '/i'))
82
+            ->sort('title')
83
+            ->limit(5);
84 84
         
85 85
         $result = $qb->getQuery()->execute();
86 86
         
@@ -138,7 +138,7 @@  discard block
 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.
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.
module/Jobs/src/Jobs/Form/OrganizationSelect.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @license    MIT
7
- * @copyright  2013 - 2016 Cross Solution <http://cross-solution.de>
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @license    MIT
7
+     * @copyright  2013 - 2016 Cross Solution <http://cross-solution.de>
8
+     */
9 9
 
10 10
 /** */
11 11
 namespace Jobs\Form;
@@ -64,10 +64,10 @@  discard block
 block discarded – undo
64 64
             $imageUrl = $image ? $image->getUri() : '';
65 65
 
66 66
             $options[$org->getId()] = $name . '|'
67
-                                      . $contact->getCity() . '|'
68
-                                      . $contact->getStreet() . '|'
69
-                                      . $contact->getHouseNumber() . '|'
70
-                                      . $imageUrl;
67
+                                        . $contact->getCity() . '|'
68
+                                        . $contact->getStreet() . '|'
69
+                                        . $contact->getHouseNumber() . '|'
70
+                                        . $imageUrl;
71 71
         }
72 72
 
73 73
         return $this->setValueOptions($options);
Please login to merge, or discard this patch.