Passed
Push — master ( 6292f6...e5b7ab )
by Mathias
10:49 queued 04:59
created
module/Core/src/Queue/Job/JobResult.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
     {
84 84
         return static::create(
85 85
             ProcessJobEvent::JOB_STATUS_FAILURE_RECOVERABLE,
86
-            [ 'reason' => $reason ] + $options
86
+            ['reason' => $reason] + $options
87 87
         );
88 88
     }
89 89
 
Please login to merge, or discard this patch.
module/Jobs/src/Entity/TemplateValues.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      * @var String
39 39
      * @ODM\Field(type="string")
40 40
      */
41
-    protected $qualifications='';
41
+    protected $qualifications = '';
42 42
 
43 43
     /**
44 44
      * Requirements field of the job template
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      * @var String
47 47
      * @ODM\Field(type="string")
48 48
      */
49
-    protected $requirements='';
49
+    protected $requirements = '';
50 50
 
51 51
     /**
52 52
      * Benefits field of the job template
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      * @var String
55 55
      * @ODM\Field(type="string")
56 56
      */
57
-    protected $benefits='';
57
+    protected $benefits = '';
58 58
 
59 59
     /**
60 60
      * Job title field of the job template
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      * @var String
63 63
      * @ODM\Field(type="string")
64 64
      */
65
-    protected $title='';
65
+    protected $title = '';
66 66
 
67 67
     /**
68 68
      * Company description field of the job template
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      * @var String
71 71
      * @ODM\Field(type="string")
72 72
      */
73
-    protected $description='';
73
+    protected $description = '';
74 74
 
75 75
     /**
76 76
      * language of the job template values. Must be a valid ISO 639-1 code
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      * @var String
79 79
      * @ODM\Field(type="string")
80 80
      */
81
-    protected $language='en';
81
+    protected $language = 'en';
82 82
 
83 83
     /**
84 84
      * Pure HTML
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      * @var string
88 88
      * @since 0.29
89 89
      */
90
-    protected $html='';
90
+    protected $html = '';
91 91
 
92 92
     /**
93 93
      * Introduction text for the job template
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      */
121 121
     public function setQualifications($qualifications)
122 122
     {
123
-        $this->qualifications= (string) $qualifications;
123
+        $this->qualifications = (string) $qualifications;
124 124
         return $this;
125 125
     }
126 126
 
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      */
143 143
     public function setRequirements($requirements)
144 144
     {
145
-        $this->requirements=(string) $requirements;
145
+        $this->requirements = (string) $requirements;
146 146
         return $this;
147 147
     }
148 148
 
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
      */
165 165
     public function setBenefits($benefits)
166 166
     {
167
-        $this->benefits=(string) $benefits;
167
+        $this->benefits = (string) $benefits;
168 168
         return $this;
169 169
     }
170 170
 
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
      */
187 187
     public function setTitle($title)
188 188
     {
189
-        $this->title=(string) $title;
189
+        $this->title = (string) $title;
190 190
         return $this;
191 191
     }
192 192
 
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
      */
209 209
     public function setDescription($description)
210 210
     {
211
-        $this->description=(string) $description;
211
+        $this->description = (string) $description;
212 212
         return $this;
213 213
     }
214 214
 
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
      */
231 231
     public function setLanguage($language)
232 232
     {
233
-        $this->language=(string) $language;
233
+        $this->language = (string) $language;
234 234
         return $this;
235 235
     }
236 236
 
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
 
340 340
     public function __get($property)
341 341
     {
342
-        $getter = "get" . ucfirst($property);
342
+        $getter = "get".ucfirst($property);
343 343
         if (method_exists($this, $getter)) {
344 344
             return $this->$getter();
345 345
         }
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
     public function __set($property, $value)
355 355
     {
356 356
         //$this->checkWriteAccess();
357
-        $setter = 'set' . ucfirst($property);
357
+        $setter = 'set'.ucfirst($property);
358 358
         if (method_exists($this, $setter)) {
359 359
             $this->$setter($value);
360 360
             return;
Please login to merge, or discard this patch.
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 1 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/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 1 patch
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.
module/Jobs/test/JobsTest/Listener/GetOrganizationManagersTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
 
95 95
     private function createOrganization(array $spec)
96 96
     {
97
-        $flag = function ($key) use ($spec) {
97
+        $flag = function($key) use ($spec) {
98 98
             return isset($spec[$key]) && $spec[$key];
99 99
         };
100 100
         $org = $this
Please login to merge, or discard this patch.