@@ -22,6 +22,7 @@ |
||
| 22 | 22 | /** |
| 23 | 23 | * @param AttachableEntityManager $attachableEntityManager |
| 24 | 24 | * @throws \LogicException If attachable entity manager is already set |
| 25 | + * @return AttachableEntityTrait |
|
| 25 | 26 | */ |
| 26 | 27 | public function setAttachableEntityManager(AttachableEntityManager $attachableEntityManager); |
| 27 | 28 | |
@@ -80,13 +80,13 @@ |
||
| 80 | 80 | $request = $this->getRequest(); |
| 81 | 81 | $getParams = $request->getQuery(); |
| 82 | 82 | $routeParams = $this->params()->fromRoute(); |
| 83 | - if (isset($routeParams['q']) && !isset($getParams['q'])){ |
|
| 84 | - $getParams['q']=$routeParams['q']; |
|
| 83 | + if (isset($routeParams['q']) && !isset($getParams['q'])) { |
|
| 84 | + $getParams['q'] = $routeParams['q']; |
|
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | $job = $this->serviceLocator->get('repositories')->get('Jobs')->find('561b86e3d3b93f356d732bcf'); |
| 88 | 88 | $events = $this->serviceLocator->get('Jobs/Events'); |
| 89 | - $jobEvent = $this->serviceLocator->get('Jobs/Event'); |
|
| 89 | + $jobEvent = $this->serviceLocator->get('Jobs/Event'); |
|
| 90 | 90 | $jobEvent->setJobEntity($job); |
| 91 | 91 | $jobEvent->addPortal('stackoverflow'); |
| 92 | 92 | |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | /** |
| 79 | 79 | * @see AttachableEntityInterface::createAttachedEntity() |
| 80 | 80 | */ |
| 81 | - public function createAttachedEntity($entityClass, $values = [], $key=null) |
|
| 81 | + public function createAttachedEntity($entityClass, $values = [], $key = null) |
|
| 82 | 82 | { |
| 83 | 83 | return $this->getAttachableEntityManager()->createAttachedEntity($entityClass, $values, $key); |
| 84 | 84 | } |