Completed
Pull Request — develop (#353)
by ANTHONIUS
06:14
created
module/Organizations/src/Organizations/Form/LogoImageFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      *
29 29
      * @var string
30 30
      */
31
-    protected $options="Jobs/Options";
31
+    protected $options = "Jobs/Options";
32 32
 
33 33
     /**
34 34
      * Configure the Form width Options
Please login to merge, or discard this patch.
module/Organizations/src/Organizations/Entity/OrganizationContact.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public function setHouseNumber($houseNumber = "")
73 73
     {
74
-        $this->houseNumber=$houseNumber;
74
+        $this->houseNumber = $houseNumber;
75 75
         return $this;
76 76
     }
77 77
     
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      */
138 138
     public function setStreet($street = "")
139 139
     {
140
-        $this->street=$street;
140
+        $this->street = $street;
141 141
         return $this;
142 142
     }
143 143
 
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      */
161 161
     public function setPhone($phone = "")
162 162
     {
163
-        $this->phone=$phone;
163
+        $this->phone = $phone;
164 164
         return $this;
165 165
     }
166 166
 
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
      */
184 184
     public function setFax($fax = "")
185 185
     {
186
-        $this->fax=$fax;
186
+        $this->fax = $fax;
187 187
         return $this;
188 188
     }
189 189
 
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
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
         $query = $this->params()->fromQuery();
58 58
 
59
-        switch($this->plugin){
59
+        switch ($this->plugin) {
60 60
             case 'photon':
61 61
                 /* @var Plugin\Photon $geoApi */
62 62
                 $geoApi = $this->getPluginManager()->get('geo/photon');
@@ -70,19 +70,19 @@  discard block
 block discarded – undo
70 70
         }
71 71
         $result = array();
72 72
         if (!empty($query['q'])) {
73
-            $result = $geoApi($query['q'], $this->geoCoderUrl, $this->params('lang','de'));
73
+            $result = $geoApi($query['q'], $this->geoCoderUrl, $this->params('lang', 'de'));
74 74
         }
75 75
         $viewModel = new JsonModel($result);
76 76
         /* @var \Zend\Http\Response $response */
77 77
         $response = $this->getResponse();
78 78
 
79 79
         $date = new \DateTime();
80
-        $expires=$date->modify('+100 day');
80
+        $expires = $date->modify('+100 day');
81 81
 
82 82
         $response->getHeaders()
83
-            ->addHeaderLine('Pragma','cache')
84
-            ->addHeaderLine('Cache-Control',"max-age=290304000, public")
85
-            ->addHeaderLine('Expires',$expires->format(\DateTime::RFC1036));
83
+            ->addHeaderLine('Pragma', 'cache')
84
+            ->addHeaderLine('Cache-Control', "max-age=290304000, public")
85
+            ->addHeaderLine('Expires', $expires->format(\DateTime::RFC1036));
86 86
 
87 87
         return $viewModel;
88 88
     }
Please login to merge, or discard this patch.
module/Geo/src/Geo/Form/GeoText.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -143,13 +143,13 @@  discard block
 block discarded – undo
143 143
         $name = $this->getName();
144 144
         $id = str_replace(array('[', ']'), array('-', ''), $name);
145 145
         $this->setAttribute('id', $id);
146
-        $this->nameElement->setName($name . '[name]')
147
-                          ->setAttribute('id', $id . '-name')
146
+        $this->nameElement->setName($name.'[name]')
147
+                          ->setAttribute('id', $id.'-name')
148 148
                           ->setAttribute('class', 'form-control geolocation');
149
-        $this->dataElement->setName($name . '[data]')
150
-                          ->setAttribute('id', $id . '-data');
151
-        $this->typeElement->setName($name . '[type]')
152
-                          ->setAttribute('id', $id . '-type');
149
+        $this->dataElement->setName($name.'[data]')
150
+                          ->setAttribute('id', $id.'-data');
151
+        $this->typeElement->setName($name.'[type]')
152
+                          ->setAttribute('id', $id.'-type');
153 153
     }
154 154
 
155 155
     /**
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
      *
205 205
      * @return $this
206 206
      */
