Completed
Branch develop (bc6cb3)
by Carsten
37:10 queued 26:53
created
module/Applications/src/Applications/Controller/IndexController.php 2 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     */
9 9
 
10 10
 /** Applications controller */
11 11
 namespace Applications\Controller;
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
                             $ackMail = $this->mailer(
217 217
                                 'Applications/Confirmation',
218 218
                                 array('application' => $applicationEntity,
219
-                                                  'body' => $ackBody,
219
+                                                    'body' => $ackBody,
220 220
                                             )
221 221
                             );
222 222
                             // Must be called after initializers in creation
@@ -233,14 +233,14 @@  discard block
 block discarded – undo
233 233
                     if (isset($paramsCC) && array_key_exists('carboncopy', $paramsCC)) {
234 234
                         $wantCarbonCopy = (int) $paramsCC['carboncopy'];
235 235
                         if ($wantCarbonCopy) {
236
-                             $mail = $this->mailer(
237
-                                 'Applications/CarbonCopy',
238
-                                 array(
236
+                                $mail = $this->mailer(
237
+                                    'Applications/CarbonCopy',
238
+                                    array(
239 239
                                     'application' => $applicationEntity,
240 240
                                     'to'          => $applicationEntity->contact->email,
241
-                                 ), /*send*/
242
-                                 true
243
-                             );
241
+                                    ), /*send*/
242
+                                    true
243
+                                );
244 244
                         }
245 245
                     }
246 246
                 }
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
             $params->set('by', 'me');
279 279
         }
280 280
 
281
-         //default sorting
281
+            //default sorting
282 282
         if (!isset($params['sort'])) {
283 283
             $params['sort']="-date";
284 284
         }
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
         $services          = $this->getServiceLocator();
303 303
         $config            = $services->get('Config');
304 304
         $applicationId     = $this->getRequest()
305
-                                  ->getQuery('id');
305
+                                    ->getQuery('id');
306 306
         $status            = $this->params('status');
307 307
         $repositories      = $services->get('repositories');
308 308
         $entityApplication = $repositories->get('Applications/Application')->find($applicationId);
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
 
334 334
                 $mail = $this->mailer('Applications/CarbonCopy', $mailData, true);
335 335
                 $this->notification()
