Completed
Push — develop ( a791bf...3a1732 )
by
unknown
08:09
created
module/Jobs/src/Jobs/Form/ListFilterLocationFieldset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
                 ),
56 56
                 'attributes' => [
57 57
                     'value' => '10', // default distance
58
-                    'data-searchbox'  => -1,  // hide the search box
58
+                    'data-searchbox'  => -1, // hide the search box
59 59
                     'data-allowclear' => 'false', // allow to clear a selected value
60 60
                     'data-placeholder'  => /*@translate*/ 'Distance',
61 61
                 ]
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Controller/TemplateController.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
     protected function editTemplateAction()
81 81
     {
82 82
         $id = $this->params('id');
83
-        $formIdentifier=$this->params()->fromQuery('form');
83
+        $formIdentifier = $this->params()->fromQuery('form');
84 84
         $job = $this->jobRepository->find($id);
85 85
 
86 86
         /** @var \Zend\Http\Request $request */
Please login to merge, or discard this patch.
module/Applications/src/Applications/Controller/MultimanageController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,6 +144,6 @@
 block discarded – undo
144 144
             $repositoryService->store($application);
145 145
             unset($mail);
146 146
         }
147
-        return new JsonModel(array('ok' => true, ));
147
+        return new JsonModel(array('ok' => true,));
148 148
     }
149 149
 }
Please login to merge, or discard this patch.
module/Applications/src/Applications/Controller/ApplyController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
                 throw new \RuntimeException('Invalid application id.');
93 93
             }
94 94
 
95
-            $action     = 'process';
95
+            $action = 'process';
96 96
 
97 97
             $routeMatch->setParam('action', $action);
