Passed
Push — master ( 97bca0...c3d0da )
by Carsten
19:24 queued 12:32
created
module/Jobs/test/JobsTest/Entity/HistoryTest.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -91,9 +91,9 @@  discard block
 block discarded – undo
91 91
     
92 92
     
93 93
     /**
94
-    * @covers Jobs\Entity\History::setDate
95
-    * @covers Jobs\Entity\History::getDate
96
-    */
94
+     * @covers Jobs\Entity\History::setDate
95
+     * @covers Jobs\Entity\History::getDate
96
+     */
97 97
     public function testSetGetDate()
98 98
     {
99 99
         $date=new \DateTime("2017-02-28 11:11:11");
@@ -103,9 +103,9 @@  discard block
 block discarded – undo
103 103
     }
104 104
     
105 105
     /**
106
-    * @covers Jobs\Entity\History::setMessage
107
-    * @covers Jobs\Entity\History::getMessage
108
-    */
106
+     * @covers Jobs\Entity\History::setMessage
107
+     * @covers Jobs\Entity\History::getMessage
108
+     */
109 109
     public function testSetGetMessage()
110 110
     {
111 111
         $message="my message";
@@ -115,9 +115,9 @@  discard block
 block discarded – undo
115 115
     }
116 116
     
117 117
     /**
118
-    * @covers Jobs\Entity\History::setStatus
119
-    * @covers Jobs\Entity\History::getStatus
120
-    */
118
+     * @covers Jobs\Entity\History::setStatus
119
+     * @covers Jobs\Entity\History::getStatus
120
+     */
121 121
     public function testSetGetStatus()
122 122
     {
123 123
         $status=new Status(Status::CREATED);
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -50,13 +50,13 @@  discard block
 block discarded – undo
50 50
     public function provideCreatingInstancesTestData()
51 51
     {
52 52
         return array(
53
-            array(Status::CREATED,               null       , new Status(Status::CREATED),              "[System]"),
54
-            array(Status::WAITING_FOR_APPROVAL, 'message2'  , new Status(Status::WAITING_FOR_APPROVAL), "message2"),
55
-            array(Status::REJECTED,             'message3'  , new Status(Status::REJECTED),             "message3"),
56
-            array(Status::PUBLISH,              'message4'  , new Status(Status::PUBLISH),              "message4"),
57
-            array(Status::ACTIVE,               'message5'  , new Status(Status::ACTIVE),               "message5"),
58
-            array(Status::INACTIVE,             'message6'  , new Status(Status::INACTIVE),             "message6"),
59
-            array(Status::EXPIRED,              'message7'  , new Status(Status::EXPIRED),              "message7"),
53
+            array(Status::CREATED, null, new Status(Status::CREATED), "[System]"),
54
+            array(Status::WAITING_FOR_APPROVAL, 'message2', new Status(Status::WAITING_FOR_APPROVAL), "message2"),
55
+            array(Status::REJECTED, 'message3', new Status(Status::REJECTED), "message3"),
56
+            array(Status::PUBLISH, 'message4', new Status(Status::PUBLISH), "message4"),
57
+            array(Status::ACTIVE, 'message5', new Status(Status::ACTIVE), "message5"),
58
+            array(Status::INACTIVE, 'message6', new Status(Status::INACTIVE), "message6"),
59
+            array(Status::EXPIRED, 'message7', new Status(Status::EXPIRED), "message7"),
60 60
         );
61 61
     }
62 62
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
     */
97 97
     public function testSetGetDate()
98 98
     {
99
-        $date=new \DateTime("2017-02-28 11:11:11");
99
+        $date = new \DateTime("2017-02-28 11:11:11");
100 100
         $this->target->setDate($date);
101 101
 
102 102
         $this->assertEquals($date, $this->target->getDate());
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     */
109 109
     public function testSetGetMessage()
110 110
     {
111
-        $message="my message";
111
+        $message = "my message";
112 112
         $this->target->setMessage($message);
113 113
 
114 114
         $this->assertEquals($message, $this->target->getMessage());
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
     */
121 121
     public function testSetGetStatus()
122 122
     {
123
-        $status=new Status(Status::CREATED);
123
+        $status = new Status(Status::CREATED);
124 124
         $this->target->setStatus($status);
125 125
         $this->assertEquals($status, $this->target->getStatus());
126 126
     }
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Entity/AtsModeTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
     public function provideBoolean()
181 181
     {
182 182
         return [
183
-            [true,true],
183
+            [true, true],
184 184
             [false, false],
185 185
             [null, false]
186 186
         ];
@@ -197,9 +197,9 @@  discard block
 block discarded – undo
197 197
 
198 198
     public function provideArrays()
199 199
     {
200
-        $array = ['facebook','linkedin','xing'];
200
+        $array = ['facebook', 'linkedin', 'xing'];
201 201
         return [
202
-            [$array,$array],
202
+            [$array, $array],
203 203
         ];
204 204
     }
205 205
 }
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Entity/TemplateValuesTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -85,11 +85,11 @@
 block discarded – undo
85 85
             array('setDescription', 'getDescription', 'test2'),
86 86
             array('setTitle', 'getTitle', 'test2'),
87 87
             array('setLanguage', 'getLanguage', 'test2'),
88
-            array(null , 'getRequirements', ''),
89
-            array(null , 'getBenefits', ''),
90
-            array(null , 'getQualifications', ''),
91
-            array(null , 'getTitle', ''),
92
-            array(null , 'getLanguage', 'en'),
88
+            array(null, 'getRequirements', ''),
89
+            array(null, 'getBenefits', ''),
90
+            array(null, 'getQualifications', ''),
91
+            array(null, 'getTitle', ''),
92
+            array(null, 'getLanguage', 'en'),
93 93
         );
94 94
     }
95 95
 }
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Entity/CoordinatesTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
      */
