Completed
Push — develop ( a73e2c...030f10 )
by Carsten
28:43 queued 13:31
created
module/Jobs/src/Factory/Controller/JobboardControllerFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,6 +36,6 @@
 block discarded – undo
36 36
         $defaultListener       = $container->get('DefaultListeners');
37 37
         $imageFileCacheManager = $container->get('Organizations\ImageFileCache\Manager');
38 38
     
39
-        return new JobboardController($defaultListener, $jobRepository, $imageFileCacheManager, [ 'count' => $options->getPerPage() ]);
39
+        return new JobboardController($defaultListener, $jobRepository, $imageFileCacheManager, ['count' => $options->getPerPage()]);
40 40
     }
41 41
 }
Please login to merge, or discard this patch.
module/Jobs/src/Factory/Controller/ManageControllerFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@
 block discarded – undo
33 33
     {
34 34
         $auth = $container->get('AuthenticationService');
35 35
         /* @var RepositoryService     $repositoryService */
36
-        $repositoryService =    $container->get('repositories');
37
-        $translator =    $container->get('translator');
36
+        $repositoryService = $container->get('repositories');
37
+        $translator = $container->get('translator');
38 38
         $filterManager = $container->get('FilterManager');
39 39
         $jobFormEvents = $container->get('Jobs/JobContainer/Events');
40 40
         $formManager = $container->get('FormElementManager');
Please login to merge, or discard this patch.
module/Jobs/src/Factory/Service/JobsPublisherFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         if (!array_key_exists('path', $config)) {
40 40
             throw new \RuntimeException('path is missing', 500);
41 41
         }
42
-        return $config['scheme'] . '://' . $config['host'] . '/' . $config['path'];
42
+        return $config['scheme'].'://'.$config['host'].'/'.$config['path'];
43 43
     }
44 44
 
45 45
     /**
Please login to merge, or discard this patch.
module/Jobs/src/Filter/ChannelPrices.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -73,15 +73,15 @@
 block discarded – undo
73 73
             if ('yawik' == $channelKey) {
74 74
                 $absoluteDiscount = 100;
75 75
             }
76
-            if ($channel instanceof ChannelOptions && $channel->getPrice('base')>0) {
76
+            if ($channel instanceof ChannelOptions && $channel->getPrice('base') > 0) {
77 77
                 $sum += $channel->getPrice('base');
78 78
                 $amount++;
79 79
             }
80 80
         }
81
-        $discount=1-($amount-1)*13.5/100;
82
-        if ($discount>0) {
83
-            $sum= round($sum * $discount, 2);
81
+        $discount = 1 - ($amount - 1) * 13.5 / 100;
82
+        if ($discount > 0) {
83
+            $sum = round($sum * $discount, 2);
84 84
         }
85
-        return $sum-$absoluteDiscount;
85
+        return $sum - $absoluteDiscount;
86 86
     }
87 87
 }
Please login to merge, or discard this patch.
module/Jobs/src/Filter/ViewModelTemplateFilterAbstract.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      */
121 121
     public function setImageFileCacheHelper($imageFileCacheHelper)
122 122
     {
123
-        $this->imageFileCacheHelper=$imageFileCacheHelper;
123
+        $this->imageFileCacheHelper = $imageFileCacheHelper;
124 124
         return;
125 125
     }
126 126
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
         if (!isset($this->job)) {
147 147
             throw new \InvalidArgumentException('cannot create a viewModel for Templates without an $job');
148 148
         }
149
-        $model->setTemplate('templates/' . $this->job->getTemplate() . '/index');
149
+        $model->setTemplate('templates/'.$this->job->getTemplate().'/index');
150 150
         return $model;
151 151
     }
152 152
 
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
             throw new \InvalidArgumentException('cannot create a viewModel for Templates without aa $job');
207 207
         }
208 208
         $location = $this->job->getLocation();
209
-        $this->container['location'] = isset($location)?$location:'';
209
+        $this->container['location'] = isset($location) ? $location : '';
210 210
         return $this;
211 211
     }
212 212
 
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
         }
228 228
         $description = $this->job->getTemplateValues()->getDescription();
229 229
 
230
-        $this->container['description'] = isset($description)?$description:'';
230
+        $this->container['description'] = isset($description) ? $description : '';
231 231
         return $this;
232 232
     }
233 233
 
@@ -291,9 +291,9 @@  discard block
 block discarded – undo
291 291
         if (!isset($this->job)) {
292 292
             throw new \InvalidArgumentException('cannot create a viewModel for Templates without a $job');
293 293
         }
294
-        $labelQualifications='';
295
-        $labelBenefits='';
296
-        $labelRequirements='';
294
+        $labelQualifications = '';
295
+        $labelBenefits = '';
296
+        $labelRequirements = '';
297 297
 
298 298
         $organization = $this->job->getOrganization();
