Completed
Push — develop ( dce9ea...970920 )
by Mathias
30s queued 20s
created
module/Jobs/src/Jobs/Controller/AdminController.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -26,34 +26,34 @@  discard block
 block discarded – undo
26 26
  */
27 27
 class AdminController extends AbstractActionController implements ContainerAwareInterface
28 28
 {
29
-	/**
30
-	 * @var RepositoryService
31
-	 */
32
-	private $repositories;
29
+    /**
30
+     * @var RepositoryService
31
+     */
32
+    private $repositories;
33 33
 	
34
-	/**
35
-	 * @var FormElementManagerTrait
36
-	 */
37
-	private $formManager;
34
+    /**
35
+     * @var FormElementManagerTrait
36
+     */
37
+    private $formManager;
38 38
 	
39
-	private $jobEvents;
39
+    private $jobEvents;
40 40
 	
41
-	static public function factory(ContainerInterface $container)
42
-	{
43
-		$ob = new self();
44
-		$ob->setContainer($container);
45
-		return $ob;
46
-	}
41
+    static public function factory(ContainerInterface $container)
42
+    {
43
+        $ob = new self();
44
+        $ob->setContainer($container);
45
+        return $ob;
46
+    }
47 47
 	
48
-	public function setContainer( ContainerInterface $container )
49
-	{
50
-		$this->repositories     = $container->get('repositories');
51
-		$this->formManager      = $container->get('forms');
52
-		$this->jobEvents        = $container->get('Jobs/Events');
53
-	}
48
+    public function setContainer( ContainerInterface $container )
49
+    {
50
+        $this->repositories     = $container->get('repositories');
51
+        $this->formManager      = $container->get('forms');
52
+        $this->jobEvents        = $container->get('Jobs/Events');
53
+    }
54 54
 	
55 55
 	
56
-	public function indexAction()
56
+    public function indexAction()
57 57
     {
58 58
         $params = $this->params()->fromQuery();
59 59
         return $this->pagination([
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
             return new JsonModel([
92 92
                 'valid' => $valid,
93 93
                 'errors' => $errors
94
-                                 ]);
94
+                                    ]);
95 95
         }
96 96
 
97 97
         $form->bind($job);
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Controller/ManageController.php 1 patch
Indentation   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -66,16 +66,16 @@  discard block
 block discarded – undo
66 66
      */
67 67
     protected $translator;
68 68
 	
69
-	/**
70
-	 * @var FilterPluginManager
71
-	 */
69
+    /**
70
+     * @var FilterPluginManager
71
+     */
72 72
     protected $filterManager;
73 73
     
74 74
     protected $jobFormEvents;
75 75
 	
76
-	/**
77
-	 * @var
78
-	 */
76
+    /**
77
+     * @var
78
+     */
79 79
     protected $formManager;
80 80
     
81 81
     protected $options;
@@ -88,35 +88,35 @@  discard block
 block discarded – undo
88 88
     
89 89
     protected $jobEvent;
90 90
 	
91
-	/**
92
-	 * ManageController constructor.
93
-	 *
94
-	 * @TODO: [ZF3] make this controller more thin, looks like so much things to do
95
-	 *
96
-	 * @param AuthenticationService $auth
97
-	 * @param RepositoryService $repositoryService
98
-	 * @param TranslatorInterface $translator
99
-	 * @param FilterPluginManager $filterManager
100
-	 * @param EventManagerInterface $jobFormEvents
101
-	 * @param $formManager
102
-	 * @param $options
103
-	 * @param HelperPluginManager $viewHelper
104
-	 * @param ValidatorPluginManager $validatorManager
105
-	 * @param EventManagerInterface $jobEvents
106
-	 * @param EventInterface $jobEvent
107
-	 */
91
+    /**
92
+     * ManageController constructor.
93
+     *
94
+     * @TODO: [ZF3] make this controller more thin, looks like so much things to do
95
+     *
96
+     * @param AuthenticationService $auth
97
+     * @param RepositoryService $repositoryService
98
+     * @param TranslatorInterface $translator
99
+     * @param FilterPluginManager $filterManager
100
+     * @param EventManagerInterface $jobFormEvents
101
+     * @param $formManager
102
+     * @param $options
103
+     * @param HelperPluginManager $viewHelper
104
+     * @param ValidatorPluginManager $validatorManager
105
+     * @param EventManagerInterface $jobEvents
106
+     * @param EventInterface $jobEvent
107
+     */
108 108
     public function __construct(
109
-    	AuthenticationService $auth,
110
-	    RepositoryService $repositoryService,
111
-	    TranslatorInterface $translator,
112
-		FilterPluginManager $filterManager,
113
-		EventManagerInterface $jobFormEvents,
114
-		$formManager,
115
-		$options,
116
-		HelperPluginManager $viewHelper,
117
-		ValidatorPluginManager $validatorManager,
118
-		EventManagerInterface $jobEvents,
119
-		EventInterface $jobEvent
109
+        AuthenticationService $auth,
110
+        RepositoryService $repositoryService,
111
+        TranslatorInterface $translator,
112
+        FilterPluginManager $filterManager,
113
+        EventManagerInterface $jobFormEvents,
114
+        $formManager,
115
+        $options,
116
+        HelperPluginManager $viewHelper,
117
+        ValidatorPluginManager $validatorManager,
118
+        EventManagerInterface $jobEvents,
119
+        EventInterface $jobEvent
120 120
     )
121 121
     {
122 122
         $this->auth = $auth;
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
         }
158 158
         $routeMatch = $e->getRouteMatch();
159 159
         $action = $routeMatch->getParam('action');
160
-	    $services = $e->getApplication()->getServiceManager();
160
+        $services = $e->getApplication()->getServiceManager();
161 161
         if (in_array($action, array('edit', 'approval', 'completion'))) {
162 162
             $jobEvents = $services->get('Jobs/Events');
163 163
             $mailSender = $services->get('Jobs/Listener/MailSender');
@@ -202,12 +202,12 @@  discard block
 block discarded – undo
202 202
         $jobEntity = $this->initializeJob()->get($this->params(), true);
203 203
 
204 204
         $model = new ViewModel([
205
-                                   'portals' => $jobEntity->getPortals(),
206
-                                   'channels' => $channels,
207
-                                   'defaultCurrencyCode' => $options->defaultCurrencyCode,
208
-                                   'defaultTaxRate' =>  $options->defaultTaxRate,
209
-                                   'jobId' => $jobEntity->getId()
210
-                               ]);
205
+                                    'portals' => $jobEntity->getPortals(),
206
+                                    'channels' => $channels,
207
+                                    'defaultCurrencyCode' => $options->defaultCurrencyCode,
208
+                                    'defaultTaxRate' =>  $options->defaultTaxRate,
209
+                                    'jobId' => $jobEntity->getId()
210
+                                ]);
211 211
         $model->setTemplate('jobs/partials/channel-list')->setTerminal(true);