98 98
         } else {
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
     {
184 184
         $this->response->setStatusCode(410);
185 185
         $model = new ViewModel(
186
-            [ 'content' => /*@translate*/ 'Invalid apply id']
186
+            ['content' => /*@translate*/ 'Invalid apply id']
187 187
         );
188 188
         $model->setTemplate('applications/error/not-found');
189 189
         return $model;
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
         }
283 283
 
284 284
         if ('sendmail' == $this->params()->fromQuery('do')) {
285
-            $jobEntity         = $application->job;
285
+            $jobEntity = $application->job;
286 286
             ;
287 287
             $mailData = array(
288 288
                 'application' => $application,
Please login to merge, or discard this patch.
module/Applications/src/Applications/Controller/ManageController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         }
84 84
         $statusElement->setValueOptions($statesForSelections);
85 85
         
86
-        $job = $params->job ? $jobRepository->find($params->job)  : null;
86
+        $job = $params->job ? $jobRepository->find($params->job) : null;
87 87
         $paginator = $this->paginator('Applications');
88 88
 
89 89
         if ($job) {
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 
150 150
 
151 151
         
152
-        $format=$this->params()->fromQuery('format');
152
+        $format = $this->params()->fromQuery('format');
153 153
 
154 154
         if ($application->isDraft()) {
155 155
             $list = false;
@@ -330,13 +330,13 @@  discard block
 block discarded – undo
330 330
                 $key = 'mailRejectionText';
331 331
                 break;
332 332
             default:
333
-                throw new \InvalidArgumentException('Unknown status value: ' .$status);
333
+                throw new \InvalidArgumentException('Unknown status value: ' . $status);
334 334
         }
335
-        $mailText      = $settings->$key ? $settings->$key : '';
335
+        $mailText = $settings->$key ? $settings->$key : '';
336 336
         $this->notification()->success($mailText);
337 337
         $mail->setBody($mailText);
338 338
         $mailText = $mail->getBodyText();
339
-        $mailSubject   = sprintf(
339
+        $mailSubject = sprintf(
340 340
             $translator->translate('Your application dated %s'),
341 341
             strftime('%x', $application->getDateCreated()->getTimestamp())
342 342
         );
@@ -374,7 +374,7 @@  discard block
 block discarded – undo
374 374
         
375 375
         $this->acl($application, 'forward');
376 376
         
377
-        $translator   = $services->get('translator');
377
+        $translator = $services->get('translator');
378 378
          
379 379
         if (!$emailAddress) {
380 380
             throw new \InvalidArgumentException('An email address must be supplied.');
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
     {
416 416
         $id          = $this->params('id');
417 417
         $services    = $this->getServiceLocator();
418
-        $repositories= $services->get('repositories');
418
+        $repositories = $services->get('repositories');
419 419
         $repository  = $repositories->get('Applications/Application');
420 420
         $application = $repository->find($id);
421 421
         
Please login to merge, or discard this patch.
module/Applications/src/Applications/Form/SettingsFieldset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
             array('type' => 'Zend\Form\Element\Textarea',
69 69
                         'name' => 'mailConfirmationText',
70 70
                          'options' => array('label' => /* @translate */ 'Confirmation mail text',
71
-                                            'description' => /* @translate */ 'default text of the acknowledgment of receipt mail to the applicant. The following variables can be used:<br><ul><li>##anrede_formell## = salutation. Includes gender, firstname and lastname.<li>##anrede_informell## = salutation. Includes fistname and lastname.</li><li>##job_title## = title of the jobs</li><li>##name## = name of the applicant.</li><li>##date## = date of recipt of the application.</li></ul>' ))
71
+                                            'description' => /* @translate */ 'default text of the acknowledgment of receipt mail to the applicant. The following variables can be used:<br><ul><li>##anrede_formell## = salutation. Includes gender, firstname and lastname.<li>##anrede_informell## = salutation. Includes fistname and lastname.</li><li>##job_title## = title of the jobs</li><li>##name## = name of the applicant.</li><li>##date## = date of recipt of the application.</li></ul>'))
72 72
         );
73 73
         
74 74
         $this->add(
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/Jobs/src/Jobs/Controller/ConsoleController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,10 +39,10 @@  discard block
 block discarded – undo
39 39
                     
40 40
                 case "days":
41 41
                     $date = new \DateTime();
42
-                    $date->modify('-' . (int) $value. ' day');
42
+                    $date->modify('-' . (int) $value . ' day');
43 43
                     $q = array('$lt' => $date);
44 44
                     if (isset($query['datePublishStart.date'])) {
45
-                        $query['datePublishStart.date']= array_merge(
45
+                        $query['datePublishStart.date'] = array_merge(
46 46
                             $query['datePublishStart.date'],
47 47
                             $q
48 48
                         );
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         
73 73
         echo "$count jobs found, which have to expire ...\n";
74 74
         
75
-        $progress     = new ProgressBar(
75
+        $progress = new ProgressBar(
76 76
             new ConsoleAdapter(
77 77
                 array(
78 78
                 'elements' => array(
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
                 continue;
133 133
             }
134 134
             try {
135
-                $group       = $user->getGroup($job->getCompany());
135
+                $group = $user->getGroup($job->getCompany());
136 136
             } catch (\Exception $e) {
137 137
                 continue;
138 138
             }
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Controller/ImportController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
                         $entity = $repositoriesJob->findOneBy(array("applyId" => (string) $applyId));
106 106
                         if (!isset($entity)) {
107 107
                             // new Job (the more likely branch)
108
-                            $entity =$repositoriesJob->create(array("applyId" => (string) $applyId));
108
+                            $entity = $repositoriesJob->create(array("applyId" => (string) $applyId));
109 109
                         } else {
110 110
                             $createdJob = false;
111 111
                         }
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
                             $jobLocations->clear();
195 195
                             foreach ($locations as $locData) {
196 196
                                 $location = new Location();
197
-                                $coords = array_map(function ($i) { return (float) $i; }, $locData['coordinates']);
197
+                                $coords = array_map(function($i) { return (float) $i; }, $locData['coordinates']);
198 198
                                 $location->setCountry($locData['country'])
199 199
                                          ->setRegion($locData['region'])
200 200
                                          ->setCity($locData['city'])
Please login to merge, or discard this patch.