@@ -15,7 +15,7 @@ |
||
| 15 | 15 | /** |
| 16 | 16 | * |
| 17 | 17 | * @ODM\MappedSuperclass |
| 18 | - */ |
|
| 18 | + */ |
|
| 19 | 19 | abstract class AbstractIdentifiableEntity extends AbstractEntity implements IdentifiableEntityInterface |
| 20 | 20 | { |
| 21 | 21 | |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | public function trigger($event, $target = null) |
| 43 | 43 | { |
| 44 | 44 | if (empty($this->_template) || !is_string($this->_template)) { |
| 45 | - throw new \InvalidArgumentException('ContentCollector must have a template-name'); |
|
| 45 | + throw new \InvalidArgumentException('ContentCollector must have a template-name'); |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | $responseCollection = $this->getController()->getEventManager()->trigger($event, $target); |
@@ -50,9 +50,9 @@ discard block |
||
| 50 | 50 | $viewModel->setTemplate($this->_template); |
| 51 | 51 | foreach ($responseCollection as $i => $response) { |
| 52 | 52 | if (is_string($response)) { |
| 53 | - $template = $response; |
|
| 54 | - $response = new ViewModel(array('target' => $target)); |
|
| 55 | - $response->setTemplate($template); |
|
| 53 | + $template = $response; |
|
| 54 | + $response = new ViewModel(array('target' => $target)); |
|
| 55 | + $response->setTemplate($template); |
|
| 56 | 56 | } |
| 57 | 57 | $viewModel->addChild($response, $this->_captureTo . $i); |
| 58 | 58 | } |
@@ -39,12 +39,12 @@ |
||
| 39 | 39 | $viewLink = $controllerPluginManager->get('url')->fromRoute( |
| 40 | 40 | 'lang/jobs/view', |
| 41 | 41 | array( |
| 42 | - ), |
|
| 42 | + ), |
|
| 43 | 43 | array( |
| 44 | - 'query' => array( |
|
| 45 | - 'id' => $data['id'], |
|
| 46 | - ) |
|
| 47 | - ) |
|
| 44 | + 'query' => array( |
|
| 45 | + 'id' => $data['id'], |
|
| 46 | + ) |
|
| 47 | + ) |
|
| 48 | 48 | ); |
| 49 | 49 | |
| 50 | 50 | $data['previewLink'] = $viewLink; |
@@ -51,16 +51,16 @@ |
||
| 51 | 51 | $r=[]; |
| 52 | 52 | foreach ($result as $key => $val) { |
| 53 | 53 | $row=['name' => (property_exists($val->properties, 'name') ? $val->properties->name:''), |
| 54 | - 'postcode' => (property_exists($val->properties, 'postcode') ? $val->properties->postcode:''), |
|
| 55 | - 'city' =>(property_exists($val->properties, 'city') ? $val->properties->city:''), |
|
| 56 | - 'street' => (property_exists($val->properties, 'street') ? $val->properties->street : ''), |
|
| 57 | - 'state' => (property_exists($val->properties, 'state') ? $val->properties->state : ''), |
|
| 58 | - 'country' => (property_exists($val->properties, 'country') ? $val->properties->country : ''), |
|
| 59 | - 'coordinates' => implode(":", $val->geometry->coordinates), |
|
| 60 | - 'osm_key' => (property_exists($val->properties, 'osm_key') ? $val->properties->osm_key : ''), |
|
| 61 | - 'osm_value' => (property_exists($val->properties, 'osm_value') ? $val->properties->osm_value : ''), |
|
| 62 | - 'osm_id' => (property_exists($val->properties, 'osm_id') ? $val->properties->osm_id : ''), |
|
| 63 | - 'data' => json_encode($val), |
|
| 54 | + 'postcode' => (property_exists($val->properties, 'postcode') ? $val->properties->postcode:''), |
|
| 55 | + 'city' =>(property_exists($val->properties, 'city') ? $val->properties->city:''), |
|
| 56 | + 'street' => (property_exists($val->properties, 'street') ? $val->properties->street : ''), |
|
| 57 | + 'state' => (property_exists($val->properties, 'state') ? $val->properties->state : ''), |
|
| 58 | + 'country' => (property_exists($val->properties, 'country') ? $val->properties->country : ''), |
|
| 59 | + 'coordinates' => implode(":", $val->geometry->coordinates), |
|
| 60 | + 'osm_key' => (property_exists($val->properties, 'osm_key') ? $val->properties->osm_key : ''), |
|
| 61 | + 'osm_value' => (property_exists($val->properties, 'osm_value') ? $val->properties->osm_value : ''), |
|
| 62 | + 'osm_id' => (property_exists($val->properties, 'osm_id') ? $val->properties->osm_id : ''), |
|
| 63 | + 'data' => json_encode($val), |
|
| 64 | 64 | ]; |
| 65 | 65 | $r[]=$row; |
| 66 | 66 | } |
@@ -118,11 +118,11 @@ |
||
| 118 | 118 | { |
| 119 | 119 | $services = $this->getServiceLocator()->getServiceLocator(); |
| 120 | 120 | |
| 121 | - /* |
|
| 121 | + /* |
|
| 122 | 122 | * "ViewHelperManager" defined by ZF2 |
| 123 | 123 | * see http://framework.zend.com/manual/2.0/en/modules/zend.mvc.services.html#viewmanager |
| 124 | 124 | */ |
| 125 | - $viewManager = $services->get('ViewHelperManager'); |
|
| 125 | + $viewManager = $services->get('ViewHelperManager'); |
|
| 126 | 126 | |
| 127 | 127 | return $viewManager->get("partial")->__invoke('applications/mail/forward', array("application"=>$this->application)); |
| 128 | 128 | } |
@@ -28,9 +28,9 @@ discard block |
||
| 28 | 28 | public function init() |
| 29 | 29 | { |
| 30 | 30 | $this->setName('data') |
| 31 | - ->setLabel('Group data') |
|
| 32 | - ->setUseAsBaseFieldset(true) |
|
| 33 | - ->setHydrator(new EntityHydrator()); |
|
| 31 | + ->setLabel('Group data') |
|
| 32 | + ->setUseAsBaseFieldset(true) |
|
| 33 | + ->setHydrator(new EntityHydrator()); |
|
| 34 | 34 | |
| 35 | 35 | $this->add( |
| 36 | 36 | array( |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | 'required' => true, |
| 70 | 70 | 'validators' => array( |
| 71 | 71 | array('name' => 'Auth/Form/UniqueGroupName', |
| 72 | - 'options' => array( |
|
| 72 | + 'options' => array( |
|
| 73 | 73 | 'allowName' => 'edit' == $this->getOption('mode') |
| 74 | 74 | ? $this->getObject()->getName() |
| 75 | 75 | : null |
@@ -98,9 +98,9 @@ discard block |
||
| 98 | 98 | { |
| 99 | 99 | $qb = $this->getPaginationQueryBuilder($params); |
| 100 | 100 | $cursor = $qb->hydrate(false) |
| 101 | - ->select('_id') |
|
| 102 | - ->getQuery() |
|
| 103 | - ->execute(); |
|
| 101 | + ->select('_id') |
|
| 102 | + ->getQuery() |
|
| 103 | + ->execute(); |
|
| 104 | 104 | |
| 105 | 105 | $list = new PaginationList(array_keys(ArrayUtils::iteratorToArray($cursor))); |
| 106 | 106 | return $list; |
@@ -129,8 +129,8 @@ discard block |
||
| 129 | 129 | { |
| 130 | 130 | $auth=$this->getService('AuthenticationService'); |
| 131 | 131 | $qb=$this->createQueryBuilder() |
| 132 | - ->field("readBy")->notIn(array($auth->getUser()->id)) |
|
| 133 | - ->field("job")->equals(new \MongoId($job->id)); |
|
| 132 | + ->field("readBy")->notIn(array($auth->getUser()->id)) |
|
| 133 | + ->field("job")->equals(new \MongoId($job->id)); |
|
| 134 | 134 | return $qb->getQuery()->execute(); |
| 135 | 135 | } |
| 136 | 136 | |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | |
| 80 | 80 | protected $workflow = [ |
| 81 | 81 | |
| 82 | - 'recruiter', |
|
| 82 | + 'recruiter', |
|
| 83 | 83 | ]; |
| 84 | 84 | |
| 85 | 85 | /** |
@@ -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( |