@@ -30,7 +30,7 @@ |
||
30 | 30 | $auth = $container->get('AuthenticationService'); |
31 | 31 | $user = $auth->getUser(); |
32 | 32 | $options['user'] = $user; |
33 | - $mail = new Confirmation($options); |
|
33 | + $mail = new Confirmation($options); |
|
34 | 34 | |
35 | 35 | return $mail; |
36 | 36 | } |
@@ -33,6 +33,6 @@ |
||
33 | 33 | */ |
34 | 34 | public 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 | } |
@@ -446,7 +446,7 @@ |
||
446 | 446 | public function getCv() |
447 | 447 | { |
448 | 448 | if (is_null($this->cv)) { |
449 | - $this->cv= new Cv(); |
|
449 | + $this->cv = new Cv(); |
|
450 | 450 | } |
451 | 451 | return $this->cv; |
452 | 452 | } |
@@ -20,7 +20,7 @@ discard block |
||
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 |
||
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 |
@@ -50,12 +50,12 @@ |
||
50 | 50 | |
51 | 51 | public function __construct($status = self::INCOMING) |
52 | 52 | { |
53 | - $constant = 'self::' . strtoupper($status); |
|
53 | + $constant = 'self::'.strtoupper($status); |
|
54 | 54 | if (!defined($constant)) { |
55 | - throw new \DomainException('Unknown status: ' . $status); |
|
55 | + throw new \DomainException('Unknown status: '.$status); |
|
56 | 56 | } |
57 | - $this->name=constant($constant); |
|
58 | - $this->order=$this->getOrder(); |
|
57 | + $this->name = constant($constant); |
|
58 | + $this->order = $this->getOrder(); |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | /** |
@@ -174,11 +174,11 @@ |
||
174 | 174 | return ''; |
175 | 175 | } |
176 | 176 | |
177 | - $token = $user instanceof AnonymousUser ? '?token=' . $user->getToken() : ''; |
|
177 | + $token = $user instanceof AnonymousUser ? '?token='.$user->getToken() : ''; |
|
178 | 178 | $href = $router->assemble( |
179 | 179 | ['id' => $this->application->getId()], |
180 | 180 | ['name'=>'lang/applications/detail', 'force_canonical'=>true] |
181 | - ) . $token; |
|
181 | + ).$token; |
|
182 | 182 | |
183 | 183 | return $href; |
184 | 184 | } |
@@ -121,7 +121,7 @@ |
||
121 | 121 | */ |
122 | 122 | public function setUser($user) |
123 | 123 | { |
124 | - $this->user=$user; |
|
124 | + $this->user = $user; |
|
125 | 125 | return $this; |
126 | 126 | } |
127 | 127 | } |
@@ -136,7 +136,7 @@ |
||
136 | 136 | * |
137 | 137 | * @return Forward |
138 | 138 | */ |
139 | - public static function factory(ContainerInterface $container, $requestedName, array $options=[]) |
|
139 | + public static function factory(ContainerInterface $container, $requestedName, array $options = []) |
|
140 | 140 | { |
141 | 141 | $ob = new self($options); |
142 | 142 | $ob->setContainer($container); |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | $this->appOptions = $appOptions; |
71 | 71 | $this->appEvents = $appEvents; |
72 | 72 | $this->translator = $translator; |
73 | - $this->container = $container; |
|
73 | + $this->container = $container; |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | /** |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | |
171 | 171 | |
172 | 172 | |
173 | - $format=$this->params()->fromQuery('format'); |
|
173 | + $format = $this->params()->fromQuery('format'); |
|
174 | 174 | |
175 | 175 | if ($application->isDraft()) { |
176 | 176 | $list = false; |
@@ -298,7 +298,7 @@ discard block |
||
298 | 298 | && ($network = $this->params()->fromQuery('network')) |
299 | 299 | && ($data = $this->params()->fromPost('data')) |
300 | 300 | ) { |
301 | - $profileClass = '\\Auth\\Entity\\SocialProfiles\\' . $network; |
|
301 | + $profileClass = '\\Auth\\Entity\\SocialProfiles\\'.$network; |
|
302 | 302 | $profile = new $profileClass(); |
303 | 303 | $profile->setData(\Zend\Json\Json::decode($data, \Zend\Json\Json::TYPE_ARRAY)); |
304 | 304 | } else { |
@@ -416,7 +416,7 @@ discard block |
||
416 | 416 | |
417 | 417 | $this->acl($application, 'forward'); |
418 | 418 | |
419 | - $translator = $this->translator; |
|
419 | + $translator = $this->translator; |
|
420 | 420 | |
421 | 421 | if (!$emailAddress) { |
422 | 422 | throw new \InvalidArgumentException('An email address must be supplied.'); |
@@ -456,7 +456,7 @@ discard block |
||
456 | 456 | public function deleteAction() |
457 | 457 | { |
458 | 458 | $id = $this->params('id'); |
459 | - $repositories= $this->repositories; |
|
459 | + $repositories = $this->repositories; |
|
460 | 460 | $repository = $repositories->get('Applications/Application'); |
461 | 461 | $application = $repository->find($id); |
462 | 462 | |
@@ -466,8 +466,8 @@ discard block |
||
466 | 466 | |
467 | 467 | $this->acl($application, 'delete'); |
468 | 468 | |
469 | - $events = $this->appEvents; |
|
470 | - $events->trigger(ApplicationEvent::EVENT_APPLICATION_PRE_DELETE, $this, [ 'application' => $application ]); |
|
469 | + $events = $this->appEvents; |
|
470 | + $events->trigger(ApplicationEvent::EVENT_APPLICATION_PRE_DELETE, $this, ['application' => $application]); |
|
471 | 471 | |
472 | 472 | $repositories->remove($application); |
473 | 473 |