Completed
Push — master ( 811327...4aef6e )
by Carsten
14:04 queued 19s
created
Jobs/src/Factory/Controller/ApiJobListByOrganizationControllerFactory.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
         /** @var \Jobs\Model\ApiJobDehydrator $apiJobDehydrator */
36 36
         $apiJobDehydrator = $container->get('Jobs\Model\ApiJobDehydrator');
37 37
 
38
-        $filterStatus = function ($value) {
38
+        $filterStatus = function($value) {
39 39
             static $validValues = [
40 40
                 StatusInterface::ACTIVE,
41 41
                 StatusInterface::CREATED,
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Controller/AdminCategoriesControllerTest.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -96,13 +96,13 @@  discard block
 block discarded – undo
96 96
                     $professions,
97 97
                     $industries,
98 98
                     $types
99
-                                 ));
99
+                                    ));
100 100
         } else {
101 101
             $repository->expects($this->exactly(3))->method('findOneBy')
102
-                       ->withConsecutive(
103
-                           [['value' => 'professions']],
104
-                           [['value' => 'employmentTypes']],
105
-                           [['value' => 'industries']]
102
+                        ->withConsecutive(
103
+                            [['value' => 'professions']],
104
+                            [['value' => 'employmentTypes']],
105
+                            [['value' => 'industries']]
106 106
                 )->willReturn(null);
107 107
         }
108 108
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
                 ->with($this->isInstanceOf(Category::class));
118 118
         } elseif ($postRequest) {
119 119
             $repositories->expects($this->exactly(1))->method('store')
120
-                         ->with($this->isInstanceOf(Category::class));
120
+                            ->with($this->isInstanceOf(Category::class));
121 121
         }
122 122
 
123 123
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,9 +39,9 @@
 block discarded – undo
39 39
 
40 40
     private $target = AdminCategoriesController::class;
41 41
 
42
-    private $inheritance = [ AbstractActionController::class ];
42
+    private $inheritance = [AbstractActionController::class];
43 43
 
