@@ -173,6 +173,9 @@ |
||
| 173 | 173 | return $this->redirect()->refresh(); |
| 174 | 174 | } |
| 175 | 175 | |
| 176 | + /** |
|
| 177 | + * @param \Cv\Repository\Cv $repository |
|
| 178 | + */ |
|
| 176 | 179 | private function getCv($repository, $user) |
| 177 | 180 | { |
| 178 | 181 | $id = |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | } |
| 187 | 187 | |
| 188 | 188 | /** |
| 189 | - * @return ArrayCollection |
|
| 189 | + * @return IdentityWrapper |
|
| 190 | 190 | */ |
| 191 | 191 | public function getEducationsIndexedById() |
| 192 | 192 | { |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | } |
| 216 | 216 | |
| 217 | 217 | /** |
| 218 | - * @return ArrayCollection |
|
| 218 | + * @return IdentityWrapper |
|
| 219 | 219 | */ |
| 220 | 220 | public function getEmploymentsIndexedById() |
| 221 | 221 | { |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | } |
| 245 | 245 | |
| 246 | 246 | /** |
| 247 | - * @return ArrayCollection |
|
| 247 | + * @return IdentityWrapper |
|
| 248 | 248 | */ |
| 249 | 249 | public function getSkillsIndexedById() |
| 250 | 250 | { |
@@ -322,7 +322,7 @@ discard block |
||
| 322 | 322 | } |
| 323 | 323 | |
| 324 | 324 | /** |
| 325 | - * @return ArrayCollection |
|
| 325 | + * @return IdentityWrapper |
|
| 326 | 326 | */ |
| 327 | 327 | public function getLanguageSkillsIndexedById() |
| 328 | 328 | { |
@@ -360,7 +360,7 @@ discard block |
||
| 360 | 360 | } |
| 361 | 361 | |
| 362 | 362 | /** |
| 363 | - * @param Status|string $status |
|
| 363 | + * @param string $status |
|
| 364 | 364 | */ |
| 365 | 365 | public function setStatus($status) |
| 366 | 366 | { |
@@ -407,6 +407,9 @@ discard block |
||
| 407 | 407 | } |
| 408 | 408 | } |
| 409 | 409 | |
| 410 | + /** |
|
| 411 | + * @param UserInterface $oldUser |
|
| 412 | + */ |
|
| 410 | 413 | private function updatePermissions($oldUser = null) |
| 411 | 414 | { |
| 412 | 415 | $hasPermissions = (bool) $this->permissions; |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | * Look for an drafted Document of a given user |
| 23 | 23 | * |
| 24 | 24 | * @param $user |
| 25 | - * @return CvEntity|null |
|
| 25 | + * @return \MongoCursor |
|
| 26 | 26 | */ |
| 27 | 27 | public function findDraft($user) |
| 28 | 28 | { |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | $queryBuilder/*->expr()*/->addOr($queryBuilder->expr()->field('permissions.view')->equals($this->user->getId())) |
| 51 | - ->addOr($queryBuilder->expr()->field('status.name')->equals(Status::PUBLIC_TO_ALL)) |
|
| 51 | + ->addOr($queryBuilder->expr()->field('status.name')->equals(Status::PUBLIC_TO_ALL)) |
|
| 52 | 52 | ; |
| 53 | 53 | //$q = $queryBuilder->getQuery()->debug(); |
| 54 | 54 | |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | $resume = $this->repository->find($id); |
| 42 | 42 | |
| 43 | 43 | if (!$resume) { |
| 44 | - throw new \Exception('No resume found with id ' . $id); |
|
| 44 | + throw new \Exception('No resume found with id '.$id); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | /* @todo REMOVE THIS |
@@ -10,10 +10,10 @@ |
||
| 10 | 10 | use Core\Entity\IdentifiableEntityInterface; |
| 11 | 11 | |
| 12 | 12 | interface CvInterface extends EntityInterface, |
| 13 | - IdentifiableEntityInterface, |
|
| 14 | - DraftableEntityInterface, |
|
| 15 | - PermissionsAwareInterface, |
|
| 16 | - ModificationDateAwareEntityInterface |
|
| 13 | + IdentifiableEntityInterface, |
|
| 14 | + DraftableEntityInterface, |
|
| 15 | + PermissionsAwareInterface, |
|
| 16 | + ModificationDateAwareEntityInterface |
|
| 17 | 17 | { |
| 18 | 18 | |
| 19 | 19 | /** |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | * for multiple paths. |
| 16 | 16 | * example https://github.com/doctrine/DoctrineORMModule |
| 17 | 17 | */ |
| 18 | - 'paths' => array( __DIR__ . '/../src/Cv/Entity'), |
|
| 18 | + 'paths' => array(__DIR__.'/../src/Cv/Entity'), |
|
| 19 | 19 | ), |
| 20 | 20 | ), |
| 21 | 21 | 'eventmanager' => array( |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | 'translation_file_patterns' => array( |
| 36 | 36 | array( |
| 37 | 37 | 'type' => 'gettext', |
| 38 | - 'base_dir' => __DIR__ . '/../language', |
|
| 38 | + 'base_dir' => __DIR__.'/../language', |
|
| 39 | 39 | 'pattern' => '%s.mo', |
| 40 | 40 | ), |
| 41 | 41 | ), |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | 'resume-recruiter' => array( |
| 166 | 166 | 'label' => /*@translate*/ 'Talent-Pool', |
| 167 | 167 | 'route' => 'lang/cvs', |
| 168 | - 'active_on' => [ 'lang/cvs/edit', 'lang/cvs/view' ], |
|
| 168 | + 'active_on' => ['lang/cvs/edit', 'lang/cvs/view'], |
|
| 169 | 169 | 'resource' => 'navigation/resume-recruiter', |
| 170 | 170 | 'order' => 10, |
| 171 | 171 | 'pages' => array( |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | |
| 199 | 199 | // Where to look for view templates not mapped above |
| 200 | 200 | 'template_path_stack' => array( |
| 201 | - __DIR__ . '/../view', |
|
| 201 | + __DIR__.'/../view', |
|
| 202 | 202 | ), |
| 203 | 203 | ), |
| 204 | 204 | |