212 212
         return $model;
213 213
     }
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
      */
226 226
     protected function save()
227 227
     {
228
-		$formEvents = $this->jobFormEvents;
228
+        $formEvents = $this->jobFormEvents;
229 229
         $user               = $this->auth->getUser();
230 230
         if (empty($user->getInfo()->getEmail())) {
231 231
             return $this->getErrorViewModel('no-parent', array('cause' => 'noEmail'));
@@ -584,7 +584,7 @@  discard block
 block discarded – undo
584 584
             'lang/jobs/view',
585 585
             array(),
586 586
             array('query' => $query
587
-                      )
587
+                        )
588 588
         );
589 589
 
590 590
         $approvalLink = $this->url()->fromRoute(
@@ -600,10 +600,10 @@  discard block
 block discarded – undo
600 600
         );
601 601
 
602 602
         return array('job' => $jobEntity,
603
-                     'diffSnapshot' => $diff,
604
-                     'viewLink' => $viewLink,
605
-                     'approvalLink' => $approvalLink,
606
-                     'declineLink' => $declineLink);
603
+                        'diffSnapshot' => $diff,
604
+                        'viewLink' => $viewLink,
605
+                        'approvalLink' => $approvalLink,
606
+                        'declineLink' => $declineLink);
607 607
     }
