@@ -14,10 +14,10 @@ |
||
14 | 14 | protected $validator; |
15 | 15 | |
16 | 16 | /** |
17 | - * Get a validator if none has been set. |
|
18 | - * https://github.com/posabsolute/jQuery-Validation-Engine/issues/265 |
|
19 | - * @return RegexValidator |
|
20 | - */ |
|
17 | + * Get a validator if none has been set. |
|
18 | + * https://github.com/posabsolute/jQuery-Validation-Engine/issues/265 |
|
19 | + * @return RegexValidator |
|
20 | + */ |
|
21 | 21 | public function getValidator() |
22 | 22 | { |
23 | 23 | if (null === $this->validator) { |
@@ -77,6 +77,7 @@ discard block |
||
77 | 77 | |
78 | 78 | /** |
79 | 79 | * @param string $description |
80 | + * @param double[] $params |
|
80 | 81 | * |
81 | 82 | * @return $this |
82 | 83 | */ |
@@ -258,7 +259,7 @@ discard block |
||
258 | 259 | } |
259 | 260 | |
260 | 261 | /** |
261 | - * @param $spec |
|
262 | + * @param string $spec |
|
262 | 263 | * |
263 | 264 | * @return $this |
264 | 265 | */ |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | * |
81 | 81 | * @return $this |
82 | 82 | */ |
83 | - public function setDescription($description,$params = null) |
|
83 | + public function setDescription($description, $params = null) |
|
84 | 84 | { |
85 | 85 | $this->options['description'] = $description; |
86 | 86 | $this->options['description_params'] = $params; |
@@ -350,9 +350,9 @@ discard block |
||
350 | 350 | if (!$inputExists && $required) { |
351 | 351 | $fieldsetName = ''; |
352 | 352 | if ($fieldset->hasAttribute('name')) { |
353 | - $fieldsetName = 'in Fieldset "' . $fieldset->getAttribute('name') . '" '; |
|
353 | + $fieldsetName = 'in Fieldset "'.$fieldset->getAttribute('name').'" '; |
|
354 | 354 | } |
355 | - throw new \RuntimeException('input for "' . $name . '" ' . $fieldsetName . 'is required but a input-field with this name is not defined'); |
|
355 | + throw new \RuntimeException('input for "'.$name.'" '.$fieldsetName.'is required but a input-field with this name is not defined'); |
|
356 | 356 | } |
357 | 357 | } |
358 | 358 | } |
@@ -24,8 +24,8 @@ |
||
24 | 24 | * @author Mathias Gelhausen <[email protected]> |
25 | 25 | */ |
26 | 26 | class Form extends ZendForm implements DescriptionAwareFormInterface, |
27 | - DisableElementsCapableInterface, |
|
28 | - FormParentInterface |
|
27 | + DisableElementsCapableInterface, |
|
28 | + FormParentInterface |
|
29 | 29 | { |
30 | 30 | |
31 | 31 | use EventManagerAwareTrait, HydratorStrategyAwareTrait; |
@@ -32,7 +32,6 @@ |
||
32 | 32 | } |
33 | 33 | |
34 | 34 | /** |
35 | - * @param mixed $value$organizationImageEntity |
|
36 | 35 | * |
37 | 36 | * @return mixed |
38 | 37 | */ |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | */ |
82 | 82 | public function setLabelQualifications($labelQualifications) |
83 | 83 | { |
84 | - $this->labelQualifications=$labelQualifications; |
|
84 | + $this->labelQualifications = $labelQualifications; |
|
85 | 85 | return $this; |
86 | 86 | } |
87 | 87 | |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | */ |
105 | 105 | public function setLabelBenefits($labelBenefits) |
106 | 106 | { |
107 | - $this->labelBenefits=$labelBenefits; |
|
107 | + $this->labelBenefits = $labelBenefits; |
|
108 | 108 | return $this; |
109 | 109 | } |
110 | 110 |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | /** |
107 | 107 | * Finds the main organization of an user. |
108 | 108 | * |
109 | - * @param string|UserInterface $userOrId |
|
109 | + * @param string $userOrId |
|
110 | 110 | * |
111 | 111 | * @return null|OrganizationInterface |
112 | 112 | */ |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | /** |
143 | 143 | * Finds the organization, an user is employed by. |
144 | 144 | * |
145 | - * @param string|UserInterface $userOrId |
|
145 | + * @param string $userOrId |
|
146 | 146 | * |
147 | 147 | * @return null|OrganizationInterface |
148 | 148 | */ |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | /** |
271 | 271 | * Look for an drafted Document of a given user |
272 | 272 | * |
273 | - * @param $user |
|
273 | + * @param \Auth\Entity\AnonymousUser $user |
|
274 | 274 | * @return \Organizations\Entity\Organization|null |
275 | 275 | */ |
276 | 276 | public function findDraft($user) |
@@ -129,10 +129,10 @@ discard block |
||
129 | 129 | // ) |
130 | 130 | // ); |
131 | 131 | $qb->addAnd($qb->expr()->field('user')->equals($userId)) |
132 | - ->addAnd( |
|
133 | - $qb->expr()->addOr($qb->expr()->field('parent')->exists(false)) |
|
134 | - ->addOr($qb->expr()->field('parent')->equals(null)) |
|
135 | - ); |
|
132 | + ->addAnd( |
|
133 | + $qb->expr()->addOr($qb->expr()->field('parent')->exists(false)) |
|
134 | + ->addOr($qb->expr()->field('parent')->equals(null)) |
|
135 | + ); |
|
136 | 136 | |
137 | 137 | $q = $qb->getQuery(); |
138 | 138 | $entity = $q->getSingleResult(); |
@@ -192,11 +192,11 @@ discard block |
||
192 | 192 | return $c; |
193 | 193 | } |
194 | 194 | |
195 | - /** |
|
196 | - * @param array|null $data |
|
197 | - * @param bool $persist |
|
198 | - * @return \Organizations\Entity\Organization |
|
199 | - */ |
|
195 | + /** |
|
196 | + * @param array|null $data |
|
197 | + * @param bool $persist |
|
198 | + * @return \Organizations\Entity\Organization |
|
199 | + */ |
|
200 | 200 | public function create(array $data = null, $persist=false) |
201 | 201 | { |
202 | 202 | $entity = parent::create($data); |
@@ -197,7 +197,7 @@ |
||
197 | 197 | * @param bool $persist |
198 | 198 | * @return \Organizations\Entity\Organization |
199 | 199 | */ |
200 | - public function create(array $data = null, $persist=false) |
|
200 | + public function create(array $data = null, $persist = false) |
|
201 | 201 | { |
202 | 202 | $entity = parent::create($data); |
203 | 203 | $entity->isDraft(true); |
@@ -19,5 +19,5 @@ |
||
19 | 19 | { |
20 | 20 | protected $theme = 'light'; |
21 | 21 | |
22 | - protected $languagePath="/js/tinymce-lang/"; |
|
22 | + protected $languagePath = "/js/tinymce-lang/"; |
|
23 | 23 | } |
@@ -40,8 +40,8 @@ |
||
40 | 40 | |
41 | 41 | $plugin = new AcceptInvitationHandler(); |
42 | 42 | $plugin->setUserRepository($userRepository) |
43 | - ->setOrganizationRepository($organizationRepository) |
|
44 | - ->setAuthenticationService($authenticationService); |
|
43 | + ->setOrganizationRepository($organizationRepository) |
|
44 | + ->setAuthenticationService($authenticationService); |
|
45 | 45 | |
46 | 46 | return $plugin; |
47 | 47 | } |
@@ -62,6 +62,6 @@ |
||
62 | 62 | ) |
63 | 63 | ) |
64 | 64 | ) |
65 | - ); |
|
65 | + ); |
|
66 | 66 | } |
67 | 67 | } |
@@ -136,13 +136,13 @@ |
||
136 | 136 | { |
137 | 137 | $mail = $this->mailer->get('htmltemplate'); |
138 | 138 | $mail->setTemplate($template) |
139 | - ->setSubject($subject) |
|
140 | - ->setVariables( |
|
141 | - array( |
|
139 | + ->setSubject($subject) |
|
140 | + ->setVariables( |
|
141 | + array( |
|
142 | 142 | 'job' => $job, |
143 | 143 | 'siteName' => $this->options['siteName'], |
144 | 144 | ) |
145 | - ); |
|
145 | + ); |
|
146 | 146 | |
147 | 147 | if ($adminMail) { |
148 | 148 | $mail->setTo($this->options['adminEmail']); |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | $this->options = array_merge($this->options, $options); |
63 | 63 | } |
64 | 64 | |
65 | - public function attach(EventManagerInterface $events, $priority=1) |
|
65 | + public function attach(EventManagerInterface $events, $priority = 1) |
|
66 | 66 | { |
67 | 67 | $this->listeners[] = $events->attach(JobEvent::EVENT_JOB_CREATED, array($this, 'onJobCreated')); |
68 | 68 | $this->listeners[] = $events->attach(JobEvent::EVENT_JOB_ACCEPTED, array($this, 'onJobAccepted')); |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | if ($adminMail) { |
153 | 153 | $mail->setTo($this->options['adminEmail']); |
154 | 154 | } else { |
155 | - if (! ($user = $job->getUser()) ) { return; } |
|
155 | + if (!($user = $job->getUser())) { return; } |
|
156 | 156 | $userInfo = $user->getInfo(); |
157 | 157 | $userEmail = $userInfo->getEmail(); |
158 | 158 | $userName = $userInfo->getDisplayName(/*emailIfEmpty*/ false); |