207
-    public function setValue($value, $type=null)
207
+    public function setValue($value, $type = null)
208 208
     {
209 209
         if ($value instanceOf LocationInterface) {
210 210
             $value = $this->getConverter()->toValue($value, $type ?: $this->typeElement->getValue());
@@ -221,9 +221,9 @@  discard block
 block discarded – undo
221 221
 
222 222
             $lon = $lat = 0;
223 223
             
224
-            foreach($lonLat as $k=>$v) {
225
-                 list($lon,$lat) = explode(',', $v, 2);
226
-                 $latLon[]=$lat.','.$lon;
224
+            foreach ($lonLat as $k=>$v) {
225
+                 list($lon, $lat) = explode(',', $v, 2);
226
+                 $latLon[] = $lat.','.$lon;
227 227
             }
228 228
 
229 229
             $value['data'] = [
@@ -232,8 +232,8 @@  discard block
 block discarded – undo
232 232
                     (float) $lon
233 233
                     ],
234 234
                 'type'=>'Point',
235
-                'city' => substr($value['name'],0,strrpos($value['name'], ',' )),
236
-                'region' =>  substr($value['name'],strrpos($value['name'], ',' )+2),
235
+                'city' => substr($value['name'], 0, strrpos($value['name'], ',')),
236
+                'region' =>  substr($value['name'], strrpos($value['name'], ',') + 2),
237 237
                 'postalcode' =>'',
238 238
                 'country' => 'DE'];
239 239
         }
Please login to merge, or discard this patch.
module/Cv/src/Cv/Form/InputFilter/Employment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     {
27 27
         $this->add([
28 28
             'name' => 'endDate',
29
-            'required' => ! $data['currentIndicator']
29
+            'required' => !$data['currentIndicator']
30 30
         ]);
31 31
         
32 32
         return parent::setData($data);
Please login to merge, or discard this patch.
module/Cv/src/Cv/Form/SearchFormFieldset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
                 ],
63 63
                 'attributes' => [
64 64
                     'value' => '10', // default distance
65
-                    'data-searchbox' => -1,  // hide the search box
65
+                    'data-searchbox' => -1, // hide the search box
66 66
                     'data-allowclear' => 'false', // allow to clear a selected value
67 67
                     'data-placeholder' => /*@translate*/ 'Distance',
68 68
                 ]
Please login to merge, or discard this patch.
module/Cv/src/Cv/Entity/Cv.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      * @var array
83 83
      * @ODM\Collection
84 84
      */
85
-    protected $nativeLanguages=[];
85
+    protected $nativeLanguages = [];
86 86
 
87 87
 
88 88
     /**
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
      */
268 268
     public function setIsDraft($isDraft)
269 269
     {
270
-        $this->isDraft=$isDraft;
270
+        $this->isDraft = $isDraft;
271 271
         return $this;
272 272
     }
273 273
 
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
      */
338 338
     public function setNativeLanguages($nativeLanguages)
339 339
     {
340
-        $this->nativeLanguages=$nativeLanguages;
340
+        $this->nativeLanguages = $nativeLanguages;
341 341
         return $this;
342 342
     }
343 343
 
Please login to merge, or discard this patch.
module/Cv/src/Cv/Entity/PreferredJob.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     
87 87
     public function setDesiredJob($desiredJob)
88 88
     {
89
-        $this->desiredJob=$desiredJob;
89
+        $this->desiredJob = $desiredJob;
90 90
         return $this;
91 91
     }
92 92
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      */
106 106
     public function setDesiredLocation($desiredLocation)
107 107
     {
108
-        $this->desiredLocation=$desiredLocation;
108
+        $this->desiredLocation = $desiredLocation;
109 109
         return $this;
110 110
     }
111 111
 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      */
144 144
     public function setWillingnessToTravel($willingnessToTravel)
145 145
     {
146
-        $this->willingnessToTravel=$willingnessToTravel;
146
+        $this->willingnessToTravel = $willingnessToTravel;
147 147
         return $this;
148 148
     }
149 149
 
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
      */
163 163
     public function setExpectedSalary($expectedSalary)
164 164
     {
165
-        $this->expectedSalary=$expectedSalary;
165
+        $this->expectedSalary = $expectedSalary;
166 166
         return $this;
167 167
     }
168 168
 
Please login to merge, or discard this patch.
module/Applications/src/Applications/Controller/ApplyController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
                 throw new \RuntimeException('Invalid application id.');
92 92
             }
93 93
 
94
-            $action     = 'process';
94
+            $action = 'process';
95 95
 
96 96
             $routeMatch->setParam('action', $action);
97 97
         } else {
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
     {
183 183
         $this->response->setStatusCode(410);
184 184
         $model = new ViewModel(
185
-            [ 'content' => /*@translate*/ 'Invalid apply id']
185
+            ['content' => /*@translate*/ 'Invalid apply id']
186 186
         );
187 187
         $model->setTemplate('applications/error/not-found');
188 188
         return $model;
@@ -360,13 +360,13 @@  discard block
 block discarded – undo
360 360
         }
361 361
 
362 362
         if ('previewmail' == $this->params()->fromQuery('do')) {
363
-            $this->mailer('Applications/CarbonCopy', [ 'application' => $application], true);
363
+            $this->mailer('Applications/CarbonCopy', ['application' => $application], true);
364 364
             $this->notification()->success(/*@translate*/ 'Mail has been send');
365 365
             return new JsonModel();
366 366
         }
367 367
 
368 368
         if ('sendmail' == $this->params()->fromQuery('do')) {
369
-            $jobEntity         = $application->getJob();
369
+            $jobEntity = $application->getJob();
370 370
 
371 371
             $mailData = array(
372 372
                 'application' => $application,
@@ -396,8 +396,8 @@  discard block
 block discarded – undo
396 396
 
397 397
         $repositories->store($application);
398 398
         
399
-        $events   = $services->get('Applications/Events');
400
-        $events->trigger(ApplicationEvent::EVENT_APPLICATION_POST_CREATE, $this, [ 'application' => $application ]);
399
+        $events = $services->get('Applications/Events');
400
+        $events->trigger(ApplicationEvent::EVENT_APPLICATION_POST_CREATE, $this, ['application' => $application]);
401 401
 
402 402
         $model = new ViewModel(
403 403
             array(
Please login to merge, or discard this patch.