@@ -15,7 +15,6 @@ |
||
15 | 15 | |
16 | 16 | /** |
17 | 17 | * |
18 | - |
|
19 | 18 | */ |
20 | 19 | interface FileInterface extends |
21 | 20 | IdentifiableEntityInterface, |
@@ -34,7 +34,7 @@ |
||
34 | 34 | public function init() |
35 | 35 | { |
36 | 36 | $this->setHydrator(new \Core\Entity\Hydrator\EntityHydrator()) |
37 | - ->setName('base'); |
|
37 | + ->setName('base'); |
|
38 | 38 | |
39 | 39 | $this->add( |
40 | 40 | array( |
@@ -39,7 +39,7 @@ |
||
39 | 39 | || array_key_exists('user', $config['acl']['roles']) |
40 | 40 | ? array(User::ROLE_USER) |
41 | 41 | : array('none') |
42 | - ); |
|
42 | + ); |
|
43 | 43 | |
44 | 44 | $valueOptions = array(); |
45 | 45 | foreach ($publicRoles as $role) { |
@@ -60,4 +60,4 @@ |
||
60 | 60 | ], |
61 | 61 | ], |
62 | 62 | ]; |
63 | - |
|
64 | 63 | \ No newline at end of file |
64 | + |
|
65 | 65 | \ No newline at end of file |
@@ -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 | } |