Passed
Push — master ( c58a40...6d37ad )
by Mathias
10:02 queued 04:27
created
module/Jobs/test/JobsTest/Acl/WriteAssertionTest.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -70,13 +70,13 @@  discard block
 block discarded – undo
70 70
         foreach (array($role, $user) as $testObj) {
71 71
             // non user is always false?
72 72
             foreach ($privileges as $p) {
73
-                $this->assertFalse((bool)$target->assert($acl, $testObj, null, $p));
73
+                $this->assertFalse((bool) $target->assert($acl, $testObj, null, $p));
74 74
             }
75 75
 
76 76
             // user and wrong privilege is false?
77 77
             foreach ($privileges as $p) {
78 78
                 // Casting null to false is safe here, 'edit' for pair user-privilege tested after
79
-                $this->assertFalse((bool)$target->assert($acl, $testObj, $job, $p));
79
+                $this->assertFalse((bool) $target->assert($acl, $testObj, $job, $p));
80 80
             }
81 81
         }
82 82
     }
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     public function testAssertWithoutOrganisation($input, $expected)
125 125
     {
126
-        $method="assert".($expected?"True":"False");
126
+        $method = "assert".($expected ? "True" : "False");
127 127
 
128 128
         $this->$method(
129 129
                 $this->target->assert(
@@ -160,9 +160,9 @@  discard block
 block discarded – undo
160 160
 
161 161
 
162 162
         return [
163
-            [[new Acl(), null, null, null] , false ],
164
-            [[new Acl(), null, null, Permissions::PERMISSION_CHANGE] , false ],
165
-            [[new Acl(), $user, $jobMock, 'edit'] , true ],
163
+            [[new Acl(), null, null, null], false],
164
+            [[new Acl(), null, null, Permissions::PERMISSION_CHANGE], false],
165
+            [[new Acl(), $user, $jobMock, 'edit'], true],
166 166
         ];
167 167
     }
168 168
 
@@ -189,8 +189,8 @@  discard block
 block discarded – undo
189 189
         $this->assertTrue(
190 190
             $this->target->assert(
191 191
                 new Acl(), // acl
192
-                $user,     // role
193
-                $jobMock,  // resource
192
+                $user, // role
193
+                $jobMock, // resource
194 194
                 'edit'     // privilege
195 195
             )
196 196
         );
@@ -223,8 +223,8 @@  discard block
 block discarded – undo
223 223
         $this->assertTrue(
224 224
             $this->target->assert(
225 225
                 new Acl(), // acl
226
-                $user,     // role
227
-                $jobMock,  // resource
226
+                $user, // role
227
+                $jobMock, // resource
228 228
                 'edit'     // privilege
229 229
             )
230 230
         );
@@ -264,8 +264,8 @@  discard block
 block discarded – undo
264 264
         $this->assertTrue(
265 265
             $this->target->assert(
266 266
                 new Acl(), // acl
267
-                $user,     // role
268
-                $jobMock,  // resource
267
+                $user, // role
268
+                $jobMock, // resource
269 269
                 'edit'     // privilege
270 270
             )
271 271
         );
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
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
             ->getMock();
73 73
         $translator->expects($this->once())
74 74
             ->method('translate')
75
-            ->with($this->callback(function ($string) {
75
+            ->with($this->callback(function($string) {
76 76
                 return is_string($string);
77 77
             }))
78 78
             ->willReturn($expected);
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Entity/StatusTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -52,13 +52,13 @@
 block discarded – undo
52 52
     public function provideCreatingInstancesTestData()
53 53
     {
54 54
         return array(
55
-            array(Status::CREATED,              Status::CREATED               , 10),
56
-            array(Status::WAITING_FOR_APPROVAL, Status::WAITING_FOR_APPROVAL  , 20),
57
-            array(Status::REJECTED,             Status::REJECTED              , 30),
58
-            array(Status::PUBLISH,              Status::PUBLISH               , 40),
59
-            array(Status::ACTIVE,               Status::ACTIVE                , 50),
60
-            array(Status::INACTIVE,             Status::INACTIVE              , 60),
61
-            array(Status::EXPIRED,              Status::EXPIRED               , 70),
55
+            array(Status::CREATED, Status::CREATED, 10),
56
+            array(Status::WAITING_FOR_APPROVAL, Status::WAITING_FOR_APPROVAL, 20),
57
+            array(Status::REJECTED, Status::REJECTED, 30),
58
+            array(Status::PUBLISH, Status::PUBLISH, 40),
59
+            array(Status::ACTIVE, Status::ACTIVE, 50),
60
+            array(Status::INACTIVE, Status::INACTIVE, 60),
61
+            array(Status::EXPIRED, Status::EXPIRED, 70),
62 62
         );
63 63
     }
64 64
 
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Entity/Decorator/JsonLdProviderTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,9 +53,9 @@
 block discarded – undo
53 53
         ]
54 54
     ];
55 55
 
56
-    private $inheritance = [ JsonLdProviderInterface::class ];
56
+    private $inheritance = [JsonLdProviderInterface::class];
57 57
 
58
-    private function getJob($withOrganization=true, $withDatePublishStart=true, $withSalary=false)
58
+    private function getJob($withOrganization = true, $withDatePublishStart = true, $withSalary = false)
59 59
     {
60 60
         $job = new Job();
61 61
         $organization = new Organization();
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
@@ -34,9 +34,9 @@  discard block
 block discarded – undo
34 34
 
35 35
     private $target = Classifications::class;
36 36
 
37
-    private $inheritance = [ EntityInterface::class ];
37
+    private $inheritance = [EntityInterface::class];
38 38
 
39
-    private $traits = [ EntityTrait::class ];
39
+    private $traits = [EntityTrait::class];
40 40
 
41 41
     public function propertiesProvider()
42 42
     {
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         $profs = new EmbeddedLeafs();
45 45
         return [
46 46
             ['employmentTypes', ['value' => $types, 'default@' => EmbeddedLeafs::class]],
47
-            ['professions',  ['value' => $profs, 'default@' => EmbeddedLeafs::class]],
47
+            ['professions', ['value' => $profs, 'default@' => EmbeddedLeafs::class]],
48 48
         ];
49 49
     }
50 50
 }
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Form/AtsModeFieldsetTest.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -84,9 +84,9 @@  discard block
 block discarded – undo
84 84
     public function testInitialization()
85 85
     {
86 86
         $target = $this->getMockBuilder('\Jobs\Form\AtsModeFieldset')
87
-                       ->disableOriginalConstructor()
88
-                       ->setMethods(array('add', 'setName'))
89
-                       ->getMock();
87
+                        ->disableOriginalConstructor()
88
+                        ->setMethods(array('add', 'setName'))
89
+                        ->getMock();
90 90
 
91 91
         $target->expects($this->once())->method('setName')->with('atsMode');
92 92
 
@@ -152,12 +152,12 @@  discard block
 block discarded – undo
152 152
         ];
153 153
 
154 154
         $target->expects($this->exactly(5))->method('add')
155
-               ->withConsecutive(
156
-                   array($addSelect),
157
-                   array($addUri),
158
-                   array($addEmail),
159
-                   array($addOneClickApply),
160
-                   array($addOneClickApplyProfiles)
155
+                ->withConsecutive(
156
+                    array($addSelect),
157
+                    array($addUri),
158
+                    array($addEmail),
159
+                    array($addOneClickApply),
160
+                    array($addOneClickApplyProfiles)
161 161
                 );
162 162
 
163 163
         $target->init();
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/View/Helper/ApplyButtonsTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -71,8 +71,8 @@  discard block
 block discarded – undo
71 71
         $this->view->expects($this->once())
72 72
             ->method('partial')
73 73
             ->with(
74
-                dirname($this->viewModel->getTemplate()) . '/' . $this->helper->getPartial(),
75
-                $this->callback(function (array $variables) {
74
+                dirname($this->viewModel->getTemplate()).'/'.$this->helper->getPartial(),
75
+                $this->callback(function(array $variables) {
76 76
                     return $variables['default'] && $variables['oneClick'] === [];
77 77
                 })
78 78
             );
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         
90 90
         $this->view->expects($this->once())
91 91
             ->method('partial')
92
-            ->with(dirname($this->viewModel->getTemplate()) . '/' . $options['partial']);
92
+            ->with(dirname($this->viewModel->getTemplate()).'/'.$options['partial']);
93 93
         
94 94
         $helper = $this->helper;
95 95
         $helper($this->validData(), $options);
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
             ->method('partial')
106 106
             ->with(
107 107
                 $this->anything(),
108
-                $this->callback(function (array $variables) {
108
+                $this->callback(function(array $variables) {
109 109
                     return $variables['default'] === null;
110 110
                 })
111 111
             );
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
             ->method('partial')
125 125
             ->with(
126 126
                 $this->anything(),
127
-                $this->callback(function (array $variables) use ($options) {
127
+                $this->callback(function(array $variables) use ($options) {
128 128
                     return $variables['default']['label'] === $options['defaultLabel'];
129 129
                 })
130 130
             );
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
             ->method('partial')
146 146
             ->with(
147 147
                 $this->anything(),
148
-                $this->callback(function (array $variables) use ($options) {
148
+                $this->callback(function(array $variables) use ($options) {
149 149
                     foreach ($variables['oneClick'] as $button) {
150 150
                         if ($button['label'] !== sprintf($options['oneClickLabel'], $button['network'])) {
151 151
                             return false;
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
             ->method('url')
173 173
             ->with(
174 174
                 'lang/apply-one-click',
175
-                $this->callback(function (array $variables) use ($options) {
175
+                $this->callback(function(array $variables) use ($options) {
176 176
                     return $variables['immediately'] === $options['sendImmediately'];
177 177
                 })
178 178
             );
Please login to merge, or discard this patch.
Applications/test/ApplicationsTest/Factory/Form/JobSelectFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
         ],
44 44
     ];
45 45
 
46
-    private $inheritance = [ FactoryInterface::class ];
46
+    private $inheritance = [FactoryInterface::class];
47 47
 
48 48
     public function testCreateService()
49 49
     {
Please login to merge, or discard this patch.
module/Applications/test/ApplicationsTest/Entity/CommentTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 
60 60
     public function testSetGetMessage()
61 61
     {
62
-        $message="this message";
62
+        $message = "this message";
63 63
         $this->target->setMessage($message);
64 64
         $this->assertEquals($this->target->getMessage(), $message);
65 65
     }
Please login to merge, or discard this patch.