@@ -145,7 +145,7 @@ |
||
| 145 | 145 | */ |
| 146 | 146 | public function createServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName) |
| 147 | 147 | { |
| 148 | - return $this($serviceLocator,$requestedName); |
|
| 148 | + return $this($serviceLocator,$requestedName); |
|
| 149 | 149 | } |
| 150 | 150 | |
| 151 | 151 | /** |
@@ -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)), |
@@ -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 | |
@@ -241,7 +241,6 @@ discard block |
||
| 241 | 241 | * Gets all comments for the application. |
| 242 | 242 | * |
| 243 | 243 | * @return ArrayCollection; |
| 244 | - |
|
| 245 | 244 | */ |
| 246 | 245 | public function getComments(); |
| 247 | 246 | |
@@ -272,7 +271,6 @@ discard block |
||
| 272 | 271 | * Gets all attributes for an application. |
| 273 | 272 | * |
| 274 | 273 | * @return ArrayCollection; |
| 275 | - |
|
| 276 | 274 | */ |
| 277 | 275 | public function getAttributes(); |
| 278 | 276 | |
@@ -105,7 +105,7 @@ |
||
| 105 | 105 | $application->getComments()->add($comment); |
| 106 | 106 | $application->changeStatus($application->getStatus(), sprintf( |
| 107 | 107 | /* @translate */ 'Application was rated by %s', |
| 108 | - $this->auth()->getUser()->getInfo()->getDisplayName()) |
|
| 108 | + $this->auth()->getUser()->getInfo()->getDisplayName()) |
|
| 109 | 109 | ); |
| 110 | 110 | } |
| 111 | 111 | $viewModel->setVariable('isSaved', true); |
@@ -44,8 +44,8 @@ |
||
| 44 | 44 | $fileId = new \MongoId($file->getId()); |
| 45 | 45 | $dm = $eventArgs->getDocumentManager(); |
| 46 | 46 | $dm->createQueryBuilder('Cv\Entity\Cv') |
| 47 | - ->update()->multiple(true) |
|
| 48 | - ->field('attachments')->equals($fileId)->pull($fileId) |
|
| 49 | - ->getQuery()->execute(); |
|
| 47 | + ->update()->multiple(true) |
|
| 48 | + ->field('attachments')->equals($fileId)->pull($fileId) |
|
| 49 | + ->getQuery()->execute(); |
|
| 50 | 50 | } |
| 51 | 51 | } |
@@ -55,8 +55,8 @@ discard block |
||
| 55 | 55 | { |
| 56 | 56 | $qb = $this->createQueryBuilder(); |
| 57 | 57 | $qb->hydrate(false) |
| 58 | - ->select('applyId') |
|
| 59 | - ->field('applyId')->equals($applyId); |
|
| 58 | + ->select('applyId') |
|
| 59 | + ->field('applyId')->equals($applyId); |
|
| 60 | 60 | |
| 61 | 61 | $result = $qb->getQuery()->execute(); |
| 62 | 62 | $count = $result->count(); |
@@ -88,11 +88,11 @@ discard block |
||
| 88 | 88 | { |
| 89 | 89 | $qb = $this->createQueryBuilder(); |
| 90 | 90 | $qb->hydrate(false) |
| 91 | - ->select('title', 'applyId') |
|
| 92 | - ->field('permissions.view')->equals($userId) |
|
| 93 | - ->field('title')->equals(new \MongoRegex('/' . $query . '/i')) |
|
| 94 | - ->sort('title') |
|
| 95 | - ->limit(5); |
|
| 91 | + ->select('title', 'applyId') |
|
| 92 | + ->field('permissions.view')->equals($userId) |
|
| 93 | + ->field('title')->equals(new \MongoRegex('/' . $query . '/i')) |
|
| 94 | + ->sort('title') |
|
| 95 | + ->limit(5); |
|
| 96 | 96 | |
| 97 | 97 | $result = $qb->getQuery()->execute(); |
| 98 | 98 | |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | $qb = $this->createQueryBuilder(); |
| 160 | 160 | $qb->distinct('organization') |
| 161 | 161 | ->hydrate(true) |
| 162 | - ->field('status.name')->notIn([ StatusInterface::EXPIRED, StatusInterface::INACTIVE ]); |
|
| 162 | + ->field('status.name')->notIn([ StatusInterface::EXPIRED, StatusInterface::INACTIVE ]); |
|
| 163 | 163 | $q = $qb->getQuery(); |
| 164 | 164 | $r = $q->execute(); |
| 165 | 165 | $r = $r->toArray(); |
@@ -224,8 +224,8 @@ discard block |
||
| 224 | 224 | |
| 225 | 225 | if (null !== $isDeleted) { |
| 226 | 226 | $qb->addAnd( |
| 227 | - $qb->expr()->addOr($qb->expr()->field('isDeleted')->equals($isDeleted)) |
|
| 228 | - ->addOr($qb->expr()->field('isDeleted')->exists(false)) |
|
| 227 | + $qb->expr()->addOr($qb->expr()->field('isDeleted')->equals($isDeleted)) |
|
| 228 | + ->addOr($qb->expr()->field('isDeleted')->exists(false)) |
|
| 229 | 229 | ); |
| 230 | 230 | } |
| 231 | 231 | |
@@ -36,24 +36,24 @@ discard block |
||
| 36 | 36 | 'log' => [ |
| 37 | 37 | 'Core/Log' => [ |
| 38 | 38 | 'writers' => [ |
| 39 | - [ |
|
| 40 | - 'name' => 'stream', |
|
| 39 | + [ |
|
| 40 | + 'name' => 'stream', |
|
| 41 | 41 | 'priority' => 1000, |
| 42 | 42 | 'options' => [ |
| 43 | - 'stream' => __DIR__ .'/../../../log/yawik.log', |
|
| 43 | + 'stream' => __DIR__ .'/../../../log/yawik.log', |
|
| 44 | + ], |
|
| 44 | 45 | ], |
| 45 | - ], |
|
| 46 | 46 | ], |
| 47 | 47 | ], |
| 48 | 48 | 'Log/Core/Mail' => [ |
| 49 | 49 | 'writers' => [ |
| 50 | - [ |
|
| 51 | - 'name' => 'stream', |
|
| 50 | + [ |
|
| 51 | + 'name' => 'stream', |
|
| 52 | 52 | 'priority' => 1000, |
| 53 | 53 | 'options' => [ |
| 54 | - 'stream' => __DIR__ .'/../../../log/mails.log', |
|
| 54 | + 'stream' => __DIR__ .'/../../../log/mails.log', |
|
| 55 | + ], |
|
| 55 | 56 | ], |
| 56 | - ], |
|
| 57 | 57 | ], |
| 58 | 58 | ], |
| 59 | 59 | 'ErrorLogger' => [ |
@@ -250,17 +250,17 @@ discard block |
||
| 250 | 250 | // Defines the Core/Navigation. |
| 251 | 251 | 'navigation' => [ |
| 252 | 252 | 'default' => [ |
| 253 | - 'home' => [ |
|
| 254 | - 'label' => /*@translate*/ 'Home', |
|
| 255 | - 'route' => 'lang', |
|
| 256 | - 'visible' => false |
|
| 257 | - ], |
|
| 258 | - 'admin' => [ |
|
| 259 | - 'label ' => /*@translate*/ 'Admin', |
|
| 260 | - 'route' => 'lang/admin', |
|
| 261 | - 'resource' => 'route/lang/admin', |
|
| 262 | - 'order' => 200, |
|
| 263 | - ], |
|
| 253 | + 'home' => [ |
|
| 254 | + 'label' => /*@translate*/ 'Home', |
|
| 255 | + 'route' => 'lang', |
|
| 256 | + 'visible' => false |
|
| 257 | + ], |
|
| 258 | + 'admin' => [ |
|
| 259 | + 'label ' => /*@translate*/ 'Admin', |
|
| 260 | + 'route' => 'lang/admin', |
|
| 261 | + 'resource' => 'route/lang/admin', |
|
| 262 | + 'order' => 200, |
|
| 263 | + ], |
|
| 264 | 264 | ], |
| 265 | 265 | ], |
| 266 | 266 | // Configuration of the controller service manager (Which loads controllers) |
@@ -68,13 +68,13 @@ discard block |
||
| 68 | 68 | 'view_manager' => [ |
| 69 | 69 | // Map template to files. Speeds up the lookup through the template stack. |
| 70 | 70 | 'template_map' => [ |
| 71 | - 'organizations/index/edit' => __DIR__ . '/../view/organizations/index/form.phtml', |
|
| 72 | - 'organizations/form/employees-fieldset' => __DIR__ . '/../view/form/employees-fieldset.phtml', |
|
| 73 | - 'organizations/form/employee-fieldset' => __DIR__ .'/../view/form/employee-fieldset.phtml', |
|
| 74 | - 'organizations/form/invite-employee-bar' => __DIR__ . '/../view/form/invite-employee-bar.phtml', |
|
| 75 | - 'organizations/error/no-parent' => __DIR__ . '/../view/error/no-parent.phtml', |
|
| 76 | - 'organizations/error/invite' => __DIR__ . '/../view/error/invite.phtml', |
|
| 77 | - 'organizations/mail/invite-employee' => __DIR__ . '/../view/mail/invite-employee.phtml', |
|
| 71 | + 'organizations/index/edit' => __DIR__ . '/../view/organizations/index/form.phtml', |
|
| 72 | + 'organizations/form/employees-fieldset' => __DIR__ . '/../view/form/employees-fieldset.phtml', |
|
| 73 | + 'organizations/form/employee-fieldset' => __DIR__ .'/../view/form/employee-fieldset.phtml', |
|
| 74 | + 'organizations/form/invite-employee-bar' => __DIR__ . '/../view/form/invite-employee-bar.phtml', |
|
| 75 | + 'organizations/error/no-parent' => __DIR__ . '/../view/error/no-parent.phtml', |
|
| 76 | + 'organizations/error/invite' => __DIR__ . '/../view/error/invite.phtml', |
|
| 77 | + 'organizations/mail/invite-employee' => __DIR__ . '/../view/mail/invite-employee.phtml', |
|
| 78 | 78 | 'organizations/form/workflow-fieldset' => __DIR__ . '/../view/form/workflow-fieldset.phtml', |
| 79 | 79 | ], |
| 80 | 80 | // Where to look for view templates not mapped above |
@@ -84,20 +84,20 @@ discard block |
||
| 84 | 84 | ], |
| 85 | 85 | 'form_elements' => [ |
| 86 | 86 | 'invokables' => [ |
| 87 | - 'Organizations/form' => 'Organizations\Form\Organizations', |
|
| 88 | - 'Organizations/OrganizationsContactForm' => 'Organizations\Form\OrganizationsContactForm', |
|
| 89 | - 'Organizations/OrganizationsNameForm' => 'Organizations\Form\OrganizationsNameForm', |
|
| 90 | - 'Organizations/OrganizationsDescriptionForm' => 'Organizations\Form\OrganizationsDescriptionForm', |
|
| 91 | - 'Organizations/OrganizationsContactFieldset' => 'Organizations\Form\OrganizationsContactFieldset', |
|
| 92 | - 'Organizations/OrganizationsNameFieldset' => 'Organizations\Form\OrganizationsNameFieldset', |
|
| 93 | - 'Organizations/OrganizationsDescriptionFieldset' => 'Organizations\Form\OrganizationsDescriptionFieldset', |
|
| 94 | - //'Organizations/OrganizationFieldset' => 'Organizations\Form\OrganizationFieldset', |
|
| 95 | - 'Organizations/EmployeesContainer' => 'Organizations\Form\EmployeesContainer', |
|
| 96 | - 'Organizations/Employees' => 'Organizations\Form\Employees', |
|
| 97 | - 'Organizations/InviteEmployeeBar' => 'Organizations\Form\Element\InviteEmployeeBar', |
|
| 98 | - 'Organizations/Employee' => 'Organizations\Form\Element\Employee', |
|
| 99 | - 'Organizations/WorkflowSettings' => 'Organizations\Form\WorkflowSettings', |
|
| 100 | - 'Organizations/WorkflowSettingsFieldset' => 'Organizations\Form\WorkflowSettingsFieldset', |
|
| 87 | + 'Organizations/form' => 'Organizations\Form\Organizations', |
|
| 88 | + 'Organizations/OrganizationsContactForm' => 'Organizations\Form\OrganizationsContactForm', |
|
| 89 | + 'Organizations/OrganizationsNameForm' => 'Organizations\Form\OrganizationsNameForm', |
|
| 90 | + 'Organizations/OrganizationsDescriptionForm' => 'Organizations\Form\OrganizationsDescriptionForm', |
|
| 91 | + 'Organizations/OrganizationsContactFieldset' => 'Organizations\Form\OrganizationsContactFieldset', |
|
| 92 | + 'Organizations/OrganizationsNameFieldset' => 'Organizations\Form\OrganizationsNameFieldset', |
|
| 93 | + 'Organizations/OrganizationsDescriptionFieldset' => 'Organizations\Form\OrganizationsDescriptionFieldset', |
|
| 94 | + //'Organizations/OrganizationFieldset' => 'Organizations\Form\OrganizationFieldset', |
|
| 95 | + 'Organizations/EmployeesContainer' => 'Organizations\Form\EmployeesContainer', |
|
| 96 | + 'Organizations/Employees' => 'Organizations\Form\Employees', |
|
| 97 | + 'Organizations/InviteEmployeeBar' => 'Organizations\Form\Element\InviteEmployeeBar', |
|
| 98 | + 'Organizations/Employee' => 'Organizations\Form\Element\Employee', |
|
| 99 | + 'Organizations/WorkflowSettings' => 'Organizations\Form\WorkflowSettings', |
|
| 100 | + 'Organizations/WorkflowSettingsFieldset' => 'Organizations\Form\WorkflowSettingsFieldset', |
|
| 101 | 101 | |
| 102 | 102 | ], |
| 103 | 103 | 'factories' => [ |
@@ -197,13 +197,13 @@ discard block |
||
| 197 | 197 | |
| 198 | 198 | 'service_manager' => [ |
| 199 | 199 | 'invokables' => [ |
| 200 | - 'Organizations\Auth\Dependency\EmployeeListListener' => 'Organizations\Auth\Dependency\EmployeeListListener' |
|
| 200 | + 'Organizations\Auth\Dependency\EmployeeListListener' => 'Organizations\Auth\Dependency\EmployeeListListener' |
|
| 201 | 201 | ], |
| 202 | 202 | 'factories' => [ |
| 203 | - 'Organizations\Auth\Dependency\ListListener' => 'Organizations\Factory\Auth\Dependency\ListListenerFactory', |
|
| 204 | - 'Organizations\ImageFileCache\Manager' => 'Organizations\Factory\ImageFileCache\ManagerFactory', |
|
| 205 | - 'Organizations\ImageFileCache\ODMListener' => 'Organizations\Factory\ImageFileCache\ODMListenerFactory', |
|
| 206 | - 'Organizations\ImageFileCache\ApplicationListener' => 'Organizations\Factory\ImageFileCache\ApplicationListenerFactory', |
|
| 203 | + 'Organizations\Auth\Dependency\ListListener' => 'Organizations\Factory\Auth\Dependency\ListListenerFactory', |
|
| 204 | + 'Organizations\ImageFileCache\Manager' => 'Organizations\Factory\ImageFileCache\ManagerFactory', |
|
| 205 | + 'Organizations\ImageFileCache\ODMListener' => 'Organizations\Factory\ImageFileCache\ODMListenerFactory', |
|
| 206 | + 'Organizations\ImageFileCache\ApplicationListener' => 'Organizations\Factory\ImageFileCache\ApplicationListenerFactory', |
|
| 207 | 207 | ], |
| 208 | 208 | ], |
| 209 | 209 | |