64 64
     public function testSetGetCoordinates()
65 65
     {
66
-        $input = [50,8];
66
+        $input = [50, 8];
67 67
         $this->target->setCoordinates($input);
68 68
         $this->assertEquals($input, $this->target->getCoordinates());
69 69
     }
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Entity/JobSnapshotStatusTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         'as_reflection' => true,
36 36
     ];
37 37
 
38
-    private $inheritance = [ AbstractStatus::class ];
38
+    private $inheritance = [AbstractStatus::class];
39 39
 
40 40
     public function testStatusConstants()
41 41
     {
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Entity/ClassificationsTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,9 +32,9 @@  discard block
 block discarded – undo
32 32
 
33 33
     private $target = Classifications::class;
34 34
 
35
-    private $inheritance = [ EntityInterface::class ];
35
+    private $inheritance = [EntityInterface::class];
36 36
 
37
-    private $traits = [ EntityTrait::class ];
37
+    private $traits = [EntityTrait::class];
38 38
 
39 39
     public function propertiesProvider()
40 40
     {
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         $profs = new EmbeddedLeafs();
43 43
         return [
44 44
             ['employmentTypes', ['value' => $types, 'default@' => EmbeddedLeafs::class]],
45
-            ['professions',  ['value' => $profs, 'default@' => EmbeddedLeafs::class]],
45
+            ['professions', ['value' => $profs, 'default@' => EmbeddedLeafs::class]],
46 46
         ];
47 47
     }
48 48
 }
49 49
\ No newline at end of file
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Entity/CategoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,5 +28,5 @@
 block discarded – undo
28 28
 
29 29
     private $target = Category::class;
30 30
 
31
-    private $inheritance = [ Node::class ];
31
+    private $inheritance = [Node::class];
32 32
 }
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Entity/StatusTest.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -50,13 +50,13 @@  discard block
 block discarded – undo
50 50
     public function provideCreatingInstancesTestData()
51 51
     {
52 52
         return array(
53
-            array(Status::CREATED,              Status::CREATED               , 10),
54
-            array(Status::WAITING_FOR_APPROVAL, Status::WAITING_FOR_APPROVAL  , 20),
55
-            array(Status::REJECTED,             Status::REJECTED              , 30),
56
-            array(Status::PUBLISH,              Status::PUBLISH               , 40),
57
-            array(Status::ACTIVE,               Status::ACTIVE                , 50),
58
-            array(Status::INACTIVE,             Status::INACTIVE              , 60),
59
-            array(Status::EXPIRED,              Status::EXPIRED               , 70),
53
+            array(Status::CREATED, Status::CREATED, 10),
54
+            array(Status::WAITING_FOR_APPROVAL, Status::WAITING_FOR_APPROVAL, 20),
55
+            array(Status::REJECTED, Status::REJECTED, 30),
56
+            array(Status::PUBLISH, Status::PUBLISH, 40),
57
+            array(Status::ACTIVE, Status::ACTIVE, 50),
58
+            array(Status::INACTIVE, Status::INACTIVE, 60),
59
+            array(Status::EXPIRED, Status::EXPIRED, 70),
60 60
         );
61 61
     }
62 62
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         $target = new Status('highly invalid status name');
91 91
     }
92 92
 
