@@ -35,10 +35,10 @@ |
||
35 | 35 | 'applications list' => 'list view scripts.', |
36 | 36 | 'applications reset-files-permissions [--filter=]' => 'Resets (means: Set again) the permissions of attachments and contact images', |
37 | 37 | array('--filter=JSON', "available keys:\n" |
38 | - . "- before ISODate only applications before the given date\n" |
|
39 | - . "- after ISODate only applications after the given date\n" |
|
40 | - . "- id String Mongo ID of the application\n" |
|
41 | - . "- isDraft Boolean "), |
|
38 | + . "- before ISODate only applications before the given date\n" |
|
39 | + . "- after ISODate only applications after the given date\n" |
|
40 | + . "- id String Mongo ID of the application\n" |
|
41 | + . "- isDraft Boolean "), |
|
42 | 42 | ); |
43 | 43 | } |
44 | 44 |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | public function getConfig() |
51 | 51 | { |
52 | - return ModuleConfigLoader::load(__DIR__ . '/config'); |
|
52 | + return ModuleConfigLoader::load(__DIR__.'/config'); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |
@@ -62,8 +62,8 @@ discard block |
||
62 | 62 | return array( |
63 | 63 | 'Zend\Loader\StandardAutoloader' => array( |
64 | 64 | 'namespaces' => array( |
65 | - __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, |
|
66 | - __NAMESPACE__ . 'Test' => __DIR__ . '/test/' . __NAMESPACE__ .'Test', |
|
65 | + __NAMESPACE__ => __DIR__.'/src/'.__NAMESPACE__, |
|
66 | + __NAMESPACE__.'Test' => __DIR__.'/test/'.__NAMESPACE__.'Test', |
|
67 | 67 | ), |
68 | 68 | ), |
69 | 69 | ); |
@@ -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 |
@@ -24,7 +24,7 @@ |
||
24 | 24 | * |
25 | 25 | * @var string |
26 | 26 | */ |
27 | - protected $label = /*@translate*/ 'Cover Letter'; |
|
27 | + protected $label = /*@translate*/ 'Cover Letter'; |
|
28 | 28 | |
29 | 29 | /** |
30 | 30 | * {@inheritDoc} |
@@ -42,7 +42,7 @@ |
||
42 | 42 | $dm = $eventArgs->getDocumentManager(); |
43 | 43 | $uow = $dm->getUnitOfWork(); |
44 | 44 | |
45 | - $filter = function ($element) { |
|
45 | + $filter = function($element) { |
|
46 | 46 | return $element instanceof ApplicationInterface |
47 | 47 | && $element->getPermissions()->hasChanged(); |
48 | 48 | }; |
@@ -56,8 +56,8 @@ discard block |
||
56 | 56 | |
57 | 57 | foreach ($document->getAttachments() as $attachment) { /* @var \Applications\Entity\Attachment $attachment */ |
58 | 58 | $attachment->getPermissions() |
59 | - ->clear() |
|
60 | - ->inherit($permissions); |
|
59 | + ->clear() |
|
60 | + ->inherit($permissions); |
|
61 | 61 | if ($isUpdate) { |
62 | 62 | $uow->computeChangeSet( |
63 | 63 | $dm->getClassMetadata(get_class($attachment)), |
@@ -68,8 +68,8 @@ discard block |
||
68 | 68 | |
69 | 69 | if ($image = $document->getContact()->getImage()) { |
70 | 70 | $image->getPermissions() |
71 | - ->clear() |
|
72 | - ->inherit($permissions); |
|
71 | + ->clear() |
|
72 | + ->inherit($permissions); |
|
73 | 73 | if ($isUpdate) { |
74 | 74 | $uow->computeChangeSet( |
75 | 75 | $dm->getClassMetadata(get_class($image)), |
@@ -25,7 +25,7 @@ |
||
25 | 25 | */ |
26 | 26 | public function findByUri($uri, $create = false) |
27 | 27 | { |
28 | - $subscriber = $this->findOneBy(array( "uri" => $uri )); |
|
28 | + $subscriber = $this->findOneBy(array("uri" => $uri)); |
|
29 | 29 | if (!isset($subscriber) && $create) { |
30 | 30 | $subscriber = $this->create(); |
31 | 31 | $subscriber->uri = $uri; |
@@ -135,7 +135,7 @@ |
||
135 | 135 | $hybridAuth->restoreSessionData($sessionDataStored); |
136 | 136 | } |
137 | 137 | $adapter = $hybridAuth->authenticate($this->providerKey); |
138 | - $sessionData = $hybridAuth->getSessionData(); |
|
138 | + $sessionData = $hybridAuth->getSessionData(); |
|
139 | 139 | if ($sessionData != $sessionDataStored) { |
140 | 140 | $user->updateAuthSession($this->providerKey, $sessionData); |
141 | 141 | } |
@@ -32,11 +32,11 @@ discard block |
||
32 | 32 | |
33 | 33 | protected $adapter; |
34 | 34 | |
35 | - /** |
|
36 | - * OAuth constructor. |
|
37 | - * |
|
38 | - * @param ContainerInterface $serviceManager |
|
39 | - */ |
|
35 | + /** |
|
36 | + * OAuth constructor. |
|
37 | + * |
|
38 | + * @param ContainerInterface $serviceManager |
|
39 | + */ |
|
40 | 40 | public function __construct(ContainerInterface $serviceManager) |
41 | 41 | { |
42 | 42 | $this->serviceManager = $serviceManager; |
@@ -147,11 +147,11 @@ discard block |
||
147 | 147 | return $this; |
148 | 148 | } |
149 | 149 | |
150 | - /** |
|
151 | - * @param ContainerInterface $container |
|
152 | - * |
|
153 | - * @return static |
|
154 | - */ |
|
150 | + /** |
|
151 | + * @param ContainerInterface $container |
|
152 | + * |
|
153 | + * @return static |
|
154 | + */ |
|
155 | 155 | public static function factory(ContainerInterface $container) |
156 | 156 | { |
157 | 157 | return new static($container); |
@@ -177,7 +177,7 @@ |
||
177 | 177 | /** {@inheritdoc} */ |
178 | 178 | public function setLogin($login) |
179 | 179 | { |
180 | - $this->login = trim((String)$login); |
|
180 | + $this->login = trim((String) $login); |
|
181 | 181 | return $this; |
182 | 182 | } |
183 | 183 |
@@ -20,8 +20,8 @@ |
||
20 | 20 | public function init() |
21 | 21 | { |
22 | 22 | $this->setName('base'); |
23 | - //->setLabel( /* @translate */ 'General'); |
|
24 | - //->setHydrator(new \Core\Model\Hydrator\ModelHydrator()); |
|
23 | + //->setLabel( /* @translate */ 'General'); |
|
24 | + //->setHydrator(new \Core\Model\Hydrator\ModelHydrator()); |
|
25 | 25 | |
26 | 26 | |
27 | 27 | $this->add( |