@@ -121,7 +121,7 @@ |
||
121 | 121 | 'attributes' => [ |
122 | 122 | 'data-placeholder' => /*@translate*/ 'please select', |
123 | 123 | 'data-allowclear' => 'false', |
124 | - 'data-searchbox' => -1, // hide the search box |
|
124 | + 'data-searchbox' => -1, // hide the search box |
|
125 | 125 | 'required' => true, // mark label as required |
126 | 126 | ], |
127 | 127 | ) |
@@ -27,70 +27,70 @@ discard block |
||
27 | 27 | $this->setName('invoiceAddress'); |
28 | 28 | |
29 | 29 | $this->add([ |
30 | - 'type' => 'text', |
|
31 | - 'name' => 'company', |
|
32 | - 'options' => [ |
|
33 | - 'label' => /*@translate*/ 'Company', |
|
34 | - 'description' => /*@translate*/ 'Please enter the name of the company, which should appear on the invoice address', |
|
35 | - ], |
|
36 | - 'attributes' => [ |
|
37 | - 'required' => true, // marks the label as required. |
|
38 | - ] |
|
39 | - ] |
|
30 | + 'type' => 'text', |
|
31 | + 'name' => 'company', |
|
32 | + 'options' => [ |
|
33 | + 'label' => /*@translate*/ 'Company', |
|
34 | + 'description' => /*@translate*/ 'Please enter the name of the company, which should appear on the invoice address', |
|
35 | + ], |
|
36 | + 'attributes' => [ |
|
37 | + 'required' => true, // marks the label as required. |
|
38 | + ] |
|
39 | + ] |
|
40 | 40 | ); |
41 | 41 | |
42 | 42 | $this->add([ |
43 | - 'type' => 'text', |
|
44 | - 'name' => 'street', |
|
45 | - 'options' => [ |
|
46 | - 'label' => /*@translate*/ 'Street', |
|
47 | - ], |
|
48 | - ] |
|
43 | + 'type' => 'text', |
|
44 | + 'name' => 'street', |
|
45 | + 'options' => [ |
|
46 | + 'label' => /*@translate*/ 'Street', |
|
47 | + ], |
|
48 | + ] |
|
49 | 49 | ); |
50 | 50 | |
51 | 51 | $this->add([ |
52 | - 'type' => 'text', |
|
53 | - 'name' => 'zipCode', |
|
54 | - 'options' => [ |
|
55 | - 'label' => /* @translate */ 'Postalcode' |
|
56 | - ], |
|
57 | - ] |
|
52 | + 'type' => 'text', |
|
53 | + 'name' => 'zipCode', |
|
54 | + 'options' => [ |
|
55 | + 'label' => /* @translate */ 'Postalcode' |
|
56 | + ], |
|
57 | + ] |
|
58 | 58 | ); |
59 | 59 | |
60 | 60 | $this->add([ |
61 | - 'type' => 'text', |
|
62 | - 'name' => 'city', |
|
63 | - 'options' => [ |
|
64 | - 'label' => /*@translate*/ 'City', |
|
65 | - ], |
|
66 | - ] |
|
61 | + 'type' => 'text', |
|
62 | + 'name' => 'city', |
|
63 | + 'options' => [ |
|
64 | + 'label' => /*@translate*/ 'City', |
|
65 | + ], |
|
66 | + ] |
|
67 | 67 | ); |
68 | 68 | |
69 | 69 | $this->add([ |
70 | - 'type' => 'text', |
|
71 | - 'name' => 'region', |
|
72 | - 'options' => [ |
|
73 | - 'label' => /*@translate*/ 'Region', |
|
74 | - ], |
|
75 | - ] |
|
70 | + 'type' => 'text', |
|
71 | + 'name' => 'region', |
|
72 | + 'options' => [ |
|
73 | + 'label' => /*@translate*/ 'Region', |
|
74 | + ], |
|
75 | + ] |
|
76 | 76 | ); |
77 | 77 | |
78 | 78 | $this->add([ |
79 | - 'type' => 'text', |
|
80 | - 'name' => 'country', |
|
81 | - 'options' => [ |
|
82 | - 'label' => /*@translate*/ 'Country', |
|
83 | - ], |
|
84 | - ] |
|
79 | + 'type' => 'text', |
|
80 | + 'name' => 'country', |
|
81 | + 'options' => [ |
|
82 | + 'label' => /*@translate*/ 'Country', |
|
83 | + ], |
|
84 | + ] |
|
85 | 85 | ); |
86 | 86 | |
87 | 87 | $this->add([ |
88 | - 'type' => 'text', |
|
89 | - 'name' => 'vatIdNumber', |
|
90 | - 'options' => [ |
|
91 | - 'label' => /*@translate*/ 'Value added tax ID', |
|
92 | - ], |
|
93 | - ] |
|
88 | + 'type' => 'text', |
|
89 | + 'name' => 'vatIdNumber', |
|
90 | + 'options' => [ |
|
91 | + 'label' => /*@translate*/ 'Value added tax ID', |
|
92 | + ], |
|
93 | + ] |
|
94 | 94 | ); |
95 | 95 | $this->add( |
96 | 96 | array( |
@@ -114,25 +114,25 @@ discard block |
||
114 | 114 | ); |
115 | 115 | |
116 | 116 | $this->add([ |
117 | - 'type' => 'text', |
|
118 | - 'name' => 'name', |
|
119 | - 'options' => [ |
|
120 | - 'label' => /*@translate*/ 'Contact Person', |
|
121 | - 'description' => /*@translate*/ 'Please enter the name of a contact person', |
|
122 | - ], |
|
123 | - ] |
|
117 | + 'type' => 'text', |
|
118 | + 'name' => 'name', |
|
119 | + 'options' => [ |
|
120 | + 'label' => /*@translate*/ 'Contact Person', |
|
121 | + 'description' => /*@translate*/ 'Please enter the name of a contact person', |
|
122 | + ], |
|
123 | + ] |
|
124 | 124 | ); |
125 | 125 | |
126 | 126 | $this->add([ |
127 | - 'type' => 'text', |
|
128 | - 'name' => 'email', |
|
129 | - 'options' => [ |
|
130 | - 'label' => /*@translate*/ 'Email Address', |
|
131 | - ], |
|
132 | - 'attributes' => [ |
|
133 | - 'required' => true, // marks the label as required. |
|
134 | - ] |
|
135 | - ] |
|
127 | + 'type' => 'text', |
|
128 | + 'name' => 'email', |
|
129 | + 'options' => [ |
|
130 | + 'label' => /*@translate*/ 'Email Address', |
|
131 | + ], |
|
132 | + 'attributes' => [ |
|
133 | + 'required' => true, // marks the label as required. |
|
134 | + ] |
|
135 | + ] |
|
136 | 136 | ); |
137 | 137 | } |
138 | 138 |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | $elements = [ |
60 | 60 | 'general' => [ |
61 | 61 | 'priority' => 0, |
62 | - 'options' => [ 'label' => 'Basic Data' ], |
|
62 | + 'options' => ['label' => 'Basic Data'], |
|
63 | 63 | 'property' => true, |
64 | 64 | 'forms' => [ |
65 | 65 | |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | |
96 | 96 | 'description' => [ |
97 | 97 | 'priority' => '0', |
98 | - 'options' => [ 'label' => 'Job opening' ], |
|
98 | + 'options' => ['label' => 'Job opening'], |
|
99 | 99 | 'property' => true, |
100 | 100 | 'forms' => [ |
101 | 101 | 'descriptionForm' => array( |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | |
108 | 108 | 'preview' => [ |
109 | 109 | 'priority' => 0, |
110 | - 'options' => [ 'label' => 'Preview' ], |
|
110 | + 'options' => ['label' => 'Preview'], |
|
111 | 111 | 'property' => true, |
112 | 112 | 'forms' => [ |
113 | 113 | 'previewForm' => array( |
@@ -120,13 +120,13 @@ discard block |
||
120 | 120 | |
121 | 121 | $this->setForms($elements); |
122 | 122 | |
123 | - $events = $this->getEventManager(); |
|
123 | + $events = $this->getEventManager(); |
|
124 | 124 | $events->trigger(FormEvent::EVENT_INIT, $this); |
125 | 125 | } |
126 | 126 | |
127 | 127 | public function renderPost(Renderer $renderer) |
128 | 128 | { |
129 | - $coreformsjs = $renderer->basepath('/Core/js/core.forms.js'); |
|
129 | + $coreformsjs = $renderer->basepath('/Core/js/core.forms.js'); |
|
130 | 130 | $javaScript = <<<JS |
131 | 131 | $(document).ready(function() { |
132 | 132 |
@@ -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 |
@@ -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( |