@@ -24,19 +24,19 @@ |
||
24 | 24 | public function init() |
25 | 25 | { |
26 | 26 | $this->add( |
27 | - array( |
|
28 | - 'type' => 'Core/Spinner-Submit', |
|
29 | - 'name' => 'calculate', |
|
30 | - 'options' => array( |
|
31 | - 'label' => /*@translate*/ 'Calculate price', |
|
32 | - ), |
|
33 | - 'attributes' => array( |
|
34 | - 'id' => 'calculate', |
|
35 | - 'type' => 'button', |
|
36 | - 'value' => 'calculate', |
|
37 | - 'class' => 'mps-calculate btn btn-success btn-xs' |
|
38 | - ), |
|
39 | - ) |
|
27 | + array( |
|
28 | + 'type' => 'Core/Spinner-Submit', |
|
29 | + 'name' => 'calculate', |
|
30 | + 'options' => array( |
|
31 | + 'label' => /*@translate*/ 'Calculate price', |
|
32 | + ), |
|
33 | + 'attributes' => array( |
|
34 | + 'id' => 'calculate', |
|
35 | + 'type' => 'button', |
|
36 | + 'value' => 'calculate', |
|
37 | + 'class' => 'mps-calculate btn btn-success btn-xs' |
|
38 | + ), |
|
39 | + ) |
|
40 | 40 | ); |
41 | 41 | |
42 | 42 | parent::init(); |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | 'route/lang/my-password' |
204 | 204 | ), |
205 | 205 | 'deny' => array( |
206 | - // 'route/lang/auth', |
|
206 | + // 'route/lang/auth', |
|
207 | 207 | 'route/auth-provider', |
208 | 208 | 'route/auth-extern', |
209 | 209 | 'route/lang/forgot-password', |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | 'factories' => array( |
280 | 280 | 'auth' => '\Auth\Factory\View\Helper\AuthFactory', |
281 | 281 | 'acl' => '\Acl\Factory\View\Helper\AclFactory', |
282 | - ), |
|
282 | + ), |
|
283 | 283 | ), |
284 | 284 | |
285 | 285 | 'form_elements' => array( |
@@ -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 | } |