@@ -62,7 +62,7 @@ |
||
62 | 62 | $this->priceFilter = $priceFilter; |
63 | 63 | $this->options = $options; |
64 | 64 | $this->providerOptions = $providerOptions; |
65 | - $this->orderRepository = $orderRepository; |
|
65 | + $this->orderRepository = $orderRepository; |
|
66 | 66 | $this->draftRepository = $draftRepository; |
67 | 67 | } |
68 | 68 |
@@ -53,8 +53,8 @@ discard block |
||
53 | 53 | { |
54 | 54 | parent::setParam($key, $value); |
55 | 55 | |
56 | - $events = $this->getEventManager(); |
|
57 | - $events->trigger(FormEvent::EVENT_SET_PARAM, $this, [ 'param_name' => $key, 'param_value' => $value ]); |
|
56 | + $events = $this->getEventManager(); |
|
57 | + $events->trigger(FormEvent::EVENT_SET_PARAM, $this, ['param_name' => $key, 'param_value' => $value]); |
|
58 | 58 | |
59 | 59 | return $this; |
60 | 60 | } |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | $valid = parent::isValid(); |
66 | 66 | |
67 | 67 | $events = $this->getEventManager(); |
68 | - $events->trigger(FormEvent::EVENT_VALIDATE, $this, [ 'isValid' => $valid ]); |
|
68 | + $events->trigger(FormEvent::EVENT_VALIDATE, $this, ['isValid' => $valid]); |
|
69 | 69 | |
70 | 70 | return $valid; |
71 | 71 | } |
@@ -35,7 +35,7 @@ |
||
35 | 35 | /* @var \Orders\Form\InvoiceAddress $invoiceAddress */ |
36 | 36 | $invoiceAddress = $event->getForm()->getForm('invoice.invoiceAddress'); |
37 | 37 | $invoiceAddress->setDisplayMode(SummaryFormInterface::DISPLAY_SUMMARY); |
38 | - foreach($invoiceAddress->getBaseFieldset() as $element) { |
|
38 | + foreach ($invoiceAddress->getBaseFieldset() as $element) { |
|
39 | 39 | $element->setAttribute('disabled', true); |
40 | 40 | } |
41 | 41 | } |
@@ -27,7 +27,7 @@ |
||
27 | 27 | * |
28 | 28 | * @param ServiceLocatorInterface $serviceLocator |
29 | 29 | * |
30 | - * @return mixed |
|
30 | + * @return EventApplicationCreated |
|
31 | 31 | */ |
32 | 32 | public function createService(ServiceLocatorInterface $serviceLocator) |
33 | 33 | { |
@@ -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( |
@@ -20,7 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | |
22 | 22 | protected $sortPropertiesMap = [ |
23 | - 'name' => [ 'info.lastName', 'info.firstName', 'info.email' ], |
|
23 | + 'name' => ['info.lastName', 'info.firstName', 'info.email'], |
|
24 | 24 | ]; |
25 | 25 | |
26 | 26 | /** |
@@ -34,7 +34,7 @@ |
||
34 | 34 | $this->models = new PriorityList(); |
35 | 35 | } |
36 | 36 | |
37 | - public function addViewModel($name, $model, $priority=0) |
|
37 | + public function addViewModel($name, $model, $priority = 0) |
|
38 | 38 | { |
39 | 39 | $this->models->insert($name, $model, $priority); |
40 | 40 |
@@ -11,7 +11,7 @@ |
||
11 | 11 | |
12 | 12 | // Routes |
13 | 13 | return array('router' => array('routes' => array('lang' => array('child_routes' => array( |
14 | - 'admin' => [ 'child_routes' => [ |
|
14 | + 'admin' => ['child_routes' => [ |
|
15 | 15 | 'jobs' => [ |
16 | 16 | 'type' => 'Segment', |
17 | 17 | 'options' => [ |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | if (true === $this->getOption('include_all_option')) { |
37 | 37 | $valueOptions = array_merge([ |
38 | 38 | 'all' => /*@translate*/ 'All', |
39 | - ], $valueOptions ); |
|
39 | + ], $valueOptions); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | $this->setValueOptions($valueOptions); |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | $options = parent::getValueOptions(); |
83 | 83 | |
84 | 84 | return true === $this->getOption('include_all_option') |
85 | - ? array_merge([ 'all' => /*@translate*/ 'All' ], $options) |
|
85 | + ? array_merge(['all' => /*@translate*/ 'All'], $options) |
|
86 | 86 | : $options; |
87 | 87 | } |
88 | 88 |
@@ -36,7 +36,7 @@ |
||
36 | 36 | if (true === $this->getOption('include_all_option')) { |
37 | 37 | $valueOptions = array_merge([ |
38 | 38 | 'all' => /*@translate*/ 'All', |
39 | - ], $valueOptions ); |
|
39 | + ], $valueOptions ); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | $this->setValueOptions($valueOptions); |