Completed
Push — develop ( 29e407...41c7f2 )
by
unknown
37:38 queued 29:25
created
src/Applications/Factory/Listener/EventApplicationCreatedFactory.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      *
28 28
      * @param ServiceLocatorInterface $serviceLocator
29 29
      *
30
-     * @return mixed
30
+     * @return EventApplicationCreated
31 31
      */
32 32
     public function createService(ServiceLocatorInterface $serviceLocator)
33 33
     {
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 - 2016 Cross Solution <http://cross-solution.de>
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @license MIT
7
+     * @copyright  2013 - 2016 Cross Solution <http://cross-solution.de>
8
+     */
9 9
   
10 10
 /** */
11 11
 namespace JobsTest\Form;
Please login to merge, or discard this patch.
module/Applications/src/Applications/Controller/ManageController.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         }
85 85
         $statusElement->setValueOptions($statesForSelections);
86 86
         
87
-        $job = $params->job ? $jobRepository->find($params->job)  : null;
87
+        $job = $params->job ? $jobRepository->find($params->job) : null;
88 88
         $paginator = $this->paginator('Applications');
89 89
 
90 90
         if ($job) {
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 
151 151
 
152 152
         
153
-        $format=$this->params()->fromQuery('format');
153
+        $format = $this->params()->fromQuery('format');
154 154
 
155 155
         if ($application->isDraft()) {
156 156
             $list = false;
@@ -331,13 +331,13 @@  discard block
 block discarded – undo
331 331
                 $key = 'mailRejectionText';
332 332
                 break;
333 333
             default:
334
-                throw new \InvalidArgumentException('Unknown status value: ' .$status);
334
+                throw new \InvalidArgumentException('Unknown status value: ' . $status);
335 335
         }
336
-        $mailText      = $settings->$key ? $settings->$key : '';
336
+        $mailText = $settings->$key ? $settings->$key : '';
337 337
         $this->notification()->success($mailText);
338 338
         $mail->setBody($mailText);
339 339
         $mailText = $mail->getBodyText();
340
-        $mailSubject   = sprintf(
340
+        $mailSubject = sprintf(
341 341
             $translator->translate('Your application dated %s'),
342 342
             strftime('%x', $application->getDateCreated()->getTimestamp())
343 343
         );
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
         
376 376
         $this->acl($application, 'forward');
377 377
         
378
-        $translator   = $services->get('translator');
378
+        $translator = $services->get('translator');
379 379
          
380 380
         if (!$emailAddress) {
381 381
             throw new \InvalidArgumentException('An email address must be supplied.');
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
     {
417 417
         $id          = $this->params('id');
418 418
         $services    = $this->getServiceLocator();
419
-        $repositories= $services->get('repositories');
419
+        $repositories = $services->get('repositories');
420 420
         $repository  = $repositories->get('Applications/Application');
421 421
         $application = $repository->find($id);
422 422
         
@@ -426,8 +426,8 @@  discard block
 block discarded – undo
426 426
 
427 427
         $this->acl($application, 'delete');
428 428
 
429
-        $events   = $services->get('Applications/Events');
430
-        $events->trigger(ApplicationEvent::EVENT_APPLICATION_PRE_DELETE, $this, [ 'application' => $application ]);
429
+        $events = $services->get('Applications/Events');
430
+        $events->trigger(ApplicationEvent::EVENT_APPLICATION_PRE_DELETE, $this, ['application' => $application]);
431 431
         
432 432
         $repositories->remove($application);
433 433
         
Please login to merge, or discard this patch.
module/Applications/src/Applications/Controller/ApplyController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
                 throw new \RuntimeException('Invalid application id.');
94 94
             }
95 95
 
96
-            $action     = 'process';
96
+            $action = 'process';
97 97
 
98 98
             $routeMatch->setParam('action', $action);
99 99
         } else {
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
     {
185 185
         $this->response->setStatusCode(410);
186 186
         $model = new ViewModel(
187
-            [ 'content' => /*@translate*/ 'Invalid apply id']
187
+            ['content' => /*@translate*/ 'Invalid apply id']
188 188
         );
189 189
         $model->setTemplate('applications/error/not-found');
190 190
         return $model;
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
         }
284 284
 
285 285
         if ('sendmail' == $this->params()->fromQuery('do')) {
286
-            $jobEntity         = $application->job;
286
+            $jobEntity = $application->job;
287 287
             ;
288 288
             $mailData = array(
289 289
                 'application' => $application,
@@ -311,8 +311,8 @@  discard block
 block discarded – undo
311 311
             ->revoke($this->auth()->getUser(), PermissionsInterface::PERMISSION_CHANGE)
312 312
             ->inherit($application->getJob()->getPermissions());
313 313
 
314
-        $events   = $services->get('Applications/Events');
315
-        $events->trigger(ApplicationEvent::EVENT_APPLICATION_POST_CREATE, $this, [ 'application' => $application ]);
314
+        $events = $services->get('Applications/Events');
315
+        $events->trigger(ApplicationEvent::EVENT_APPLICATION_POST_CREATE, $this, ['application' => $application]);
316 316
 
317 317
         $model = new ViewModel(
318 318
             array(
Please login to merge, or discard this patch.
module/Applications/src/Applications/Listener/Events/ApplicationEvent.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @filesource
6
- * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de)
7
- * @license   MIT
8
- * @author    [email protected]
9
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     * @author    [email protected]
9
+     */
10 10
 
11 11
 namespace Organizations\Form;
12 12
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,12 +29,12 @@
 block discarded – undo
29 29
     /**
30 30
      * Event is fired when a new application is saved.
31 31
      */
32
-    const EVENT_APPLICATION_POST_CREATE   = 'application.post.create';
32
+    const EVENT_APPLICATION_POST_CREATE = 'application.post.create';
33 33
 
34 34
     /**
35 35
      * Event is fired when a users deleted application
36 36
      */
37
-    const EVENT_APPLICATION_PRE_DELETE   = 'application.pre.delete';
37
+    const EVENT_APPLICATION_PRE_DELETE = 'application.pre.delete';
38 38
 
39 39
     /**
40 40
      * @var Application $application
Please login to merge, or discard this patch.
module/Applications/src/Applications/Listener/EventApplicationCreated.php 3 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
- * @license MIT
7
- * @copyright  2013 - 2016 Cross Solution <http://cross-solution.de>
8
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @license MIT
7
+     * @copyright  2013 - 2016 Cross Solution <http://cross-solution.de>
8
+     */
9 9
   
10 10
 /** */
11 11
 namespace Applications\Listener;
@@ -95,11 +95,11 @@  discard block
 block discarded – undo
95 95
     {
96 96
         if ($this->application->getAttributes()->getSendCarbonCopy()) {
97 97
             $this->mailService->get(
98
-                 'Applications/CarbonCopy',
99
-                 [
100
-                     'application' => $this->application
101
-                 ],
102
-                 /*send*/ true
98
+                    'Applications/CarbonCopy',
99
+                    [
100
+                        'application' => $this->application
101
+                    ],
102
+                    /*send*/ true
103 103
             );
104 104
         }
105 105
     }
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      * @param ModuleOptions $options
35 35
      * @param MailService   $mailService
36 36
      */
37
-    public function __construct(ModuleOptions $options,MailService $mailService)
37
+    public function __construct(ModuleOptions $options, MailService $mailService)
38 38
     {
39 39
         $this->options = $options;
40 40
         $this->mailService = $mailService;
@@ -107,26 +107,26 @@  discard block
 block discarded – undo
107 107
     /**
108 108
      * @return \Auth\Entity\UserInterface
109 109
      */
110
-    public function getRecruiter(){
110
+    public function getRecruiter() {
111 111
         return $this->getJob()->getUser();
112 112
     }
113 113
 
114 114
     /**
115 115
      * @return \Jobs\Entity\JobInterface
116 116
      */
117
-    public function getJob(){
117
+    public function getJob() {
118 118
         return $this->application->getJob();
119 119
     }
120 120
 
121 121
     /**
122 122
      * @return \Auth\Entity\UserInterface|bool
123 123
      */
124
-    public function getOrganizationAdmin(){
125
-        if ($this->getRecruiter()->getOrganization()->isOwner()){
124
+    public function getOrganizationAdmin() {
125
+        if ($this->getRecruiter()->getOrganization()->isOwner()) {
126 126
             return $this->getRecruiter();
127
-        }elseif($this->getRecruiter()->getOrganization()->hasAssociation()) {
127
+        }elseif ($this->getRecruiter()->getOrganization()->hasAssociation()) {
128 128
             return $this->getRecruiter()->getOrganization()->getOrganization()->getUser();
129
-        }else{
129
+        } else {
130 130
             return false;
131 131
         }
132 132
     }
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -124,9 +124,9 @@
 block discarded – undo
124 124
     public function getOrganizationAdmin(){
125 125
         if ($this->getRecruiter()->getOrganization()->isOwner()){
126 126
             return $this->getRecruiter();
127
-        }elseif($this->getRecruiter()->getOrganization()->hasAssociation()) {
127
+        } elseif($this->getRecruiter()->getOrganization()->hasAssociation()) {
128 128
             return $this->getRecruiter()->getOrganization()->getOrganization()->getUser();
129
-        }else{
129
+        } else{
130 130
             return false;
131 131
         }
132 132
     }
Please login to merge, or discard this patch.
module/Applications/config/module.config.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -10,21 +10,21 @@  discard block
 block discarded – undo
10 10
 
11 11
 return array(
12 12
     'doctrine' => array(
13
-       'driver' => array(
13
+        'driver' => array(
14 14
             'odm_default' => array(
15 15
                 'drivers' => array(
16 16
                     'Applications\Entity' => 'annotation',
17 17
                 ),
18 18
             ),
19 19
             'annotation' => array(
20
-               /*
20
+                /*
21 21
                 * All drivers (except DriverChain) require paths to work on. You
22 22
                 * may set this value as a string (for a single path) or an array
23 23
                 * for multiple paths.
24 24
                 * example https://github.com/doctrine/DoctrineORMModule
25 25
                 */
26
-               'paths' => array( __DIR__ . '/../src/Applications/Entity',
27
-                                 __DIR__ . '/../../../module/Cv/src/Cv/Entity'),
26
+                'paths' => array( __DIR__ . '/../src/Applications/Entity',
27
+                                    __DIR__ . '/../../../module/Cv/src/Cv/Entity'),
28 28
             ),
29 29
         ),
30 30
         'eventmanager' => array(
@@ -64,11 +64,11 @@  discard block
 block discarded – undo
64 64
             'Applications/Options/ModuleOptions' => 'Applications\Options\ModuleOptions'
65 65
         ),
66 66
         'factories' => array(
67
-           'Applications/Options' => 'Applications\Factory\ModuleOptionsFactory',
68
-           'ApplicationRepository' => 'Applications\Repository\Service\ApplicationRepositoryFactory',
69
-           'ApplicationMapper' => 'Applications\Repository\Service\ApplicationMapperFactory',
70
-           'EducationMapper'   => 'Applications\Repository\Service\EducationMapperFactory',
71
-           'Applications/Listener/ApplicationCreated' => 'Applications\Factory\Listener\EventApplicationCreatedFactory'
67
+            'Applications/Options' => 'Applications\Factory\ModuleOptionsFactory',
68
+            'ApplicationRepository' => 'Applications\Repository\Service\ApplicationRepositoryFactory',
69
+            'ApplicationMapper' => 'Applications\Repository\Service\ApplicationMapperFactory',
70
+            'EducationMapper'   => 'Applications\Repository\Service\EducationMapperFactory',
71
+            'Applications/Listener/ApplicationCreated' => 'Applications\Factory\Listener\EventApplicationCreatedFactory'
72 72
         ),
73 73
     ),
74 74
     'controllers' => array(
@@ -165,25 +165,25 @@  discard block
 block discarded – undo
165 165
     ),
166 166
     'form_elements' => array(
167 167
         'invokables' => array(
168
-             'Applications/Mail' => 'Applications\Form\Mail',
169
-             'Applications/BaseFieldset' => 'Applications\Form\BaseFieldset',
170
-             'Applications/SettingsFieldset' => 'Applications\Form\SettingsFieldset',
171
-             'Applications/CommentForm' => 'Applications\Form\CommentForm',
172
-             'Applications/CommentFieldset' => 'Applications\Form\CommentFieldset',
173
-             'Applications/Apply' => 'Applications\Form\Apply',
174
-             'Applications/Contact' => 'Applications\Form\ContactContainer',
175
-             'Applications/Base'  => 'Applications\Form\Base',
176
-             'Applications/Facts' => 'Applications\Form\Facts',
177
-             'Applications/FactsFieldset' => 'Applications\Form\FactsFieldset',
178
-             'Applications/Attributes' => 'Applications\Form\Attributes',
179
-             'Applications/Filter' => 'Applications\Form\FilterApplication',
180
-             'href' => 'Applications\Form\Element\Ref',
181
-         ),
168
+                'Applications/Mail' => 'Applications\Form\Mail',
169
+                'Applications/BaseFieldset' => 'Applications\Form\BaseFieldset',
170
+                'Applications/SettingsFieldset' => 'Applications\Form\SettingsFieldset',
171
+                'Applications/CommentForm' => 'Applications\Form\CommentForm',
172
+                'Applications/CommentFieldset' => 'Applications\Form\CommentFieldset',
173
+                'Applications/Apply' => 'Applications\Form\Apply',
174
+                'Applications/Contact' => 'Applications\Form\ContactContainer',
175
+                'Applications/Base'  => 'Applications\Form\Base',
176
+                'Applications/Facts' => 'Applications\Form\Facts',
177
+                'Applications/FactsFieldset' => 'Applications\Form\FactsFieldset',
178
+                'Applications/Attributes' => 'Applications\Form\Attributes',
179
+                'Applications/Filter' => 'Applications\Form\FilterApplication',
180
+                'href' => 'Applications\Form\Element\Ref',
181
+            ),
182 182
         'factories' => array(
183 183
             'Applications/ContactImage' => 'Applications\Factory\Form\ContactImageFactory',
184 184
             'Applications/Attachments' => 'Applications\Factory\Form\AttachmentsFactory',
185 185
         ),
186
-     ),
186
+        ),
187 187
 
188 188
     'form_elements_config' => array(
189 189
         'Applications/Apply' => array(
Please login to merge, or discard this patch.
module/Applications/src/Applications/Options/ModuleOptions.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
 
80 80
     protected $workflow = [
81 81
 
82
-      'recruiter',
82
+        'recruiter',
83 83
     ];
84 84
 
85 85
     /**
Please login to merge, or discard this patch.