@@ -27,10 +27,10 @@ discard block |
||
| 27 | 27 | { |
| 28 | 28 | $qb = $this->createQueryBuilder(); |
| 29 | 29 | $qb->hydrate(true) |
| 30 | - ->select('entity') |
|
| 31 | - ->field('sourceId')->equals($jobEntity->id) |
|
| 32 | - ->sort('dateCreated', 'desc') |
|
| 33 | - ->limit(1); |
|
| 30 | + ->select('entity') |
|
| 31 | + ->field('sourceId')->equals($jobEntity->id) |
|
| 32 | + ->sort('dateCreated', 'desc') |
|
| 33 | + ->limit(1); |
|
| 34 | 34 | |
| 35 | 35 | $result = $qb->getQuery()->execute(); |
| 36 | 36 | if ($result->count() == 0) { |
@@ -53,9 +53,9 @@ discard block |
||
| 53 | 53 | // So we need to create a cursor, that skips the first Document |
| 54 | 54 | $qb = $this->createQueryBuilder(); |
| 55 | 55 | $qb->hydrate(false) |
| 56 | - ->select('entity') |
|
| 57 | - ->field('sourceId')->equals($jobEntity->id) |
|
| 58 | - ->sort('dateCreated', 'desc'); |
|
| 56 | + ->select('entity') |
|
| 57 | + ->field('sourceId')->equals($jobEntity->id) |
|
| 58 | + ->sort('dateCreated', 'desc'); |
|
| 59 | 59 | $result = $qb->getQuery()->execute()->skip(1); |
| 60 | 60 | foreach ($result as $item) { |
| 61 | 61 | $id = $item['_id']; |
@@ -102,7 +102,7 @@ |
||
| 102 | 102 | $fieldset->setLabel(ucfirst($label)); |
| 103 | 103 | } |
| 104 | 104 | $fieldset->setName($name) |
| 105 | - ->setObject($child); |
|
| 105 | + ->setObject($child); |
|
| 106 | 106 | |
| 107 | 107 | |
| 108 | 108 | $this->add($fieldset); |
@@ -26,11 +26,11 @@ |
||
| 26 | 26 | // 'driver' => 'odm_default', |
| 27 | 27 | // |
| 28 | 28 | // 'generate_proxies' => true, |
| 29 | - 'proxy_dir' => 'cache/DoctrineMongoODMModule/Proxy', |
|
| 29 | + 'proxy_dir' => 'cache/DoctrineMongoODMModule/Proxy', |
|
| 30 | 30 | // 'proxy_namespace' => 'DoctrineMongoODMModule\Proxy', |
| 31 | 31 | // |
| 32 | 32 | // 'generate_hydrators' => true, |
| 33 | - 'hydrator_dir' => 'cache/DoctrineMongoODMModule/Hydrator', |
|
| 33 | + 'hydrator_dir' => 'cache/DoctrineMongoODMModule/Hydrator', |
|
| 34 | 34 | // 'hydrator_namespace' => 'DoctrineMongoODMModule\Hydrator', |
| 35 | 35 | // |
| 36 | 36 | // 'default_db' => '', |
@@ -131,7 +131,7 @@ |
||
| 131 | 131 | { |
| 132 | 132 | $viewModel = new ViewModel(); |
| 133 | 133 | $viewModel->setTemplate('error/index') |
| 134 | - ->setVariable('message', 'An unexpected error had occured. Please try again later.'); |
|
| 134 | + ->setVariable('message', 'An unexpected error had occured. Please try again later.'); |
|
| 135 | 135 | return $viewModel; |
| 136 | 136 | } |
| 137 | 137 | } |
@@ -128,10 +128,10 @@ discard block |
||
| 128 | 128 | // ) |
| 129 | 129 | // ); |
| 130 | 130 | $qb->addAnd($qb->expr()->field('user')->equals($userId)) |
| 131 | - ->addAnd( |
|
| 132 | - $qb->expr()->addOr($qb->expr()->field('parent')->exists(false)) |
|
| 133 | - ->addOr($qb->expr()->field('parent')->equals(null)) |
|
| 134 | - ); |
|
| 131 | + ->addAnd( |
|
| 132 | + $qb->expr()->addOr($qb->expr()->field('parent')->exists(false)) |
|
| 133 | + ->addOr($qb->expr()->field('parent')->equals(null)) |
|
| 134 | + ); |
|
| 135 | 135 | |
| 136 | 136 | $q = $qb->getQuery(); |
| 137 | 137 | $entity = $q->getSingleResult(); |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | if ($userOrg->hasAssociation()) { |
| 253 | 253 | $qb->addAnd( |
| 254 | 254 | $qb->expr()->addOr($qb->expr()->field('parent')->equals($userOrg->getId())) |
| 255 | - ->addOr($qb->expr()->field('_id')->equals($userOrg->getId())) |
|
| 255 | + ->addOr($qb->expr()->field('_id')->equals($userOrg->getId())) |
|
| 256 | 256 | ); |
| 257 | 257 | } |
| 258 | 258 | |
@@ -380,10 +380,10 @@ |
||
| 380 | 380 | return $this; |
| 381 | 381 | } |
| 382 | 382 | |
| 383 | - /** |
|
| 384 | - * (non-PHPdoc) |
|
| 385 | - * @see \Jobs\Entity\JobInterface::getOrganization() |
|
| 386 | - */ |
|
| 383 | + /** |
|
| 384 | + * (non-PHPdoc) |
|
| 385 | + * @see \Jobs\Entity\JobInterface::getOrganization() |
|
| 386 | + */ |
|
| 387 | 387 | public function getOrganization() |
| 388 | 388 | { |
| 389 | 389 | return $this->organization; |
@@ -99,8 +99,8 @@ discard block |
||
| 99 | 99 | $result = $this->forward()->dispatch('Auth\Controller\Password', array('action' => 'index')); |
| 100 | 100 | $model = new ViewModel( |
| 101 | 101 | array( |
| 102 | - 'organization' => $organization->getOrganizationName()->getName() |
|
| 103 | - ) |
|
| 102 | + 'organization' => $organization->getOrganizationName()->getName() |
|
| 103 | + ) |
|
| 104 | 104 | ); |
| 105 | 105 | |
| 106 | 106 | if (!$result->getVariable('valid', false)) { |
@@ -141,8 +141,8 @@ discard block |
||
| 141 | 141 | |
| 142 | 142 | return new ViewModel( |
| 143 | 143 | array( |
| 144 | - 'organization' => $organization->getOrganizationName()->getName() |
|
| 145 | - ) |
|
| 144 | + 'organization' => $organization->getOrganizationName()->getName() |
|
| 145 | + ) |
|
| 146 | 146 | ); |
| 147 | 147 | } |
| 148 | 148 | |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | 'odm_default' => array( |
| 27 | 27 | 'subscribers' => array( |
| 28 | 28 | 'Settings/InjectEntityResolverListener', |
| 29 | - ), |
|
| 29 | + ), |
|
| 30 | 30 | ), |
| 31 | 31 | ), |
| 32 | 32 | ), |
@@ -60,9 +60,9 @@ |
||
| 60 | 60 | protected function addButtonsFieldset() |
| 61 | 61 | { |
| 62 | 62 | $this->add( |
| 63 | - array( |
|
| 64 | - 'type' => 'Jobs/MultipostButtonFieldset' |
|
| 65 | - ) |
|
| 63 | + array( |
|
| 64 | + 'type' => 'Jobs/MultipostButtonFieldset' |
|
| 65 | + ) |
|
| 66 | 66 | ); |
| 67 | 67 | } |
| 68 | 68 | } |