336
-                     ->success(/*@translate*/ 'Mail has been send');
336
+                        ->success(/*@translate*/ 'Mail has been send');
337 337
                 if ($status == 'company') {
338 338
                     $repositories->remove($entityApplication);
339 339
                     $this->notification()->info(/*@translate*/ 'Application data has been deleted');
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
         $job = ($request->isPost() && !empty($jobId))
76 76
              ? $services->get('repositories')->get('Jobs/Job')->find($jobId)
77
-             : $services->get('repositories')->get('Jobs/Job')->findOneBy(array("applyId"=>(0 == $applyId)?$this->params('jobId'):$applyId));
77
+             : $services->get('repositories')->get('Jobs/Job')->findOneBy(array("applyId"=>(0 == $applyId) ? $this->params('jobId') : $applyId));
78 78
         
79 79
         
80 80
         if (!$job) {
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
 
281 281
          //default sorting
282 282
         if (!isset($params['sort'])) {
283
-            $params['sort']="-date";
283
+            $params['sort'] = "-date";
284 284
         }
285 285
         $params->count = 5;
286 286
         $this->paginationParams()->setParams('Applications\Index', $params);
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
             $jobEntity         = $entityApplication->job;
313 313
             $applicantEmail    = $entityApplication->contact->email;
314 314
             $organizationEmail = $jobEntity->contactEmail;
315
-            $mailAddress        = null;
315
+            $mailAddress = null;
316 316
             switch ($status == 'test') {
317 317
                 case 'company':
318 318
                     $mailAddress = $organizationEmail;
Please login to merge, or discard this patch.
module/Applications/src/Applications/Controller/ManageController.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     */
9 9
 
10 10
 /** Applications controller */
11 11
 namespace Applications\Controller;
@@ -176,9 +176,9 @@  discard block
 block discarded – undo
176 176
                         $viewModel->setVariables(
177 177
                             /*array(
178 178
                             'application' => */$this->getServiceLocator()
179
-                                              ->get('builders')
180
-                                              ->get('JsonApplication')
181
-                                              ->unbuild($application)
179
+                                                ->get('builders')
180
+                                                ->get('JsonApplication')
181
+                                                ->unbuild($application)
182 182
                         );
183 183
                         $viewModel->setVariable('isUnread', $applicationIsUnread);
184 184
                         $return = $viewModel;
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
         $services     = $this->getServiceLocator();
367 367
         $emailAddress = $this->params()->fromQuery('email');
368 368
         $application  = $services->get('repositories')->get('Applications/Application')
369
-                                 ->find($this->params('id'));
369
+                                    ->find($this->params('id'));
370 370
         
371 371
         $this->acl($application, 'forward');
372 372
         
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         }
95 95
         $statusElement->setValueOptions($statesForSelections);
96 96
         
97
-        $job = $params->job ? $jobRepository->find($params->job)  : null;
97
+        $job = $params->job ? $jobRepository->find($params->job) : null;
98 98
         $paginator = $this->paginator('Applications/Application', $params);
99 99
 
100 100
         if ($job) {
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
         }
155 155
         
156 156
         
157
-        $format=$this->params()->fromQuery('format');
157
+        $format = $this->params()->fromQuery('format');
158 158
 
159 159
         if ($application->isDraft()) {
160 160
             $list = false;
@@ -327,11 +327,11 @@  discard block
 block discarded – undo
327 327
                 $key = 'mailRejectionText';
328 328
                 break;
329 329
         }
330
-        $mailText      = $settings->$key ? $settings->$key : '';
330
+        $mailText = $settings->$key ? $settings->$key : '';
331 331
         $this->notification()->success($mailText);
332 332
         $mail->setBody($mailText);
333 333
         $mailText = $mail->getBodyText();
334
-        $mailSubject   = sprintf(
334
+        $mailSubject = sprintf(
335 335
             $translator->translate('Your application dated %s'),
336 336
             strftime('%x', $application->dateCreated->getTimestamp())
337 337
         );
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
         
371 371
         $this->acl($application, 'forward');
372 372
         
373
-        $translator   = $services->get('translator');
373
+        $translator = $services->get('translator');
374 374
          
375 375
         if (!$emailAddress) {
376 376
             throw new \InvalidArgumentException('An email address must be supplied.');
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
     {
414 414
         $id          = $this->params('id');
415 415
         $services    = $this->getServiceLocator();
416
-        $repositories= $services->get('repositories');
416
+        $repositories = $services->get('repositories');
417 417
         $repository  = $repositories->get('Applications/Application');
418 418
         $application = $repository->find($id);
419 419
         
Please login to merge, or discard this patch.
module/Applications/src/Applications/Controller/MultimanageController.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     */
9 9
 
10 10
 /** Applications controller */
11 11
 namespace Applications\Controller;
Please login to merge, or discard this patch.
module/Applications/src/Applications/Entity/Attachment.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,6 +33,6 @@
 block discarded – undo
33 33
      */
34 34
     function getUri()
35 35
     {
36
-        return "/file/Applications.Attachment/" . $this->id . "/" .urlencode($this->name);
36
+        return "/file/Applications.Attachment/" . $this->id . "/" . urlencode($this->name);
37 37
     }
38 38
 }
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @license MIT
7
- * @copyright  2013 - 2015 Cross Solution <http://cross-solution.de>
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @license MIT
7
+     * @copyright  2013 - 2015 Cross Solution <http://cross-solution.de>
8
+     */
9 9
   
10 10
 /** */
11 11
 namespace Organizations\Repository\Event;
Please login to merge, or discard this patch.
module/Applications/src/Applications/Entity/Status.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,8 @@
 block discarded – undo
53 53
         if (!defined($constant)) {
54 54
             throw new \DomainException('Unknown status: ' . $status);
55 55
         }
56
-        $this->name=constant($constant);
57
-        $this->order=$this->getOrder();
56
+        $this->name = constant($constant);
57
+        $this->order = $this->getOrder();
58 58
     }
59 59
 
60 60
     /**
Please login to merge, or discard this patch.
module/Applications/src/Applications/Entity/StatusInterface.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     /**
21 21
      * A new application has been received
22 22
      */
23
-    const INCOMING  = 'incoming';
23
+    const INCOMING = 'incoming';
24 24
 
25 25
     /**
26 26
      * An acknowledgement of receipt has been sent
@@ -30,12 +30,12 @@  discard block
 block discarded – undo
30 30
     /**
31 31
      * An applicant ist invited to in interview
32 32
      */
33
-    const INVITED   = 'invited';
33
+    const INVITED = 'invited';
34 34
 
35 35
     /**
36 36
      * The applicant has been canceled
37 37
      */
38
-    const REJECTED  = 'rejected';
38
+    const REJECTED = 'rejected';
39 39
     
40 40
     public function __construct($status = self::INCOMING);
41 41
 
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     */
9 9
 
10 10
 /** SettingsEntityResolverFactory.php */
11 11
 namespace Settings\Repository;
Please login to merge, or discard this patch.
module/Applications/src/Applications/Factory/Form/AttachmentsFactory.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     */
9 9
 
10 10
 /**  */
11 11
 namespace Applications\Factory\Form;
@@ -68,11 +68,11 @@  discard block
 block discarded – undo
68 68
     protected function configureForm($form, AbstractOptions $options)
69 69
     {
70 70
         $form->setIsDisableCapable(false)
71
-             ->setIsDisableElementsCapable(false)
72
-             ->setIsDescriptionsEnabled(true)
73
-             ->setDescription(/*@translate*/ 'Attach images or PDF Documents to your application. Drag&drop them, or click into the attachement area. You can upload up to 5MB')
74
-             ->setParam('return', 'file-uri')
75
-             ->setLabel(/*@translate*/ 'Attachments');
71
+                ->setIsDisableElementsCapable(false)
72
+                ->setIsDescriptionsEnabled(true)
73
+                ->setDescription(/*@translate*/ 'Attach images or PDF Documents to your application. Drag&drop them, or click into the attachement area. You can upload up to 5MB')
74
+                ->setParam('return', 'file-uri')
75
+                ->setLabel(/*@translate*/ 'Attachments');
76 76
 
77 77
         /** @var $file FileUpload*/
78 78
         $file = $form->get($this->fileName);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 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
     /**
Please login to merge, or discard this patch.
module/Applications/src/Applications/Form/Attributes.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     */
9 9
 
10 10
 /**  */
11 11
 namespace Applications\Form;
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
     public function init()
26 26
     {
27 27
         $this->setIsDisableCapable(false)
28
-             ->setIsDisableElementsCapable(false)
29
-             ->setAttribute('data-submit-on', 'checkbox');
28
+                ->setIsDisableElementsCapable(false)
29
+                ->setAttribute('data-submit-on', 'checkbox');
30 30
 
31 31
         $this->add(
32 32
             array(
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
                 'route' => 'lang/content',
55 55
                 'params' => array(
56 56
                     'view' => 'applications-privacy-policy'
57
-                 )
57
+                    )
58 58
             ),
59 59
             'attributes' => array(
60 60
                 'data-validate' => 'acceptedPrivacyPolicy',
Please login to merge, or discard this patch.
module/Applications/src/Applications/Form/Base.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      *
25 25
      * @var string
26 26
      */
27
-    protected $label        = /*@translate*/ 'Cover Letter';
27
+    protected $label = /*@translate*/ 'Cover Letter';
28 28
     
29 29
     /**
30 30
      * {@inheritDoc}
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     */
9 9
 
10 10
 /** SettingsEntityResolverFactory.php */
11 11
 namespace Settings\Repository;
Please login to merge, or discard this patch.