44
-    private function getConfiguredServiceManager($rootExists=true, $postRequest = false)
44
+    private function getConfiguredServiceManager($rootExists = true, $postRequest = false)
45 45
     {
46 46
         $form = $this
47 47
             ->getMockBuilder(CategoriesContainer::class)
Please login to merge, or discard this patch.
test/JobsTest/Factory/Repository/DefaultCategoriesBuilderFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
         vfsStream::setup('/');
77 77
         vfsStream::create($isJobs ? ['module' => ['Jobs' => []]] : ['module' => []]);
78 78
         $expectModulePath = $isJobs ? vfsStream::url('./module/Jobs/config/') : '.';
79
-        $config['module_paths'] = array_map(function ($i) {
79
+        $config['module_paths'] = array_map(function($i) {
80 80
             return vfsStream::url($i);
81 81
         }, $config['module_paths']);
82 82
 
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Factory/Form/MultipostingSelectFactoryTest.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -48,19 +48,19 @@  discard block
 block discarded – undo
48 48
         $channelOptions  = new ChannelOptions();
49 49
 
50 50
         $channelOptions->setCategory('testCat')
51
-                       ->setCurrency('€')
52
-                       ->setDescription('testDesc')
53
-                       ->setExternalkey('testExtKey')
54
-                       ->setHeadLine('testHL')
55
-                       ->setKey('testKey')
56
-                       ->setLabel('testLabel')
57
-                       ->setLinkText('testLinkTxt')
58
-                       ->setLogo('testLogo')
59
-                       ->setParams(array('test' => 'params'))
60
-                       ->setPrice('test', 1234)
61
-                       ->setPublishDuration(10)
62
-                       ->setRoute('testRoute')
63
-                       ->setTax(19);
51
+                        ->setCurrency('€')
52
+                        ->setDescription('testDesc')
53
+                        ->setExternalkey('testExtKey')
54
+                        ->setHeadLine('testHL')
55
+                        ->setKey('testKey')
56
+                        ->setLabel('testLabel')
57
+                        ->setLinkText('testLinkTxt')
58
+                        ->setLogo('testLogo')
59
+                        ->setParams(array('test' => 'params'))
60
+                        ->setPrice('test', 1234)
61
+                        ->setPublishDuration(10)
62
+                        ->setRoute('testRoute')
63
+                        ->setTax(19);
64 64
 
65 65
         $providerOptions->addChannel($channelOptions);
66 66
 
@@ -106,8 +106,8 @@  discard block
 block discarded – undo
106 106
         );
107 107
 
108 108
         $services->expects($this->exactly(3))
109
-                 ->method('get')
110
-                 ->will($this->returnValueMap($servicesMap))
109
+                    ->method('get')
110
+                    ->will($this->returnValueMap($servicesMap))
111 111
         ;
112 112
 
113 113
         $target = new MultipostingSelectFactory();
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Factory/Form/InputFilter/TestJobLocationEdit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 
55 55
     public function testTrimAndStripTagsFromJobTitle()
56 56
     {
57
-        $expected="title (m/w)";
57
+        $expected = "title (m/w)";
58 58
         $output = $this->inputFilter->getInputs();
59 59
         $filter = $output['title']->getFilterChain();
60 60
         $this->assertEquals($expected, $filter->filter(' <b>title</b> (m/w)'));
Please login to merge, or discard this patch.
Jobs/test/JobsTest/Factory/Form/ActiveOrganizationSelectFactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         '@testCreateService' => ['mock' => ['__invoke' => ['count' => 1]]],
46 46
     ];
47 47
 
48
-    private $inheritance = [ FactoryInterface::class ];
48
+    private $inheritance = [FactoryInterface::class];
49 49
 
50 50
 
51 51
     public function testCreateService()
Please login to merge, or discard this patch.
module/Jobs/test/JobsTest/Listener/MailSenderTest.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -109,9 +109,9 @@
 block discarded – undo
109 109
                        ->disableOriginalConstructor()
110 110
                        ->getMock();
111 111
 
112
-        $callback1 = [new MailSenderListenerMock(),'listen1'];
113
-        $callback2 = [new MailSenderListenerMock(),'listen2'];
114
-        $callback3 = [new MailSenderListenerMock(),'listen3'];
112
+        $callback1 = [new MailSenderListenerMock(), 'listen1'];
113
+        $callback2 = [new MailSenderListenerMock(), 'listen2'];
114
+        $callback3 = [new MailSenderListenerMock(), 'listen3'];
115 115
         $events->expects($this->exactly(3))
116 116
                ->method('attach')
117 117
                ->withConsecutive(
Please login to merge, or discard this patch.
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -62,12 +62,12 @@  discard block
 block discarded – undo
62 62
             default:
63 63
                 $this->mailServiceMock = $this->getMockBuilder('\Core\Mail\MailService')->disableOriginalConstructor()->getMock();
64 64
                 $this->mailServiceMock->expects($this->atLeastOnce())
65
-                                      ->method('send')
66
-                                      ->with($this->isInstanceOf(HTMLTemplateMessage::class))
65
+                                        ->method('send')
66
+                                        ->with($this->isInstanceOf(HTMLTemplateMessage::class))
67 67
                 ;
68 68
                 $this->mailServiceMock->expects($this->any())
69
-                                      ->method('get')->with('htmltemplate')
70
-                                      ->will($this->returnCallback(array($this, 'pushMailMock')));
69
+                                        ->method('get')->with('htmltemplate')
70
+                                        ->will($this->returnCallback(array($this, 'pushMailMock')));
71 71
 
72 72
 
73 73
                 $this->targetOptions = array('siteName' => 'Test', 'adminEmail' => 'test@admin');
@@ -106,29 +106,29 @@  discard block
 block discarded – undo
106 106
     public function testAttachsToAndDetachsFromJobEvents()
107 107
     {
108 108
         $events = $this->getMockBuilder('\Laminas\EventManager\EventManager')
109
-                       ->disableOriginalConstructor()
110
-                       ->getMock();
109
+                        ->disableOriginalConstructor()
110
+                        ->getMock();
111 111
 
112 112
         $callback1 = [new MailSenderListenerMock(),'listen1'];
113 113
         $callback2 = [new MailSenderListenerMock(),'listen2'];
114 114
         $callback3 = [new MailSenderListenerMock(),'listen3'];
115 115
         $events->expects($this->exactly(3))
116
-               ->method('attach')
117
-               ->withConsecutive(
118
-                   array(JobEvent::EVENT_JOB_CREATED, array($this->target, 'onJobCreated')),
119
-                   array(JobEvent::EVENT_JOB_ACCEPTED, array($this->target, 'onJobAccepted')),
120
-                   array(JobEvent::EVENT_JOB_REJECTED, array($this->target, 'onJobRejected'))
121
-               )
122
-               ->will($this->onConsecutiveCalls($callback1, $callback2, $callback3))
116
+                ->method('attach')
117
+                ->withConsecutive(
118
+                    array(JobEvent::EVENT_JOB_CREATED, array($this->target, 'onJobCreated')),
119
+                    array(JobEvent::EVENT_JOB_ACCEPTED, array($this->target, 'onJobAccepted')),
120
+                    array(JobEvent::EVENT_JOB_REJECTED, array($this->target, 'onJobRejected'))
121
+                )
122
+                ->will($this->onConsecutiveCalls($callback1, $callback2, $callback3))
123 123
         ;
124 124
 
125 125
         $events->expects($this->exactly(3))
126
-               ->method('detach')
127
-               ->withConsecutive(
128
-                   array($callback1),
129
-                   array($callback2),
130
-                   array($callback3)
131
-               )->willReturn(true);
126
+                ->method('detach')
127
+                ->withConsecutive(
128
+                    array($callback1),
129
+                    array($callback2),
130
+                    array($callback3)
131
+                )->willReturn(true);
132 132
 
133 133
         $this->target->attach($events);
134 134
         $this->assertAttributeEquals(array($callback1, $callback2, $callback3), 'listeners', $this->target);
Please login to merge, or discard this patch.
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.