@@ -139,12 +139,12 @@ discard block |
||
139 | 139 | $jobEntity = $this->initializeJob()->get($this->params()); |
140 | 140 | |
141 | 141 | $model = new ViewModel([ |
142 | - 'portals' => $jobEntity->getPortals(), |
|
143 | - 'channels' => $channels, |
|
144 | - 'defaultCurrencyCode' => $options->defaultCurrencyCode, |
|
145 | - 'defaultTaxRate' => $options->defaultTaxRate, |
|
146 | - 'jobId' => $jobEntity->getId() |
|
147 | - ]); |
|
142 | + 'portals' => $jobEntity->getPortals(), |
|
143 | + 'channels' => $channels, |
|
144 | + 'defaultCurrencyCode' => $options->defaultCurrencyCode, |
|
145 | + 'defaultTaxRate' => $options->defaultTaxRate, |
|
146 | + 'jobId' => $jobEntity->getId() |
|
147 | + ]); |
|
148 | 148 | $model->setTemplate('jobs/partials/channel-list')->setTerminal(true); |
149 | 149 | return $model; |
150 | 150 | } |
@@ -440,9 +440,9 @@ discard block |
||
440 | 440 | // we want just some Values to be compared |
441 | 441 | $diff = null; |
442 | 442 | foreach (array('title', 'organization', 'location', |
443 | - 'templateValues.qualifications', 'templateValues.requirements', 'templateValues.benefits', 'templateValues.title', |
|
444 | - 'templateValues._freeValues.description', |
|
445 | - ) as $prelKey) { |
|
443 | + 'templateValues.qualifications', 'templateValues.requirements', 'templateValues.benefits', 'templateValues.title', |
|
444 | + 'templateValues._freeValues.description', |
|
445 | + ) as $prelKey) { |
|
446 | 446 | if (array_key_exists($prelKey, $prelDiff)) { |
447 | 447 | $diff[$prelKey] = $prelDiff[$prelKey]; |
448 | 448 | } |
@@ -471,28 +471,28 @@ discard block |
||
471 | 471 | 'lang/jobs/view', |
472 | 472 | array(), |
473 | 473 | array('query' => |
474 | - array( 'id' => $jobEntity->getId())) |
|
474 | + array( 'id' => $jobEntity->getId())) |
|
475 | 475 | ); |
476 | 476 | |
477 | 477 | $approvalLink = $this->url()->fromRoute( |
478 | 478 | 'lang/jobs/approval', |
479 | 479 | array('state' => 'approved'), |
480 | 480 | array('query' => |
481 | - array( 'id' => $jobEntity->getId())) |
|
481 | + array( 'id' => $jobEntity->getId())) |
|
482 | 482 | ); |
483 | 483 | |
484 | 484 | $declineLink = $this->url()->fromRoute( |
485 | 485 | 'lang/jobs/approval', |
486 | 486 | array('state' => 'declined'), |
487 | 487 | array('query' => |
488 | - array( 'id' => $jobEntity->getId())) |
|
488 | + array( 'id' => $jobEntity->getId())) |
|
489 | 489 | ); |
490 | 490 | |
491 | 491 | return array('job' => $jobEntity, |
492 | - 'diffSnapshot' => $diff, |
|
493 | - 'viewLink' => $viewLink, |
|
494 | - 'approvalLink' => $approvalLink, |
|
495 | - 'declineLink' => $declineLink); |
|
492 | + 'diffSnapshot' => $diff, |
|
493 | + 'viewLink' => $viewLink, |
|
494 | + 'approvalLink' => $approvalLink, |
|
495 | + 'declineLink' => $declineLink); |
|
496 | 496 | } |
497 | 497 | |
498 | 498 | /** |
@@ -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 |
@@ -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( |