Completed
Push — develop ( 321e68...dce9ea )
by Carsten
09:20
created
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.
module/Applications/src/Applications/Listener/StatusChange.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      * @param ApplicationEvent $e
70 70
      */
71 71
     public function prepareFormData(ApplicationEvent $e){
72
-    	$target = $e->getTarget();
72
+        $target = $e->getTarget();
73 73
         if ($target->isPostRequest()) {
74 74
             return;
75 75
         }
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      * @param ApplicationEvent $event
124 124
      */
125 125
     public function sendMail(ApplicationEvent $event){
126
-    	$event = $event->getTarget();
126
+        $event = $event->getTarget();
127 127
         if (!$event->isPostRequest()) {
128 128
             return;
129 129
         }
Please login to merge, or discard this patch.
module/Applications/src/Applications/Factory/Mail/NewApplicationFactory.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
         $options = $options ?: $this->options;
44 44
         $router = $container->get('Router');
45 45
         $options['router'] = $router;
46
-		$this->setCreationOptions($options);
46
+        $this->setCreationOptions($options);
47 47
         $mail   = new NewApplication($options);
48 48
 
49 49
         return $mail;
Please login to merge, or discard this patch.
module/Applications/src/Applications/Controller/ConsoleController.php 1 patch
Indentation   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -33,48 +33,48 @@  discard block
 block discarded – undo
33 33
  */
34 34
 class ConsoleController extends AbstractActionController
35 35
 {
36
-	/**
37
-	 * @var RepositoryService
38
-	 */
39
-	private $repositories;
36
+    /**
37
+     * @var RepositoryService
38
+     */
39
+    private $repositories;
40 40
 	
41
-	/**
42
-	 * @var FilterPluginManager
43
-	 */
44
-	private $filterManager;
41
+    /**
42
+     * @var FilterPluginManager
43
+     */
44
+    private $filterManager;
45 45
 	
46
-	/**
47
-	 * @var array
48
-	 */
49
-	private $config;
46
+    /**
47
+     * @var array
48
+     */
49
+    private $config;
50 50
 	
51
-	/**
52
-	 * @var DocumentManager
53
-	 */
54
-	private $documentManager;
51
+    /**
52
+     * @var DocumentManager
53
+     */
54
+    private $documentManager;
55 55
 	
56
-	public function __construct(
57
-		RepositoryService $repositories,
58
-		FilterPluginManager $filterManager,
59
-		DocumentManager $documentManager,
60
-		$config
61
-	)
62
-	{
63
-		$this->repositories = $repositories;
64
-		$this->filterManager = $filterManager;
65
-		$this->documentManager = $documentManager;
66
-		$this->config = $config;
67
-	}
56
+    public function __construct(
57
+        RepositoryService $repositories,
58
+        FilterPluginManager $filterManager,
59
+        DocumentManager $documentManager,
60
+        $config
61
+    )
62
+    {
63
+        $this->repositories = $repositories;
64
+        $this->filterManager = $filterManager;
65
+        $this->documentManager = $documentManager;
66
+        $this->config = $config;
67
+    }
68 68
 	
69
-	static public function factory(ContainerInterface $container)
70
-	{
71
-		return new self(
72
-			$container->get('repositories'),
73
-			$container->get('FilterManager'),
74
-			$container->get('Core/DocumentManager'),
75
-			$container->get('Config')
76
-		);
77
-	}
69
+    static public function factory(ContainerInterface $container)
70
+    {
71
+        return new self(
72
+            $container->get('repositories'),
73
+            $container->get('FilterManager'),
74
+            $container->get('Core/DocumentManager'),
75
+            $container->get('Config')
76
+        );
77
+    }
78 78
 
79 79
     /**
80 80
      * regenerate keywords for applications
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
 
195 195
         $table = new Table(
196 196
             array('columnWidths' => array(40, 40, 40),
197
-                                 'decorator' => 'ascii')
197
+                                    'decorator' => 'ascii')
198 198
         );
199 199
 
200 200
         $table->appendRow(array('Module', 'Name', 'Description'));
@@ -275,8 +275,8 @@  discard block
 block discarded – undo
275 275
             $attachments = $app->getAttachments();
276 276
             foreach ($attachments as $attachment) {
277 277
                 $attachment->getPermissions()
278
-                           ->clear()
279
-                           ->inherit($permissions);
278
+                            ->clear()
279
+                            ->inherit($permissions);
280 280
             }
281 281
             $contact = $app->getContact();
282 282
             if ($contact) {
@@ -284,8 +284,8 @@  discard block
 block discarded – undo
284 284
 
285 285
                 if ($image) {
286 286
                     $image->getPermissions()
287
-                          ->clear()
288
-                          ->inherit($permissions);
287
+                            ->clear()
288
+                            ->inherit($permissions);
289 289
                 }
290 290
             }
291 291
         }
Please login to merge, or discard this patch.
module/Applications/src/Applications/Controller/ApplyController.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -60,11 +60,11 @@  discard block
 block discarded – undo
60 60
     
61 61
     protected $viewHelper;
62 62
 	
63
-	/**
64
-	 * @param ContainerInterface $container
65
-	 *
66
-	 * @return ApplyController
67
-	 */
63
+    /**
64
+     * @param ContainerInterface $container
65
+     *
66
+     * @return ApplyController
67
+     */
68 68
     static public function factory(ContainerInterface $container)
69 69
     {
70 70
         $ob = new self();
@@ -72,24 +72,24 @@  discard block
 block discarded – undo
72 72
         return $ob;
73 73
     }
74 74
 	
75
-	public function setContainer( ContainerInterface $container )
76
-	{
77
-		$this->config            = $container->get('Config');
78
-		$this->imageCacheManager = $container->get('Organizations\ImageFileCache\Manager');
79
-		$this->validator         = $container->get('ValidatorManager');
80
-		$this->repositories      = $container->get('repositories');
81
-		$this->appEvents         = $container->get('Applications/Events');
82
-		$this->viewHelper        = $container->get('ViewHelperManager');
83
-	}
75
+    public function setContainer( ContainerInterface $container )
76
+    {
77
+        $this->config            = $container->get('Config');
78
+        $this->imageCacheManager = $container->get('Organizations\ImageFileCache\Manager');
79
+        $this->validator         = $container->get('ValidatorManager');
80
+        $this->repositories      = $container->get('repositories');
81
+        $this->appEvents         = $container->get('Applications/Events');
82
+        $this->viewHelper        = $container->get('ViewHelperManager');
83
+    }
84 84
 	
85 85
 	
86
-	public function attachDefaultListeners()
87
-	{
88
-		parent::attachDefaultListeners();
89
-		$events = $this->getEventManager();
90
-		$events->attach(MvcEvent::EVENT_DISPATCH, array($this, 'preDispatch'), 10);
91
-		return $this;
92
-	}
86
+    public function attachDefaultListeners()
87
+    {
88
+        parent::attachDefaultListeners();
89
+        $events = $this->getEventManager();
90
+        $events->attach(MvcEvent::EVENT_DISPATCH, array($this, 'preDispatch'), 10);
91
+        return $this;
92
+    }
93 93
 	
94 94
     public function preDispatch(MvcEvent $e)
95 95
     {
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
             ->getHybridAuth();
267 267
         /* @var $authProfile \Hybrid_User_Profile */
268 268
         $authProfile = $hybridAuth->authenticate($network)
269
-           ->getUserProfile();
269
+            ->getUserProfile();
270 270
 
271 271
         /* @var \Auth\Entity\SocialProfiles\AbstractProfile $profile */
272 272
         $profile = $this->plugin('Auth/SocialProfiles')->fetch($network);
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
         }
320 320
         
321 321
         return $this->redirect()
322
-           ->toRoute('lang/apply', ['applyId' => $job->getApplyId()], $urlOptions);
322
+            ->toRoute('lang/apply', ['applyId' => $job->getApplyId()], $urlOptions);
323 323
     }
324 324
 
325 325
     public function processPreviewAction()
@@ -329,11 +329,11 @@  discard block
 block discarded – undo
329 329
     
330 330
     public function processAction()
331 331
     {
332
-    	$params = $this->params();
332
+        $params = $this->params();
333 333
         $formName  = $params->fromQuery('form');
334 334
         $form      = $this->formContainer->getForm($formName);
335 335
         $postData  = $form->getOption('use_post_array') ? $params->fromPost() : array();
336
-	    //@TODO: [ZF3] option use_files_array is false by default
336
+        //@TODO: [ZF3] option use_files_array is false by default
337 337
         //$filesData = $form->getOption('use_files_array') ? $params->fromFiles() : array();
338 338
         $form->setData(array_merge($postData,$_FILES));
339 339
         
@@ -363,9 +363,9 @@  discard block
 block discarded – undo
363 363
         
364 364
         return new JsonModel(
365 365
             array(
366
-	            'valid' => $form->isValid(),
367
-	            'content' => $content,
368
-	            'isApplicationValid' => $this->checkApplication($application)
366
+                'valid' => $form->isValid(),
367
+                'content' => $content,
368
+                'isApplicationValid' => $this->checkApplication($application)
369 369
             )
370 370
         );
371 371
     }
Please login to merge, or discard this patch.
module/Applications/src/Applications/Controller/ManageController.php 1 patch
Indentation   +67 added lines, -67 removed lines patch added patch discarded remove patch
@@ -30,70 +30,70 @@  discard block
 block discarded – undo
30 30
  */
31 31
 class ManageController extends AbstractActionController
32 32
 {
33
-	/**
34
-	 * @var RepositoryService
35
-	 */
36
-	private $repositories;
33
+    /**
34
+     * @var RepositoryService
35
+     */
36
+    private $repositories;
37 37
 	
38
-	/**
39
-	 * @var
40
-	 */
41
-	private $coreNavigation;
38
+    /**
39
+     * @var
40
+     */
41
+    private $coreNavigation;
42 42
 	
43
-	private $forms;
43
+    private $forms;
44 44
 	
45
-	private $appOptions;
45
+    private $appOptions;
46 46
 	
47
-	private $appEvents;
47
+    private $appEvents;
48 48
 	
49
-	private $translator;
49
+    private $translator;
50 50
 	
51
-	private $container;
51
+    private $container;
52 52
 	
53
-	/**
54
-	 * ManageController constructor.
55
-	 *
56
-	 * @param RepositoryService $repositories
57
-	 */
58
-	public function __construct(
59
-		RepositoryService $repositories,
60
-		$coreNavigation,
61
-		$forms,
62
-		$appOptions,
63
-		$appEvents,
64
-		$translator,
65
-		$container
66
-	)
67
-	{
68
-		$this->repositories     = $repositories;
69
-		$this->coreNavigation   = $coreNavigation;
70
-		$this->forms            = $forms;
71
-		$this->appOptions       = $appOptions;
72
-		$this->appEvents        = $appEvents;
73
-		$this->translator       = $translator;
74
-		$this->container         = $container;
75
-	}
53
+    /**
54
+     * ManageController constructor.
55
+     *
56
+     * @param RepositoryService $repositories
57
+     */
58
+    public function __construct(
59
+        RepositoryService $repositories,
60
+        $coreNavigation,
61
+        $forms,
62
+        $appOptions,
63
+        $appEvents,
64
+        $translator,
65
+        $container
66
+    )
67
+    {
68
+        $this->repositories     = $repositories;
69
+        $this->coreNavigation   = $coreNavigation;
70
+        $this->forms            = $forms;
71
+        $this->appOptions       = $appOptions;
72
+        $this->appEvents        = $appEvents;
73
+        $this->translator       = $translator;
74
+        $this->container         = $container;
75
+    }
76 76
 	
77
-	/**
78
-	 * @param ContainerInterface $container
79
-	 *
80
-	 * @return ManageController
81
-	 */
82
-	static public function factory(ContainerInterface $container)
83
-	{
84
-		$ob = new self(
85
-			$container->get('Core/RepositoryService'),
86
-			$container->get('Core/Navigation'),
87
-			$container->get('forms'),
88
-			$container->get('Applications/Options'),
89
-			$container->get('Applications/Events'),
90
-			$container->get('translator'),
91
-			$container
92
-		);
93
-		return $ob;
94
-	}
77
+    /**
78
+     * @param ContainerInterface $container
79
+     *
80
+     * @return ManageController
81
+     */
82
+    static public function factory(ContainerInterface $container)
83
+    {
84
+        $ob = new self(
85
+            $container->get('Core/RepositoryService'),
86
+            $container->get('Core/Navigation'),
87
+            $container->get('forms'),
88
+            $container->get('Applications/Options'),
89
+            $container->get('Applications/Events'),
90
+            $container->get('translator'),
91
+            $container
92
+        );
93
+        return $ob;
94
+    }
95 95
 	
96
-	/**
96
+    /**
97 97
      * (non-PHPdoc)
98 98
      * @see \Zend\Mvc\Controller\AbstractActionController::onDispatch()
99 99
      */
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
             $application->changeStatus(
165 165
                 $application->getStatus(),
166 166
                 sprintf(/*@translate*/ 'Application was read by %s',
167
-                                       $this->auth()->getUser()->getInfo()->getDisplayName()));
167
+                                        $this->auth()->getUser()->getInfo()->getDisplayName()));
168 168
         }
