Completed
Push — develop ( 3ea9f1...2886f7 )
by Mathias
19:20 queued 11:17
created
module/Jobs/src/Factory/ModuleOptionsFactory.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
         $jobs_options = isset($config['jobs_options']) ? $config['jobs_options'] : array();
45 45
 
46
-        if (!array_key_exists('multipostingApprovalMail', $jobs_options) || '' ==  trim($jobs_options['multipostingApprovalMail'])) {
46
+        if (!array_key_exists('multipostingApprovalMail', $jobs_options) || '' == trim($jobs_options['multipostingApprovalMail'])) {
47 47
             $coreOptions = $container->get('Core/Options');
48 48
             $jobs_options['multipostingApprovalMail'] = $coreOptions->getSystemMessageEmail();
49 49
         }
Please login to merge, or discard this patch.
module/Jobs/src/Factory/Form/MultipostingSelectFactory.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         $router = $container->get('Router');
47 47
         $select  = new MultipostingSelect();
48 48
         $helpers = $container->get('ViewHelperManager');
49
-        $currencyFormat  = $helpers->get('currencyFormat');
49
+        $currencyFormat = $helpers->get('currencyFormat');
50 50
 
51 51
         $channels = $container->get('Jobs/Options/Provider');
52 52
 
@@ -67,11 +67,11 @@  discard block
 block discarded – undo
67 67
 
68 68
             $link = $router->assemble($channel->getParams(), array('name' => $channel->getRoute()));
69 69
             $groups[$category]['options'][$channel->getKey()] =
70
-                $channel->getLabel() . '|'
71
-                . $channel->getHeadLine() . '|'
72
-                . $channel->getDescription() . '|'
73
-                . $channel->getLinkText() . '|'
74
-                . $link . '|' . $channel->getPublishDuration() . '|'
70
+                $channel->getLabel().'|'
71
+                . $channel->getHeadLine().'|'
72
+                . $channel->getDescription().'|'
73
+                . $channel->getLinkText().'|'
74
+                . $link.'|'.$channel->getPublishDuration().'|'
75 75
                 . $channel->getLogo();
76 76
         }
77 77
 
Please login to merge, or discard this patch.
module/Jobs/src/Factory/Form/ActiveOrganizationSelectFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,13 +53,13 @@
 block discarded – undo
53 53
         if ($initialId) {
54 54
             /* @var $serviceLocator \Zend\ServiceManager\AbstractPluginManager
55 55
              * @var $repository \Organizations\Repository\Organization */
56
-            $repositories   = $container->get('repositories');
56
+            $repositories = $container->get('repositories');
57 57
             $repository = $repositories->get('Organizations');
58
-            $organization  = $repository->find($initialId);
58
+            $organization = $repository->find($initialId);
59 59
             $organizations[] = $organization;
60 60
         }
61 61
 
62
-        $select         = new OrganizationSelect();
62
+        $select = new OrganizationSelect();
63 63
 
64 64
         $select->setSelectableOrganizations($organizations);
65 65
         $select->setAttribute('data-ajax', '?ajax=jobs.admin.activeorganizations');
Please login to merge, or discard this patch.
module/Jobs/src/Factory/View/Helper/ApplyUrlFactory.php 1 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.