93
-    public function testGetStates(){
93
+    public function testGetStates() {
94 94
         $expected = [
95 95
             Status::CREATED,
96 96
             Status::WAITING_FOR_APPROVAL,
@@ -100,10 +100,10 @@  discard block
 block discarded – undo
100 100
             Status::INACTIVE,
101 101
             Status::EXPIRED
102 102
         ];
103
-        $this->assertEquals($expected,$this->target->getStates());
103
+        $this->assertEquals($expected, $this->target->getStates());
104 104
     }
105 105
 
106
-    public function testToString(){
106
+    public function testToString() {
107 107
         $state = new Status(StatusInterface::INACTIVE);
108 108
         $this->assertEquals(StatusInterface::INACTIVE, (string) $state);
109 109
     }
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Options/ChannelOptionsTest.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function testSetGetLabel()
33 33
     {
34
-        $label="Jobsintown";
34
+        $label = "Jobsintown";
35 35
 
36 36
         $this->options->setLabel($label);
37 37
         $this->assertEquals($label, $this->options->getLabel());
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function testSetGetKey()
45 45
     {
46
-        $key="jobsintown";
46
+        $key = "jobsintown";
47 47
 
48 48
         $this->options->setKey($key);
49 49
         $this->assertEquals($key, $this->options->getKey());
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function testSetGetPrice()
57 57
     {
58
-        $key='test';
59
-        $price=199;
58
+        $key = 'test';
59
+        $price = 199;
60 60
         $this->options->setPrice($key, $price);
61 61
         $this->assertEquals($price, $this->options->getPrice($key));
62 62
     }
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public function testSetGetTax()
85 85
     {
86
-        $tax='21';
86
+        $tax = '21';
87 87
 
88 88
         $this->options->setTax($tax);
89 89
         $this->assertEquals($tax, $this->options->getTax());
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      */
96 96
     public function testSetGetCurrency()
97 97
     {
98
-        $currency="EUR";
98
+        $currency = "EUR";
99 99
 
100 100
         $this->options->setCurrency($currency);
101 101
         $this->assertEquals($currency, $this->options->getCurrency());
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
      */
108 108
     public function testSetGetPublishDuration()
109 109
     {
110
-        $days=60;
110
+        $days = 60;
111 111
 
112 112
         $this->options->setPublishDuration($days);
113 113
         $this->assertEquals($days, $this->options->getPublishDuration());
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      */
120 120
     public function testSetGetExternalKey()
121 121
     {
122
-        $key="1234";
122
+        $key = "1234";
123 123
 
124 124
         $this->options->setExternalkey($key);
125 125
         $this->assertEquals($key, $this->options->getExternalkey());
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      */
132 132
     public function testSetGetCategory()
133 133
     {
134
-        $category="Technical Jobs";
134
+        $category = "Technical Jobs";
135 135
 
136 136
         $this->options->setCategory($category);
137 137
         $this->assertEquals($category, $this->options->getCategory());
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      */
144 144
     public function testSetGetHeadline()
145 145
     {
146
-        $headline="Post Jobs on YAWIK";
146
+        $headline = "Post Jobs on YAWIK";
147 147
 
148 148
         $this->options->setHeadLine($headline);
149 149
         $this->assertEquals($headline, $this->options->getHeadLine());
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      */
156 156
     public function testSetGetDescription()
157 157
     {
158
-        $description="Post Jobs on YAWIK";
158
+        $description = "Post Jobs on YAWIK";
159 159
 
160 160
         $this->options->setDescription($description);
161 161
         $this->assertEquals($description, $this->options->getDescription());
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
      */
168 168
     public function testSetGetLinkText()
169 169
     {
170
-        $linkText="YAWIK";
170
+        $linkText = "YAWIK";
171 171
 
172 172
         $this->options->setLinkText($linkText);
173 173
         $this->assertEquals($linkText, $this->options->getLinkText());
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
      */
180 180
     public function testSetGetRoute()
181 181
     {
182
-        $route="YAWIK";
182
+        $route = "YAWIK";
183 183
 
184 184
         $this->options->setRoute($route);
185 185
         $this->assertEquals($route, $this->options->getRoute());
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
      */
192 192
     public function testSetGetParams()
193 193
     {
194
-        $p=array(
194
+        $p = array(
195 195
                     'view' => 'jobs-publish-on-jobsintown'
196 196
         );
197 197
 
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
      */
206 206
     public function testSetGetLogo()
207 207
     {
208
-        $input="test.logo.gif";
208
+        $input = "test.logo.gif";
209 209
         $this->options->setLogo($input);
210 210
         $this->assertEquals($input, $this->options->getLogo());
211 211
     }
Please login to merge, or discard this patch.