@@ -79,7 +79,7 @@ |
||
| 79 | 79 | |
| 80 | 80 | protected $workflow = [ |
| 81 | 81 | |
| 82 | - 'recruiter', |
|
| 82 | + 'recruiter', |
|
| 83 | 83 | ]; |
| 84 | 84 | |
| 85 | 85 | /** |
@@ -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 | |
@@ -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)), |
@@ -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'; |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | public function init() |
| 35 | 35 | { |
| 36 | 36 | $this->setHydrator(new \Core\Entity\Hydrator\EntityHydrator()) |
| 37 | - ->setName('base'); |
|
| 37 | + ->setName('base'); |
|
| 38 | 38 | |
| 39 | 39 | $this->add( |
| 40 | 40 | array( |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | public function init() |
| 26 | 26 | { |
| 27 | 27 | $this->setIsDisableCapable(false) |
| 28 | - ->setIsDisableElementsCapable(false); |
|
| 28 | + ->setIsDisableElementsCapable(false); |
|
| 29 | 29 | |
| 30 | 30 | $this->setForms( |
| 31 | 31 | array( |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | public function init() |
| 21 | 21 | { |
| 22 | 22 | $this->setName('carboncopy') |
| 23 | - ->setLabel('Options'); |
|
| 23 | + ->setLabel('Options'); |
|
| 24 | 24 | |
| 25 | 25 | $this->add( |
| 26 | 26 | array( |
@@ -35,50 +35,50 @@ |
||
| 35 | 35 | protected function addElements() |
| 36 | 36 | { |
| 37 | 37 | $this->add( |
| 38 | - [ |
|
| 39 | - 'type' => JobSelect::class, |
|
| 40 | - 'name' => 'job', |
|
| 41 | - 'options' => [ |
|
| 42 | - 'label' => /* @translate */ 'Enter job title', |
|
| 43 | - //'empty_option' => 'Enter job title', |
|
| 44 | - ], |
|
| 45 | - 'attributes' => [ |
|
| 46 | - 'id' => 'job-filter', |
|
| 47 | - 'class' => 'form-control', |
|
| 48 | - 'data-placeholder' => 'Enter job title', |
|
| 49 | - 'data-autoinit' => 'false', |
|
| 50 | - 'data-submit-on-change' => 'true', |
|
| 51 | - ] |
|
| 52 | - ] |
|
| 38 | + [ |
|
| 39 | + 'type' => JobSelect::class, |
|
| 40 | + 'name' => 'job', |
|
| 41 | + 'options' => [ |
|
| 42 | + 'label' => /* @translate */ 'Enter job title', |
|
| 43 | + //'empty_option' => 'Enter job title', |
|
| 44 | + ], |
|
| 45 | + 'attributes' => [ |
|
| 46 | + 'id' => 'job-filter', |
|
| 47 | + 'class' => 'form-control', |
|
| 48 | + 'data-placeholder' => 'Enter job title', |
|
| 49 | + 'data-autoinit' => 'false', |
|
| 50 | + 'data-submit-on-change' => 'true', |
|
| 51 | + ] |
|
| 52 | + ] |
|
| 53 | 53 | ); |
| 54 | 54 | |
| 55 | 55 | $this->add( |
| 56 | - [ |
|
| 57 | - 'type' => 'Applications\Form\Element\StatusSelect', |
|
| 58 | - 'name' => 'status', |
|
| 59 | - 'options' => [ |
|
| 60 | - 'label' => /* @translate */ 'Status', |
|
| 61 | - ], |
|
| 62 | - 'attributes' => [ |
|
| 63 | - 'data-width' => '100%', |
|
| 64 | - 'data-submit-on-change' => 'true', |
|
| 65 | - 'data-placeholder' => /*@translate*/ 'all', |
|
| 66 | - ] |
|
| 67 | - ] |
|
| 56 | + [ |
|
| 57 | + 'type' => 'Applications\Form\Element\StatusSelect', |
|
| 58 | + 'name' => 'status', |
|
| 59 | + 'options' => [ |
|
| 60 | + 'label' => /* @translate */ 'Status', |
|
| 61 | + ], |
|
| 62 | + 'attributes' => [ |
|
| 63 | + 'data-width' => '100%', |
|
| 64 | + 'data-submit-on-change' => 'true', |
|
| 65 | + 'data-placeholder' => /*@translate*/ 'all', |
|
| 66 | + ] |
|
| 67 | + ] |
|
| 68 | 68 | ); |
| 69 | 69 | |
| 70 | 70 | $this->add( |
| 71 | - ['type' => 'ToggleButton', |
|
| 72 | - 'name' => 'unread', |
|
| 73 | - 'options' => [ |
|
| 74 | - 'checked_value' => '1', |
|
| 75 | - 'unchecked_value' => '0', |
|
| 76 | - 'label' => 'unread', |
|
| 77 | - ], |
|
| 78 | - 'attributes' => [ |
|
| 79 | - 'data-submit-on-change' => 'true', |
|
| 80 | - ] |
|
| 81 | - ] |
|
| 71 | + ['type' => 'ToggleButton', |
|
| 72 | + 'name' => 'unread', |
|
| 73 | + 'options' => [ |
|
| 74 | + 'checked_value' => '1', |
|
| 75 | + 'unchecked_value' => '0', |
|
| 76 | + 'label' => 'unread', |
|
| 77 | + ], |
|
| 78 | + 'attributes' => [ |
|
| 79 | + 'data-submit-on-change' => 'true', |
|
| 80 | + ] |
|
| 81 | + ] |
|
| 82 | 82 | ); |
| 83 | 83 | |
| 84 | 84 | $this->setButtonElement('unread'); |