Completed
Push — develop ( 321e68...dce9ea )
by Carsten
09:20
created
module/Jobs/src/Jobs/Controller/ConsoleController.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -22,26 +22,26 @@
 block discarded – undo
22 22
 
23 23
 class ConsoleController extends AbstractActionController
24 24
 {
25
-	/**
26
-	 * @var RepositoryService
27
-	 */
28
-	private $repositories;
25
+    /**
26
+     * @var RepositoryService
27
+     */
28
+    private $repositories;
29 29
 	
30
-	public function __construct(
31
-		RepositoryService $repositories
32
-	)
33
-	{
34
-		$this->repositories = $repositories;
35
-	}
30
+    public function __construct(
31
+        RepositoryService $repositories
32
+    )
33
+    {
34
+        $this->repositories = $repositories;
35
+    }
36 36
 	
37
-	static public function factory(ContainerInterface $container)
38
-	{
39
-		return new self(
40
-			$container->get('repositories')
41
-		);
42
-	}
37
+    static public function factory(ContainerInterface $container)
38
+    {
39
+        return new self(
40
+            $container->get('repositories')
41
+        );
42
+    }
43 43
 	
44
-	public function expireJobsAction()
44
+    public function expireJobsAction()
45 45
     {
46 46
         $repositories = $this->repositories;
47 47
         /* @var \Jobs\Repository\Job $jobsRepo */
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Controller/JobboardController.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,11 +50,11 @@
 block discarded – undo
50 50
      * @param Repository\Job $jobRepository
51 51
      */
52 52
     public function __construct(
53
-    	DefaultListener $defaultListener,
54
-	    Repository\Job $jobRepository,
55
-	    ImageFileCacheManager $imageFileCacheManager,
56
-	    $options
57
-	)
53
+        DefaultListener $defaultListener,
54
+        Repository\Job $jobRepository,
55
+        ImageFileCacheManager $imageFileCacheManager,
56
+        $options
57
+    )
58 58
     {
59 59
         $this->jobRepository = $jobRepository;
60 60
         $this->options = $options;
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Controller/AdminCategoriesController.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -28,31 +28,31 @@  discard block
 block discarded – undo
28 28
  */
29 29
 class AdminCategoriesController extends AbstractActionController
30 30
 {
31
-	private $adminCategoriesForm;
31
+    private $adminCategoriesForm;
32 32
 	
33
-	/**
34
-	 * @var Categories
35
-	 */
36
-	private $jobsCategoryRepo;
33
+    /**
34
+     * @var Categories
35
+     */
36
+    private $jobsCategoryRepo;
37 37
 	
38
-	private $repositories;
38
+    private $repositories;
39 39
 	
40
-	private $viewHelperManager;
40
+    private $viewHelperManager;
41 41
 	
42
-	static public function factory(ContainerInterface $container)
43
-	{
44
-		$ob = new static();
45
-		$ob->initContainer($container);
46
-		return $ob;
47
-	}
42
+    static public function factory(ContainerInterface $container)
43
+    {
44
+        $ob = new static();
45
+        $ob->initContainer($container);
46
+        return $ob;
47
+    }
48 48
 
49
-	public function initContainer(ContainerInterface $container)
50
-	{
51
-		$this->adminCategoriesForm = $container->get('forms')->get('Jobs/AdminCategories');
52
-		$this->repositories = $container->get('repositories');
53
-		$this->jobsCategoryRepo = $container->get('repositories')->get('Jobs/Category');
54
-		$this->viewHelperManager = $container->get('ViewHelperManager');
55
-	}
49
+    public function initContainer(ContainerInterface $container)
50
+    {
51
+        $this->adminCategoriesForm = $container->get('forms')->get('Jobs/AdminCategories');
52
+        $this->repositories = $container->get('repositories');
53
+        $this->jobsCategoryRepo = $container->get('repositories')->get('Jobs/Category');
54
+        $this->viewHelperManager = $container->get('ViewHelperManager');
55
+    }
56 56
 	
57 57
     public function indexAction()
58 58
     {
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     {
75 75
         //$services = $this->serviceLocator;
76 76
         $form = $this->adminCategoriesForm;
77
-	    $repositories = $this->repositories;
77
+        $repositories = $this->repositories;
78 78
         $rep = $this->jobsCategoryRepo;
79 79
 
80 80
         $professions = $rep->findOneBy(['value' => 'professions']);
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Controller/TemplateController.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -52,16 +52,16 @@
 block discarded – undo
52 52
     protected $formManager;
53 53
 
54 54
     public function __construct(
55
-    	Repository\Job $jobRepository,
56
-	    $viewModelTemplateFilter,
57
-	    $translator,
58
-	    AbstractOptions $config,
59
-	    $viewHelper,
60
-		$formManager
55
+        Repository\Job $jobRepository,
56
+        $viewModelTemplateFilter,
57
+        $translator,
58
+        AbstractOptions $config,
59
+        $viewHelper,
60
+        $formManager
61 61
     )
62 62
     {
63
-    	$this->viewModelTemplateFilter = $viewModelTemplateFilter;
64
-    	$this->translator = $translator;
63
+        $this->viewModelTemplateFilter = $viewModelTemplateFilter;
64
+        $this->translator = $translator;
65 65
         $this->jobRepository = $jobRepository;
66 66
         $this->config = $config;
67 67
         $this->formManager = $formManager;
Please login to merge, or discard this patch.
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.