299 299
         if (isset($organization)) {
Please login to merge, or discard this patch.
module/Jobs/src/Filter/ViewModelTemplateFilterJob.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
             'lang/jobs/view',
49 49
             [],
50 50
             [
51
-                'query' => [ 'id' => $job->getId() ],
51
+                'query' => ['id' => $job->getId()],
52 52
                 'force_canonical' => true
53 53
             ]
54 54
         );
Please login to merge, or discard this patch.
module/Jobs/src/Filter/ViewModelTemplateFilterForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
             'lang/jobs/view',
49 49
             [],
50 50
             [
51
-                'query' => [ 'id' => $job->getId() ],
51
+                'query' => ['id' => $job->getId()],
52 52
                 'force_canonical' => true
53 53
             ]
54 54
         );
Please login to merge, or discard this patch.
module/Jobs/src/Entity/Decorator/JsonLdProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
             $dateEnd->add(new \DateInterval("P180D"));
59 59
             $dateEnd = $dateEnd->format('Y-m-d H:i:s');
60 60
         }
61
-        $array=[
61
+        $array = [
62 62
             '@context'=>'http://schema.org/',
63 63
             '@type' => 'JobPosting',
64 64
             'title' => $this->job->getTitle(),
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      */
94 94
     private function getLocations($locations)
95 95
     {
96
-        $array=[];
96
+        $array = [];
97 97
         foreach ($locations as $location) { /* @var \Core\Entity\LocationInterface $location */
98 98
             array_push(
99 99
                 $array,
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
                     '@type' => 'Place',
102 102
                     'address' => [
103 103
                         '@type' => 'PostalAddress',
104
-                        'streetAddress' => $location->getStreetname() .' '.$location->getStreetnumber(),
104
+                        'streetAddress' => $location->getStreetname().' '.$location->getStreetnumber(),
105 105
                         'postalCode' => $location->getPostalCode(),
106 106
                         'addressLocality' => $location->getCity(),
107 107
                         'addressCountry' => $location->getCountry(),
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      */
123 123
     private function getDescription(TemplateValuesInterface $values)
124 124
     {
125
-        $description=sprintf(
125
+        $description = sprintf(
126 126
             "<p>%s</p>".
127 127
             "<h1>%s</h1>".
128 128
             "<h3>Requirements</h3><p>%s</p>".
Please login to merge, or discard this patch.
module/Jobs/src/Entity/AtsMode.php 2 patches
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -208,13 +208,13 @@  discard block
 block discarded – undo
208 208
         return $this->email;
209 209
     }
210 210
 
211
-	/**
212
-	 * @return bool
213
-	 */
214
-	public function getOneClickApply()
215
-	{
216
-		return $this->oneClickApply;
217
-	}
211
+    /**
212
+     * @return bool
213
+     */
214
+    public function getOneClickApply()
215
+    {
216
+        return $this->oneClickApply;
217
+    }
218 218
 
219 219
 
220 220
     /**
@@ -222,29 +222,29 @@  discard block
 block discarded – undo
222 222
      *
223 223
      * @return $this
224 224
      */
225
-	public function setOneClickApply($oneClickApply)
226
-	{
227
-		$this->oneClickApply = (bool)$oneClickApply;
225
+    public function setOneClickApply($oneClickApply)
226
+    {
227
+        $this->oneClickApply = (bool)$oneClickApply;
228 228
 		
229
-		return $this;
230
-	}
231
-
232
-	/**
233
-	 * @return array
234
-	 */
235
-	public function getOneClickApplyProfiles()
236
-	{
237
-		return $this->oneClickApplyProfiles;
238
-	}
239
-
240
-	/**
241
-	 * @param array $oneClickApplyProfiles
242
-	 * @return AtsMode
243
-	 */
244
-	public function setOneClickApplyProfiles(array $oneClickApplyProfiles)
245
-	{
246
-		$this->oneClickApplyProfiles = $oneClickApplyProfiles;
229
+        return $this;
230
+    }
231
+
232
+    /**
233
+     * @return array
234
+     */
235
+    public function getOneClickApplyProfiles()
236
+    {
237
+        return $this->oneClickApplyProfiles;
238
+    }
239
+
240
+    /**
241
+     * @param array $oneClickApplyProfiles
242
+     * @return AtsMode
243
+     */
244
+    public function setOneClickApplyProfiles(array $oneClickApplyProfiles)
245
+    {
246
+        $this->oneClickApplyProfiles = $oneClickApplyProfiles;
247 247
 		
248
-		return $this;
249
-	}
248
+        return $this;
249
+    }
250 250
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -224,7 +224,7 @@
 block discarded – undo
224 224
      */
225 225
 	public function setOneClickApply($oneClickApply)
226 226
 	{
227
-		$this->oneClickApply = (bool)$oneClickApply;
227
+		$this->oneClickApply = (bool) $oneClickApply;
228 228
 		
229 229
 		return $this;
230 230
 	}
Please login to merge, or discard this patch.