169 169
 
170 170
 
@@ -191,15 +191,15 @@  discard block
 block discarded – undo
191 191
                         $viewModel->setVariables(
192 192
                             /*array(
193 193
                             'application' => */$this->builders
194
-                                              ->get('JsonApplication')
195
-                                              ->unbuild($application)
194
+                                                ->get('JsonApplication')
195
+                                                ->unbuild($application)
196 196
                         );
197 197
                         $viewModel->setVariable('isUnread', $applicationIsUnread);
198 198
                         $return = $viewModel;
199 199
                 break;
200 200
             case 'pdf':
201
-            	// @TODO: [ZF3] Refactor this so we can inject Core/Html2Pdf service during controller creation
202
-	            $pdf = $this->container->get('Core/Html2Pdf');
201
+                // @TODO: [ZF3] Refactor this so we can inject Core/Html2Pdf service during controller creation
202
+                $pdf = $this->container->get('Core/Html2Pdf');
203 203
                 $return['format'] = $format;
204 204
                 break;
205 205
             default:
@@ -356,12 +356,12 @@  discard block
 block discarded – undo
356 356
 
357 357
         /* @var ApplicationEvent $event */
358 358
         $event = $events->getEvent(ApplicationEvent::EVENT_APPLICATION_STATUS_CHANGE,
359
-                                   $this,
360
-                                   [
361
-                                       'application' => $application,
362
-                                       'status' => $status,
363
-                                       'user' => $this->auth()->getUser(),
364
-                                   ]
359
+                                    $this,
360
+                                    [
361
+                                        'application' => $application,
362
+                                        'status' => $status,
363
+                                        'user' => $this->auth()->getUser(),
364
+                                    ]
365 365
         );
