Completed
Push — develop ( 31c340...db8caa )
by Mathias
08:35
created
module/Jobs/src/Jobs/Listener/Response/JobResponse.php 1 patch
Spacing   +8 added lines, -8 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
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      * @param string $portal
84 84
      * @param string $status
85 85
      */
86
-    public function __construct($portal = '', $status = self::RESPONSE_NOTIMPLEMENTED, $message='') {
86
+    public function __construct($portal = '', $status = self::RESPONSE_NOTIMPLEMENTED, $message = '') {
87 87
         $this->portal = $portal;
88 88
         $this->status = $status;
89 89
         $this->message = $message;
Please login to merge, or discard this patch.
module/Applications/src/Applications/Factory/Form/AttachmentsFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      *
57 57
      * @var string
58 58
      */
59
-    protected $options="Applications/Options";
59
+    protected $options = "Applications/Options";
60 60
 
61 61
 
62 62
     /**
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
              ->setIsDescriptionsEnabled(true)
78 78
              ->setDescription(
79 79
                 /*@translate*/ 'Attach images or PDF Documents to your application. Drag&drop them, or click into the attachement area. You can upload up to %sMB',
80
-                 [round($size/(1024*1024))>0? round($size/(1024*1024)):round($size/(1024*1024),1)]
80
+                 [round($size / (1024 * 1024)) > 0 ? round($size / (1024 * 1024)) : round($size / (1024 * 1024), 1)]
81 81
              )
82 82
              ->setParam('return', 'file-uri')
83 83
              ->setLabel(/*@translate*/ 'Attachments');
Please login to merge, or discard this patch.
module/Core/src/Core/Form/Form.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
      *
81 81
      * @return $this
82 82
      */
83
-    public function setDescription($description,$params = null)
83
+    public function setDescription($description, $params = null)
84 84
     {
85 85
         $this->options['description'] = $description;
86 86
         $this->options['description_params'] = $params;
Please login to merge, or discard this patch.
module/Core/src/Core/Form/View/Helper/Form.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
             'id',
99 99
             preg_replace(
100 100
                 array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'),
101
-                array('-'              , '-'    , ''       ),
101
+                array('-', '-', ''),
102 102
                 $formId
103 103
             )
104 104
         );
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
             if (!$element->hasAttribute('id')) {
120 120
                 $elementId = preg_replace(
121 121
                     array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'),
122
-                    array('-'             , '-',     ''),
122
+                    array('-', '-', ''),
123 123
                     $form->getName() . '-' . $element->getName()
124 124
                 );
125 125
                 $element->setAttribute('id', $elementId);
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
                 );
186 186
                 
187 187
                 if ($desc = $form->getOption('description', '')) {
188
-                    $descriptionParams=$form->getOption('description_params');
188
+                    $descriptionParams = $form->getOption('description_params');
189 189
                     $translator = $this->getTranslator();
190 190
                     $textDomain = $this->getTranslatorTextDomain();
191 191
                     $desc = $translator->translate($desc, $textDomain);
Please login to merge, or discard this patch.
module/Organizations/src/Organizations/Entity/Template.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      */
82 82
     public function setLabelQualifications($labelQualifications)
83 83
     {
84
-        $this->labelQualifications=$labelQualifications;
84
+        $this->labelQualifications = $labelQualifications;
85 85
         return $this;
86 86
     }
87 87
 
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      */
105 105
     public function setLabelBenefits($labelBenefits)
106 106
     {
107
-        $this->labelBenefits=$labelBenefits;
107
+        $this->labelBenefits = $labelBenefits;
108 108
         return $this;
109 109
     }
110 110
 
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Controller/ConsoleController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -40,10 +40,10 @@  discard block
 block discarded – undo
40 40
                     
41 41
                 case "days":
42 42
                     $date = new \DateTime();
43
-                    $date->modify('-' . (int) $value. ' day');
43
+                    $date->modify('-' . (int) $value . ' day');
44 44
                     $q = array('$lt' => $date);
45 45
                     if (isset($query['datePublishStart.date'])) {
46
-                        $query['datePublishStart.date']= array_merge(
46
+                        $query['datePublishStart.date'] = array_merge(
47 47
                             $query['datePublishStart.date'],
48 48
                             $q
49 49
                         );
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         }
60 60
         $query['status.name'] = 'active';
61 61
 
62
-        $jobs = $jobsRepo->findBy($query,null,$limit);
62
+        $jobs = $jobsRepo->findBy($query, null, $limit);
63 63
         $count = count($jobs);
64 64
 
65 65
         if (0 === $count) {
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         
74 74
         echo "$count jobs found, which have to expire ...\n";
75 75
         
76
-        $progress     = new ProgressBar(
76
+        $progress = new ProgressBar(
77 77
             new ConsoleAdapter(
78 78
                 array(
79 79
                 'elements' => array(
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
                 continue;
134 134
             }
135 135
             try {
136
-                $group       = $user->getGroup($job->getCompany());
136
+                $group = $user->getGroup($job->getCompany());
137 137
             } catch (\Exception $e) {
138 138
                 continue;
139 139
             }
Please login to merge, or discard this patch.
module/Geo/src/Geo/Controller/IndexController.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
     {
47 47
         $query = $this->params()->fromQuery();
48 48
 
49
-        switch($this->plugin){
49
+        switch ($this->plugin) {
50 50
             case 'photon':
51 51
                 /* @var Plugin\Photon $geoApi */
52 52
                 $geoApi = $this->getPluginManager()->get('geo/photon');
@@ -60,19 +60,19 @@  discard block
 block discarded – undo
60 60
         }
61 61
         $result = array();
62 62
         if (!empty($query['q'])) {
63
-            $result = $geoApi($query['q'], $this->geoCoderUrl, $this->params('lang','de'));
63
+            $result = $geoApi($query['q'], $this->geoCoderUrl, $this->params('lang', 'de'));
64 64
         }
65 65
         $viewModel = new JsonModel($result);
66 66
         /* @var \Zend\Http\Response $response */
67 67
         $response = $this->getResponse();
68 68
 
69 69
         $date = new \DateTime();
70
-        $expires=$date->modify('+100 day');
70
+        $expires = $date->modify('+100 day');
71 71
 
72 72
         $response->getHeaders()
73
-            ->addHeaderLine('Pragma','cache')
74
-            ->addHeaderLine('Cache-Control',"max-age=290304000, public")
75
-            ->addHeaderLine('Expires',$expires->format(\DateTime::RFC1036));
73
+            ->addHeaderLine('Pragma', 'cache')
74
+            ->addHeaderLine('Cache-Control', "max-age=290304000, public")
75
+            ->addHeaderLine('Expires', $expires->format(\DateTime::RFC1036));
76 76
 
77 77
         return $viewModel;
78 78
     }
Please login to merge, or discard this patch.
module/Applications/src/Applications/Controller/CommentController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
                     $application = $repository->find($appId);
107 107
                     $application->comments->add($comment);
108 108
                     $application->changeStatus($application->getStatus(), sprintf(
109
-                                    /* @translate */ 'Application was rated by %s' ,
109
+                                    /* @translate */ 'Application was rated by %s',
110 110
                                      $this->auth()->getUser()->getInfo()->getDisplayName())
111 111
                         );
112 112
                 }
Please login to merge, or discard this patch.
module/Organizations/src/Organizations/Entity/OrganizationImage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      */
47 47
     function getUri()
48 48
     {
49
-        return '/' . trim('file/Organizations.OrganizationImage/' . $this->id . "/" . urlencode($this->name),'/');
49
+        return '/' . trim('file/Organizations.OrganizationImage/' . $this->id . "/" . urlencode($this->name), '/');
50 50
     }
51 51
 
52 52
     /**
Please login to merge, or discard this patch.