Passed
Push — master ( 4d91a4...70451a )
by Mathias
07:42
created
module/Jobs/src/Factory/Form/Hydrator/OrganizationNameHydratorFactory.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  * @filesource
6 6
  * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de)
7 7
  * @license   MIT
8
-  */
8
+ */
9 9
 
10 10
 namespace Jobs\Factory\Form\Hydrator;
11 11
 
Please login to merge, or discard this patch.
module/Jobs/src/Factory/View/Helper/JobUrlFactory.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,8 +49,8 @@
 block discarded – undo
49 49
     
50 50
         $helper    = new JobUrl();
51 51
         $helper->setUrlHelper($url)
52
-               ->setParamsHelper($params)
53
-               ->setServerUrlHelper($serverUrl);
52
+                ->setParamsHelper($params)
53
+                ->setServerUrlHelper($serverUrl);
54 54
         return $helper;
55 55
     }
56 56
 }
Please login to merge, or discard this patch.
module/Jobs/src/Factory/View/Helper/ApplyUrlFactory.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,11 +44,11 @@
 block discarded – undo
44 44
         $params    = $viewHelper->get('params');
45 45
         $serverUrl = $viewHelper->get('serverUrl');
46 46
         
47
-	    $helper    = new ApplyUrl();
47
+        $helper    = new ApplyUrl();
48 48
         $helper->setUrlHelper($url)
49
-               ->setTranslateHelper($translate)
50
-               ->setParamsHelper($params)
51
-               ->setServerUrlHelper($serverUrl);
49
+                ->setTranslateHelper($translate)
50
+                ->setParamsHelper($params)
51
+                ->setServerUrlHelper($serverUrl);
52 52
         return $helper;
53 53
     }
54 54
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         $params    = $viewHelper->get('params');
45 45
         $serverUrl = $viewHelper->get('serverUrl');
46 46
         
47
-	    $helper    = new ApplyUrl();
47
+	    $helper = new ApplyUrl();
48 48
         $helper->setUrlHelper($url)
49 49
                ->setTranslateHelper($translate)
50 50
                ->setParamsHelper($params)
Please login to merge, or discard this patch.
module/Jobs/src/Factory/Filter/ViewModelTemplateFilterFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
             $filter->setViewHelperForm($viewHelperForm);
62 62
         }
63 63
         if (!isset($filter)) {
64
-            throw new \InvalidArgumentException(get_class($element) . ' cannot be used to initialize a template');
64
+            throw new \InvalidArgumentException(get_class($element).' cannot be used to initialize a template');
65 65
         }
66 66
         $viewManager = $this->service->get('ViewHelperManager');
67 67
         $basePathHelper = $viewManager->get('basePath');
Please login to merge, or discard this patch.
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.