366 366
         
367 367
         $event->setIsPostRequest($request->isPost());
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
         $emailAddress = $this->params()->fromQuery('email');
412 412
         /* @var \Applications\Entity\Application $application */
413 413
         $application  = $this->repositories->get('Applications/Application')
414
-                                 ->find($this->params('id'));
414
+                                    ->find($this->params('id'));
415 415
         
416 416
         $this->acl($application, 'forward');
417 417
         
Please login to merge, or discard this patch.
module/Applications/src/Applications/Controller/CommentController.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -25,9 +25,9 @@  discard block
 block discarded – undo
25 25
  */
26 26
 class CommentController extends AbstractActionController implements ContainerAwareInterface
27 27
 {
28
-	private $repositories;
28
+    private $repositories;
29 29
 	
30
-	private $formManager;
30
+    private $formManager;
31 31
 	
32 32
     /**
33 33
      * Lists comments of an application
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
                     $application->getComments()->add($comment);
84 84
                     $application->changeStatus($application->getStatus(), sprintf(
85 85
                                     /* @translate */ 'Application was rated by %s',
86
-                                     $this->auth()->getUser()->getInfo()->getDisplayName())
86
+                                        $this->auth()->getUser()->getInfo()->getDisplayName())
87 87
                         );
88 88
                 }
89 89
                 $viewModel->setVariable('isSaved', true);
@@ -100,18 +100,18 @@  discard block
 block discarded – undo
100 100
         return $viewModel;
101 101
     }
102 102
 	
103
-	public function setContainer( ContainerInterface $container )
104
-	{
105
-		$this->repositories = $container->get('repositories');
106
-		$this->formManager = $container->get('forms');
107
-	}
103
+    public function setContainer( ContainerInterface $container )
104
+    {
105
+        $this->repositories = $container->get('repositories');
106
+        $this->formManager = $container->get('forms');
107
+    }
108 108
 	
109
-	/**
110
-	 * @param ContainerInterface $container
111
-	 *
112
-	 * @return CommentController
113
-	 */
114
-	static public function factory(ContainerInterface $container)
109
+    /**
110
+     * @param ContainerInterface $container
111
+     *
112
+     * @return CommentController
113
+     */
114
+    static public function factory(ContainerInterface $container)
115 115
     {
116 116
         $ob = new self();
117 117
         $ob->setContainer($container);
Please login to merge, or discard this patch.