Completed
Push — develop ( 60c2a6...7c4b2f )
by Carsten
61:42 queued 47:32
created
module/Jobs/src/Jobs/Factory/Form/MultipostingSelectFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
         $helpers = $services->get('ViewHelperManager');
37 37
        // $headScript = $helpers->get('headScript');
38 38
        /// $basePath  = $helpers->get('basePath');
39
-        $currencyFormat  = $helpers->get('currencyFormat');
39
+        $currencyFormat = $helpers->get('currencyFormat');
40 40
 
41 41
         $channels = $services->get('Jobs/Options/Provider');
42 42
 
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Factory/ModuleOptionsFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 
33 33
         $jobs_options = isset($config['jobs_options']) ? $config['jobs_options'] : array();
34 34
 
35
-        if (!array_key_exists('multipostingApprovalMail', $jobs_options) || '' ==  trim($jobs_options['multipostingApprovalMail'])) {
35
+        if (!array_key_exists('multipostingApprovalMail', $jobs_options) || '' == trim($jobs_options['multipostingApprovalMail'])) {
36 36
             $coreOptions = $serviceLocator->get('Core/Options');
37 37
             $jobs_options['multipostingApprovalMail'] = $coreOptions->getSystemMessageEmail();
38 38
         }
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Factory/Options/ChannelOptionsFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         $core = $serviceLocator->get("Core/Options");
25 25
 
26 26
         if ('' == $channel->getCurrency()) {
27
-            $currency=$core->getDefaultCurrencyCode();
27
+            $currency = $core->getDefaultCurrencyCode();
28 28
             $channel->setCurrency($currency);
29 29
         }
30 30
 
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Filter/ChannelPrices.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,13 +47,13 @@
 block discarded – undo
47 47
         $amount = 0;
48 48
         foreach ($value as $channelKey) {
49 49
             $channel = $this->providers->getChannel($channelKey);
50
-            if ($channel->getPrice('base')>0) {
50
+            if ($channel->getPrice('base') > 0) {
51 51
                 $sum += $channel->getPrice('base');
52 52
                 $amount++;
53 53
             }
54 54
         }
55
-        $discount=1-($amount-1)*13.5/100;
56
-        if ($discount>0) $sum= round($sum * $discount,2);
55
+        $discount = 1 - ($amount - 1) * 13.5 / 100;
56
+        if ($discount > 0) $sum = round($sum * $discount, 2);
57 57
         return $sum;
58 58
     }
59 59
 
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Form/Hydrator/PreviewLinkHydrator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
               )
48 48
         );
49 49
 
50
-        $data['previewLink']         = $viewLink;
50
+        $data['previewLink'] = $viewLink;
51 51
         return $data;
52 52
     }
53 53
 
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Form/Job.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
 
100 100
     public function renderPost(Renderer $renderer)
101 101
     {
102
-        $coreformsjs   = $renderer->basepath('/Core/js/core.forms.js');
102
+        $coreformsjs = $renderer->basepath('/Core/js/core.forms.js');
103 103
         $javaScript = <<<JS
104 104
         $(document).ready(function() {
105 105
 
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Listener/Events/JobEvent.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,24 +34,24 @@
 block discarded – undo
34 34
      * Event is fired when a users has created a new job opening and accepted the
35 35
      * terms and conditions
36 36
      */
37
-    const EVENT_JOB_CREATED   = 'job.created';
37
+    const EVENT_JOB_CREATED = 'job.created';
38 38
 
39 39
     /**
40 40
      * Event is fired when the owner of the YAWIK installation has accepted the job
41 41
      * opening
42 42
      */
43
-    const EVENT_JOB_ACCEPTED   = 'job.accepted';
43
+    const EVENT_JOB_ACCEPTED = 'job.accepted';
44 44
 
45 45
     /**
46 46
      * Event is fired, when the owner of the YAWIK installation has rejected the job
47 47
      * opening
48 48
      */
49
-    const EVENT_JOB_REJECTED   = 'job.rejected';
49
+    const EVENT_JOB_REJECTED = 'job.rejected';
50 50
 
51 51
     /**
52 52
      * get all available names for publishing
53 53
      */
54
-    const PORTAL_AVAIL_NAME    = 'portal.availname';
54
+    const PORTAL_AVAIL_NAME = 'portal.availname';
55 55
 
56 56
     /**
57 57
      * @var portals to be published
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Listener/Response/JobResponse.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -23,35 +23,35 @@  discard block
 block discarded – undo
23 23
     /**
24 24
      * Job has been published
25 25
      */
26
-    const RESPONSE_OK             = 'ok';
26
+    const RESPONSE_OK = 'ok';
27 27
 
28 28
     /**
29 29
      * Job has been published and has stopped all other publishing
30 30
      */
31
-    const RESPONSE_OKANDSTOP      = 'ok and publishing terminated afterwards';
31
+    const RESPONSE_OKANDSTOP = 'ok and publishing terminated afterwards';
32 32
 
33 33
     /**
34 34
      * publishing has been stopped
35 35
      */
36
-    const RESPONSE_STOP           = 'publishing terminated';
36
+    const RESPONSE_STOP = 'publishing terminated';
37 37
 
38 38
     /**
39 39
      * publishing has been denied,
40 40
      * this is very likely when a job was not intended to be sended to a portal
41 41
      */
42
-    const RESPONSE_DENIED         = 'denied';
42
+    const RESPONSE_DENIED = 'denied';
43 43
 
44 44
     /**
45 45
      * a connection to the portal could not be established
46 46
      * or the publishing of the Job has been rejected for other reasons
47 47
      */
48
-    const RESPONSE_FAIL           = 'fail';
48
+    const RESPONSE_FAIL = 'fail';
49 49
 
50 50
     /**
51 51
      * This error has nothing to do with wrong inputs,
52 52
      * something just has happend in the programm
53 53
      */
54
-    const RESPONSE_ERROR          = 'internal Error';
54
+    const RESPONSE_ERROR = 'internal Error';
55 55
 
56 56
     /**
57 57
      * nothing happens, but that's not a failure
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     /**
63 63
      * nothing happens, and get used to it
64 64
      */
65
-    const RESPONSE_DEPRECATED     = 'deprecated';
65
+    const RESPONSE_DEPRECATED = 'deprecated';
66 66
 
67 67
     /**
68 68
      * @var string
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Options/ChannelOptions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      *
82 82
      * @var int $publishDuration
83 83
      */
84
-    protected $publishDuration=30;
84
+    protected $publishDuration = 30;
85 85
 
86 86
     /**
87 87
      * Category for this channel
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
      */
141 141
     public function setKey($key)
142 142
     {
143
-        $this->key=$key;
143
+        $this->key = $key;
144 144
         return $this;
145 145
     }
146 146
 
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
      */
163 163
     public function setExternalkey($key)
164 164
     {
165
-        $this->externalkey=$key;
165
+        $this->externalkey = $key;
166 166
         return $this;
167 167
     }
168 168
 
Please login to merge, or discard this patch.