608 608
 
609 609
     /**
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Form/MultipostFieldset.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -42,13 +42,13 @@
 block discarded – undo
42 42
 
43 43
         $this->add(
44 44
             array(
45
-                 'type' => 'Jobs/MultipostingSelect',
46
-                 'property' => true,
47
-                 'name' => 'portals',
48
-                 'options' => array(
49
-                     'label' => /*@translate*/ 'Portals',
50
-                 ),
51
-             )
45
+                    'type' => 'Jobs/MultipostingSelect',
46
+                    'property' => true,
47
+                    'name' => 'portals',
48
+                    'options' => array(
49
+                        'label' => /*@translate*/ 'Portals',
50
+                    ),
51
+                )
52 52
         );
53 53
     }
54 54
 
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Form/Job.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
                 'priority' => 100,
63 63
                 'label' => /*@translate*/ 'Basic Data',
64 64
                 'options' => [
65
-                	'label' => /*@translate*/ 'Basic Data'
65
+                    'label' => /*@translate*/ 'Basic Data'
66 66
                 ],
67 67
                 'property' => true,
68 68
                 'forms' => [
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Form/Validator/UniqueApplyIdFactory.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -15,12 +15,12 @@
 block discarded – undo
15 15
 
16 16
 class UniqueApplyIdFactory implements FactoryInterface
17 17
 {
18
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
19
-	{
20
-		$repositories = $container->get('repositories');
21
-		$jobs         = $repositories->get('Jobs/Job');
22
-		$validator    = new UniqueApplyId($jobs);
18
+    public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
19
+    {
20
+        $repositories = $container->get('repositories');
21
+        $jobs         = $repositories->get('Jobs/Job');
22
+        $validator    = new UniqueApplyId($jobs);
23 23
 		
24
-		return $validator;
25
-	}
24
+        return $validator;
25
+    }
26 26
 }
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Form/CustomerNoteFieldset.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,8 +28,8 @@
 block discarded – undo
28 28
 
29 29
     public function init()
30 30
     {
31
-    	$this->setAttribute('id','customerNoteFieldset');
32
-    	$this->setName('customerNote');
31
+        $this->setAttribute('id','customerNoteFieldset');
32
+        $this->setName('customerNote');
33 33
         $this->add([
34 34
                 'type' => 'Textarea',
35 35
                 'name' => 'note',
Please login to merge, or discard this patch.
module/Applications/config/module.config.php 1 patch
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -18,20 +18,20 @@  discard block
 block discarded – undo
18 18
 
19 19
 return [
20 20
     'doctrine' => [
21
-       'driver' => [
21
+        'driver' => [
22 22
             'odm_default' => [
23 23
                 'drivers' => [
24 24
                     'Applications\Entity' => 'annotation',
25 25
                 ],
26 26
             ],
27 27
             'annotation' => [
28
-               /*
28
+                /*
29 29
                 * All drivers (except DriverChain) require paths to work on. You
30 30
                 * may set this value as a string (for a single path) or an array
31 31
                 * for multiple paths.
32 32
                 * example https://github.com/doctrine/DoctrineORMModule
33 33
                 */
34
-               'paths' => [ __DIR__ . '/../src/Applications/Entity']
34
+                'paths' => [ __DIR__ . '/../src/Applications/Entity']
35 35
             ],
36 36
         ],
37 37
         'eventmanager' => [
@@ -71,17 +71,17 @@  discard block
 block discarded – undo
71 71
             'Applications/Options/ModuleOptions' => 'Applications\Options\ModuleOptions',
72 72
         ],
73 73
         'factories' => [
74
-           'Applications/Options' => 'Applications\Factory\ModuleOptionsFactory',
75
-           'ApplicationRepository' => 'Applications\Repository\Service\ApplicationRepositoryFactory',
76
-           'ApplicationMapper' => 'Applications\Repository\Service\ApplicationMapperFactory',
77
-           'EducationMapper'   => 'Applications\Repository\Service\EducationMapperFactory',
78
-           'Applications/Listener/ApplicationCreated' => 'Applications\Factory\Listener\EventApplicationCreatedFactory',
79
-           'Applications/Listener/ApplicationStatusChangePre' => 'Applications\Factory\Listener\StatusChangeFactory',
80
-           'Applications\Auth\Dependency\ListListener' => 'Applications\Factory\Auth\Dependency\ListListenerFactory',
74
+            'Applications/Options' => 'Applications\Factory\ModuleOptionsFactory',
75
+            'ApplicationRepository' => 'Applications\Repository\Service\ApplicationRepositoryFactory',
76
+            'ApplicationMapper' => 'Applications\Repository\Service\ApplicationMapperFactory',
77
+            'EducationMapper'   => 'Applications\Repository\Service\EducationMapperFactory',
78
+            'Applications/Listener/ApplicationCreated' => 'Applications\Factory\Listener\EventApplicationCreatedFactory',
79
+            'Applications/Listener/ApplicationStatusChangePre' => 'Applications\Factory\Listener\StatusChangeFactory',
80
+            'Applications\Auth\Dependency\ListListener' => 'Applications\Factory\Auth\Dependency\ListListenerFactory',
81 81
             Listener\JobSelectValues::class => Factory\Listener\JobSelectValuesFactory::class,
82 82
         ],
83 83
         'aliases' => [
84
-           'Applications/Listener/ApplicationStatusChangePost' => 'Applications/Listener/ApplicationStatusChangePre'
84
+            'Applications/Listener/ApplicationStatusChangePost' => 'Applications/Listener/ApplicationStatusChangePre'
85 85
         ]
86 86
     ],
87 87
 	
@@ -90,12 +90,12 @@  discard block
 block discarded – undo
90 90
             'Applications\Controller\Index' => 'Applications\Controller\IndexController',
91 91
             'Applications\Controller\MultiManage' => 'Applications\Controller\MultimanageController',
92 92
         ],
93
-	    'factories' => [
94
-		    'Applications/Controller/Manage' => [ManageController::class,'factory'],
95
-		    'Applications\Controller\Apply' => [ApplyController::class,'factory'],
96
-		    'Applications/CommentController' => [CommentController::class,'factory'],
97
-		    'Applications/Console' => [ConsoleController::class,'factory'],
98
-	    ]
93
+        'factories' => [
94
+            'Applications/Controller/Manage' => [ManageController::class,'factory'],
95
+            'Applications\Controller\Apply' => [ApplyController::class,'factory'],
96
+            'Applications/CommentController' => [CommentController::class,'factory'],
97
+            'Applications/Console' => [ConsoleController::class,'factory'],
98
+        ]
99 99
     ],
100 100
     
101 101
     'acl' => [
@@ -184,20 +184,20 @@  discard block
 block discarded – undo
184 184
     ],
185 185
     'form_elements' => [
186 186
         'invokables' => [
187
-             'Applications/Mail' => 'Applications\Form\Mail',
188
-             'Applications/BaseFieldset' => 'Applications\Form\BaseFieldset',
189
-             'Applications/SettingsFieldset' => 'Applications\Form\SettingsFieldset',
190
-             'Applications/CommentForm' => 'Applications\Form\CommentForm',
191
-             'Applications/CommentFieldset' => 'Applications\Form\CommentFieldset',
192
-             'Applications/Apply' => 'Applications\Form\Apply',
193
-             'Applications/Contact' => 'Applications\Form\ContactContainer',
194
-             'Applications/Base'  => 'Applications\Form\Base',
195
-             'Applications/Facts' => 'Applications\Form\Facts',
196
-             'Applications/FactsFieldset' => 'Applications\Form\FactsFieldset',
197
-             'Applications/Attributes' => 'Applications\Form\Attributes',
198
-             'href' => 'Applications\Form\Element\Ref',
187
+                'Applications/Mail' => 'Applications\Form\Mail',
188
+                'Applications/BaseFieldset' => 'Applications\Form\BaseFieldset',
189
+                'Applications/SettingsFieldset' => 'Applications\Form\SettingsFieldset',
190
+                'Applications/CommentForm' => 'Applications\Form\CommentForm',
191
+                'Applications/CommentFieldset' => 'Applications\Form\CommentFieldset',
192
+                'Applications/Apply' => 'Applications\Form\Apply',
193
+                'Applications/Contact' => 'Applications\Form\ContactContainer',
194
+                'Applications/Base'  => 'Applications\Form\Base',
195
+                'Applications/Facts' => 'Applications\Form\Facts',
196
+                'Applications/FactsFieldset' => 'Applications\Form\FactsFieldset',
197
+                'Applications/Attributes' => 'Applications\Form\Attributes',
198
+                'href' => 'Applications\Form\Element\Ref',
199 199
 
200
-         ],
200
+            ],
201 201
         'factories' => [
202 202
             'Applications/ContactImage' => 'Applications\Factory\Form\ContactImageFactory',
203 203
             'Applications/Attachments' => 'Applications\Factory\Form\AttachmentsFactory',
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
             'Applications\Form\Element\StatusSelect' => Factory\Form\StatusSelectFactory::class,
206 206
             Form\Element\JobSelect::class => Factory\Form\JobSelectFactory::class
207 207
         ],
208
-     ],
208
+        ],
209 209
 
210 210
     'form_elements_config' => [
211 211
         'Applications/Apply' => [
Please login to merge, or discard this patch.
module/Applications/src/Applications/Options/ModuleOptions.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -36,9 +36,9 @@  discard block
 block discarded – undo
36 36
      * @var array $attachmentsMimeType
37 37
      */
38 38
     protected $attachmentsMimeType = array(
39
-    	'image',
40
-	    'application/pdf',
41
-	    'applications/pdf',
39
+        'image',
40
+        'application/pdf',
41
+        'applications/pdf',
42 42
         'application/x-pdf',
43 43
         'application/acrobat',
44 44
         'applications/vnd.pdf',
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
     protected $workflow = [
86 86
 
87
-      'recruiter',
87
+        'recruiter',
88 88
     ];
89 89
     
90 90
     /**
@@ -222,13 +222,13 @@  discard block
 block discarded – undo
222 222
     }
223 223
     
224 224
     /**
225
-	 * @return boolean
226
-	 * @since 0.27
227
-	 */
228
-	public function getAllowSubsequentAttachmentUpload()
229
-	{
230
-		return $this->allowSubsequentAttachmentUpload;
231
-	}
225
+     * @return boolean
226
+     * @since 0.27
227
+     */
228
+    public function getAllowSubsequentAttachmentUpload()
229
+    {
230
+        return $this->allowSubsequentAttachmentUpload;
231
+    }
232 232
 
233 233
     /**
234 234
      * @param boolean $allowSubsequentAttachmentUpload
Please login to merge, or discard this patch.
Applications/src/Applications/Repository/Filter/PaginationQueryFactory.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -26,24 +26,24 @@
 block discarded – undo
26 26
  */
27 27
 class PaginationQueryFactory implements FactoryInterface
28 28
 {
29
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
30
-	{
31
-		$auth  = $container->get('AuthenticationService');
32
-		$filter = new PaginationQuery($auth);
33
-		return $filter;
34
-	}
29
+    public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
30
+    {
31
+        $auth  = $container->get('AuthenticationService');
32
+        $filter = new PaginationQuery($auth);
33
+        return $filter;
34
+    }
35 35
 	
36
-	/**
37
-	 * Creates pagination Service
38
-	 *
39
-	 * @see \Zend\ServiceManager\FactoryInterface::createService()
40
-	 *
41
-	 * @param ContainerInterface $container
42
-	 * @return PaginationQuery|mixed
43
-	 * @internal param ServiceLocatorInterface $serviceLocator
44
-	 */
36
+    /**
37
+     * Creates pagination Service
38
+     *
39
+     * @see \Zend\ServiceManager\FactoryInterface::createService()
40
+     *
41
+     * @param ContainerInterface $container
42
+     * @return PaginationQuery|mixed
43
+     * @internal param ServiceLocatorInterface $serviceLocator
44
+     */
45 45
     public function createService(ContainerInterface $container)
46 46
     {
47
-		return $this($container,PaginationQuery::class);
47
+        return $this($container,PaginationQuery::class);
48 48
     }
49 49
 }
Please login to merge, or discard this patch.