@@ -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 | /** |
@@ -60,11 +60,11 @@ |
||
| 60 | 60 | protected $skills; |
| 61 | 61 | |
| 62 | 62 | /** |
| 63 | - * Skills |
|
| 64 | - * |
|
| 65 | - * @var ArrayCollection |
|
| 66 | - * @ODM\EmbedMany(targetDocument="\Cv\Entity\Language") |
|
| 67 | - */ |
|
| 63 | + * Skills |
|
| 64 | + * |
|
| 65 | + * @var ArrayCollection |
|
| 66 | + * @ODM\EmbedMany(targetDocument="\Cv\Entity\Language") |
|
| 67 | + */ |
|
| 68 | 68 | protected $languageSkills; |
| 69 | 69 | |
| 70 | 70 | /** |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | * @var array |
| 83 | 83 | * @ODM\Field(type="collection") |
| 84 | 84 | */ |
| 85 | - protected $nativeLanguages=[]; |
|
| 85 | + protected $nativeLanguages = []; |
|
| 86 | 86 | |
| 87 | 87 | |
| 88 | 88 | /** |
@@ -267,7 +267,7 @@ discard block |
||
| 267 | 267 | */ |
| 268 | 268 | public function setIsDraft($isDraft) |
| 269 | 269 | { |
| 270 | - $this->isDraft=$isDraft; |
|
| 270 | + $this->isDraft = $isDraft; |
|
| 271 | 271 | return $this; |
| 272 | 272 | } |
| 273 | 273 | |
@@ -337,7 +337,7 @@ discard block |
||
| 337 | 337 | */ |
| 338 | 338 | public function setNativeLanguages($nativeLanguages) |
| 339 | 339 | { |
| 340 | - $this->nativeLanguages=$nativeLanguages; |
|
| 340 | + $this->nativeLanguages = $nativeLanguages; |
|
| 341 | 341 | return $this; |
| 342 | 342 | } |
| 343 | 343 | |
@@ -18,20 +18,20 @@ discard block |
||
| 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/Entity'] |
|
| 34 | + 'paths' => [ __DIR__ . '/../src/Entity'] |
|
| 35 | 35 | ], |
| 36 | 36 | ], |
| 37 | 37 | 'eventmanager' => [ |
@@ -71,18 +71,18 @@ discard block |
||
| 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 | Listener\LoadDependendEntities::class => InvokableFactory::class, |
| 83 | 83 | ], |
| 84 | 84 | 'aliases' => [ |
| 85 | - 'Applications/Listener/ApplicationStatusChangePost' => 'Applications/Listener/ApplicationStatusChangePre' |
|
| 85 | + 'Applications/Listener/ApplicationStatusChangePost' => 'Applications/Listener/ApplicationStatusChangePre' |
|
| 86 | 86 | ] |
| 87 | 87 | ], |
| 88 | 88 | |
@@ -185,20 +185,20 @@ discard block |
||
| 185 | 185 | ], |
| 186 | 186 | 'form_elements' => [ |
| 187 | 187 | 'invokables' => [ |
| 188 | - 'Applications/Mail' => 'Applications\Form\Mail', |
|
| 189 | - 'Applications/BaseFieldset' => 'Applications\Form\BaseFieldset', |
|
| 190 | - 'Applications/SettingsFieldset' => 'Applications\Form\SettingsFieldset', |
|
| 191 | - 'Applications/CommentForm' => 'Applications\Form\CommentForm', |
|
| 192 | - 'Applications/CommentFieldset' => 'Applications\Form\CommentFieldset', |
|
| 193 | - 'Applications/Apply' => 'Applications\Form\Apply', |
|
| 194 | - 'Applications/Contact' => 'Applications\Form\ContactContainer', |
|
| 195 | - 'Applications/Base' => 'Applications\Form\Base', |
|
| 196 | - 'Applications/Facts' => 'Applications\Form\Facts', |
|
| 197 | - 'Applications/FactsFieldset' => 'Applications\Form\FactsFieldset', |
|
| 198 | - 'Applications/Attributes' => 'Applications\Form\Attributes', |
|
| 199 | - 'href' => 'Applications\Form\Element\Ref', |
|
| 188 | + 'Applications/Mail' => 'Applications\Form\Mail', |
|
| 189 | + 'Applications/BaseFieldset' => 'Applications\Form\BaseFieldset', |
|
| 190 | + 'Applications/SettingsFieldset' => 'Applications\Form\SettingsFieldset', |
|
| 191 | + 'Applications/CommentForm' => 'Applications\Form\CommentForm', |
|
| 192 | + 'Applications/CommentFieldset' => 'Applications\Form\CommentFieldset', |
|
| 193 | + 'Applications/Apply' => 'Applications\Form\Apply', |
|
| 194 | + 'Applications/Contact' => 'Applications\Form\ContactContainer', |
|
| 195 | + 'Applications/Base' => 'Applications\Form\Base', |
|
| 196 | + 'Applications/Facts' => 'Applications\Form\Facts', |
|
| 197 | + 'Applications/FactsFieldset' => 'Applications\Form\FactsFieldset', |
|
| 198 | + 'Applications/Attributes' => 'Applications\Form\Attributes', |
|
| 199 | + 'href' => 'Applications\Form\Element\Ref', |
|
| 200 | 200 | |
| 201 | - ], |
|
| 201 | + ], |
|
| 202 | 202 | 'factories' => [ |
| 203 | 203 | 'Applications/ContactImage' => 'Applications\Factory\Form\ContactImageFactory', |
| 204 | 204 | 'Applications/Attachments' => 'Applications\Factory\Form\AttachmentsFactory', |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | 'Applications\Form\Element\StatusSelect' => Factory\Form\StatusSelectFactory::class, |
| 207 | 207 | Form\Element\JobSelect::class => Factory\Form\JobSelectFactory::class |
| 208 | 208 | ], |
| 209 | - ], |
|
| 209 | + ], |
|
| 210 | 210 | |
| 211 | 211 | 'form_elements_config' => [ |
| 212 | 212 | 'Applications/Apply' => [ |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | * for multiple paths. |
| 34 | 34 | * example https://github.com/doctrine/DoctrineORMModule |
| 35 | 35 | */ |
| 36 | - 'paths' => [ __DIR__ . '/../src/Entity'] |
|
| 36 | + 'paths' => [__DIR__.'/../src/Entity'] |
|
| 37 | 37 | ], |
| 38 | 38 | ], |
| 39 | 39 | 'eventmanager' => [ |
@@ -94,10 +94,10 @@ discard block |
||
| 94 | 94 | 'Applications\Controller\MultiManage' => 'Applications\Controller\MultimanageController', |
| 95 | 95 | ], |
| 96 | 96 | 'factories' => [ |
| 97 | - 'Applications/Controller/Manage' => [ManageController::class,'factory'], |
|
| 98 | - 'Applications\Controller\Apply' => [ApplyController::class,'factory'], |
|
| 99 | - 'Applications/CommentController' => [CommentController::class,'factory'], |
|
| 100 | - 'Applications/Console' => [ConsoleController::class,'factory'], |
|
| 97 | + 'Applications/Controller/Manage' => [ManageController::class, 'factory'], |
|
| 98 | + 'Applications\Controller\Apply' => [ApplyController::class, 'factory'], |
|
| 99 | + 'Applications/CommentController' => [CommentController::class, 'factory'], |
|
| 100 | + 'Applications/Console' => [ConsoleController::class, 'factory'], |
|
| 101 | 101 | ApiApplyController::class => ApiApplyControllerFactory::class, |
| 102 | 102 | ] |
| 103 | 103 | ], |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | 'translation_file_patterns' => [ |
| 158 | 158 | [ |
| 159 | 159 | 'type' => 'gettext', |
| 160 | - 'base_dir' => __DIR__ . '/../language', |
|
| 160 | + 'base_dir' => __DIR__.'/../language', |
|
| 161 | 161 | 'pattern' => '%s.mo', |
| 162 | 162 | ], |
| 163 | 163 | ], |
@@ -165,16 +165,16 @@ discard block |
||
| 165 | 165 | // Configure the view service manager |
| 166 | 166 | 'view_manager' => [ |
| 167 | 167 | 'template_path_stack' => [ |
| 168 | - 'Applications' => __DIR__ . '/../view', |
|
| 168 | + 'Applications' => __DIR__.'/../view', |
|
| 169 | 169 | ], |
| 170 | 170 | 'template_map' => [ |
| 171 | - 'applications/error/not-found' => __DIR__ . '/../view/error/not-found.phtml', |
|
| 172 | - 'layout/apply' => __DIR__ . '/../view/layout/layout.phtml', |
|
| 173 | - 'applications/sidebar/manage' => __DIR__ . '/../view/sidebar/manage.phtml', |
|
| 174 | - 'applications/mail/forward' => __DIR__ . '/../view/mail/forward.phtml', |
|
| 175 | - 'applications/detail/pdf' => __DIR__ . '/../view/applications/manage/detail.pdf.phtml', |
|
| 176 | - 'applications/index/disclaimer' => __DIR__ . '/../view/applications/index/disclaimer.phtml', |
|
| 177 | - 'content/applications-privacy-policy' => __DIR__ . '/../view/applications/index/disclaimer.phtml', |
|
| 171 | + 'applications/error/not-found' => __DIR__.'/../view/error/not-found.phtml', |
|
| 172 | + 'layout/apply' => __DIR__.'/../view/layout/layout.phtml', |
|
| 173 | + 'applications/sidebar/manage' => __DIR__.'/../view/sidebar/manage.phtml', |
|
| 174 | + 'applications/mail/forward' => __DIR__.'/../view/mail/forward.phtml', |
|
| 175 | + 'applications/detail/pdf' => __DIR__.'/../view/applications/manage/detail.pdf.phtml', |
|
| 176 | + 'applications/index/disclaimer' => __DIR__.'/../view/applications/index/disclaimer.phtml', |
|
| 177 | + 'content/applications-privacy-policy' => __DIR__.'/../view/applications/index/disclaimer.phtml', |
|
| 178 | 178 | ] |
| 179 | 179 | ], |
| 180 | 180 | 'view_helpers' => [ |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | 'factories' => [ |
| 245 | 245 | 'Applications/NewApplication' => 'Applications\Factory\Mail\NewApplicationFactory', |
| 246 | 246 | Mail\Confirmation::class => Factory\Mail\ConfirmationFactory::class, |
| 247 | - 'Applications/Forward' => [Forward::class,'factory'], |
|
| 247 | + 'Applications/Forward' => [Forward::class, 'factory'], |
|
| 248 | 248 | ], |
| 249 | 249 | 'aliases' => [ |
| 250 | 250 | 'Applications/Confirmation' => Mail\Confirmation::class, |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | |
| 80 | 80 | protected $workflow = [ |
| 81 | 81 | |
| 82 | - 'recruiter', |
|
| 82 | + 'recruiter', |
|
| 83 | 83 | ]; |
| 84 | 84 | |
| 85 | 85 | /** |
@@ -237,7 +237,7 @@ |
||
| 237 | 237 | */ |
| 238 | 238 | public function setAllowSubsequentAttachmentUpload($allowSubsequentAttachmentUpload) |
| 239 | 239 | { |
| 240 | - $this->allowSubsequentAttachmentUpload = (bool)$allowSubsequentAttachmentUpload; |
|
| 240 | + $this->allowSubsequentAttachmentUpload = (bool) $allowSubsequentAttachmentUpload; |
|
| 241 | 241 | |
| 242 | 242 | return $this; |
| 243 | 243 | } |
@@ -102,9 +102,9 @@ discard block |
||
| 102 | 102 | { |
| 103 | 103 | $qb = $this->getPaginationQueryBuilder($params); |
| 104 | 104 | $cursor = $qb->hydrate(false) |
| 105 | - ->select('_id') |
|
| 106 | - ->getQuery() |
|
| 107 | - ->execute(); |
|
| 105 | + ->select('_id') |
|
| 106 | + ->getQuery() |
|
| 107 | + ->execute(); |
|
| 108 | 108 | |
| 109 | 109 | $list = new PaginationList(array_keys(ArrayUtils::iteratorToArray($cursor))); |
| 110 | 110 | return $list; |
@@ -133,8 +133,8 @@ discard block |
||
| 133 | 133 | { |
| 134 | 134 | $auth=$this->getService('AuthenticationService'); |
| 135 | 135 | $qb=$this->createQueryBuilder() |
| 136 | - ->field("readBy")->notIn(array($auth->getUser()->getId())) |
|
| 137 | - ->field("job")->equals(new \MongoId($job->getId())); |
|
| 136 | + ->field("readBy")->notIn(array($auth->getUser()->getId())) |
|
| 137 | + ->field("job")->equals(new \MongoId($job->getId())); |
|
| 138 | 138 | return $qb->getQuery()->execute(); |
| 139 | 139 | } |
| 140 | 140 | |
@@ -131,8 +131,8 @@ |
||
| 131 | 131 | */ |
| 132 | 132 | public function loadUnreadApplicationsForJob($job) |
| 133 | 133 | { |
| 134 | - $auth=$this->getService('AuthenticationService'); |
|
| 135 | - $qb=$this->createQueryBuilder() |
|
| 134 | + $auth = $this->getService('AuthenticationService'); |
|
| 135 | + $qb = $this->createQueryBuilder() |
|
| 136 | 136 | ->field("readBy")->notIn(array($auth->getUser()->getId())) |
| 137 | 137 | ->field("job")->equals(new \MongoId($job->getId())); |
| 138 | 138 | return $qb->getQuery()->execute(); |
@@ -51,14 +51,14 @@ |
||
| 51 | 51 | $fileId = new \MongoId($file->id); |
| 52 | 52 | |
| 53 | 53 | $dm->createQueryBuilder('Applications\Entity\Application') |
| 54 | - ->update()->multiple(true) |
|
| 55 | - ->field('attachments')->equals($fileId)->pull($fileId) |
|
| 56 | - ->getQuery()->execute(); |
|
| 54 | + ->update()->multiple(true) |
|
| 55 | + ->field('attachments')->equals($fileId)->pull($fileId) |
|
| 56 | + ->getQuery()->execute(); |
|
| 57 | 57 | |
| 58 | 58 | |
| 59 | 59 | $dm->createQueryBuilder('Applications\Entity\Application') |
| 60 | - ->update()->multiple(true) |
|
| 61 | - ->field('contact.image')->equals($fileId)->set(null) |
|
| 62 | - ->getQuery()->execute(); |
|
| 60 | + ->update()->multiple(true) |
|
| 61 | + ->field('contact.image')->equals($fileId)->set(null) |
|
| 62 | + ->getQuery()->execute(); |
|
| 63 | 63 | } |
| 64 | 64 | } |
@@ -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)), |
@@ -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 | }; |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | * and which are not in draft mode |
| 92 | 92 | */ |
| 93 | 93 | $queryBuilder->field('permissions.view')->equals($userID) |
| 94 | - ->field('isDraft')->equals(false); |
|
| 94 | + ->field('isDraft')->equals(false); |
|
| 95 | 95 | |
| 96 | 96 | if (!isset($value['sort'])) { |
| 97 | 97 | $value['sort'] = '-date'; |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | * |
| 24 | 24 | * @var String |
| 25 | 25 | */ |
| 26 | - protected $repositoryName="Applications/Application"; |
|
| 26 | + protected $repositoryName = "Applications/Application"; |
|
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * Sortable fields |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | $searchPatterns = array(); |
| 82 | 82 | |
| 83 | 83 | foreach (explode(' ', $search) as $searchItem) { |
| 84 | - $searchPatterns[] = new \MongoRegex('/^' . $searchItem . '/'); |
|
| 84 | + $searchPatterns[] = new \MongoRegex('/^'.$searchItem.'/'); |
|
| 85 | 85 | } |
| 86 | 86 | $queryBuilder->field('keywords')->all($searchPatterns); |
| 87 | 87 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | { |
| 29 | 29 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
| 30 | 30 | { |
| 31 | - $auth = $container->get('AuthenticationService'); |
|
| 31 | + $auth = $container->get('AuthenticationService'); |
|
| 32 | 32 | $filter = new PaginationQuery($auth); |
| 33 | 33 | return $filter; |
| 34 | 34 | } |