@@ -42,7 +42,7 @@ |
||
42 | 42 | { |
43 | 43 | $object = parent::hydrate($data, $object); |
44 | 44 | /* @var \Organizations\Entity\Template $template */ |
45 | - $template=$object->getOrganization()->getTemplate(); |
|
45 | + $template = $object->getOrganization()->getTemplate(); |
|
46 | 46 | if (isset($data['description-label-requirements'])) { |
47 | 47 | $template->setLabelRequirements($data['description-label-requirements']); |
48 | 48 | } |
@@ -30,9 +30,9 @@ |
||
30 | 30 | $serviceLocator = $serviceLocator->getServiceLocator(); |
31 | 31 | $auth = $serviceLocator->get('AuthenticationService'); |
32 | 32 | /* @var RepositoryService $repositoryService */ |
33 | - $repositoryService = $serviceLocator->get('repositories'); |
|
33 | + $repositoryService = $serviceLocator->get('repositories'); |
|
34 | 34 | |
35 | - $translator = $serviceLocator->get('translator'); |
|
35 | + $translator = $serviceLocator->get('translator'); |
|
36 | 36 | return new ManageController($auth, $repositoryService, $translator); |
37 | 37 | } |
38 | 38 | } |
@@ -39,8 +39,8 @@ discard block |
||
39 | 39 | |
40 | 40 | public function __construct($options, $mailService, $coreOptions) |
41 | 41 | { |
42 | - $this->options=$options; |
|
43 | - $this->mailService=$mailService; |
|
42 | + $this->options = $options; |
|
43 | + $this->mailService = $mailService; |
|
44 | 44 | $this->coreOptions = $coreOptions; |
45 | 45 | } |
46 | 46 | |
@@ -51,15 +51,15 @@ discard block |
||
51 | 51 | */ |
52 | 52 | public function __invoke(AuthEvent $e) |
53 | 53 | { |
54 | - $siteName=$this->coreOptions->getSiteName(); |
|
54 | + $siteName = $this->coreOptions->getSiteName(); |
|
55 | 55 | |
56 | 56 | $user = $e->getUser(); |
57 | 57 | $userEmail = $user->info->email; |
58 | 58 | $userName = $user->info->displayName; |
59 | 59 | $resetLink = $e->getResetLink(); |
60 | 60 | |
61 | - $fromEmail = $this->options->getFromEmail(); |
|
62 | - $fromName = $this->options->getFromName(); |
|
61 | + $fromEmail = $this->options->getFromEmail(); |
|
62 | + $fromName = $this->options->getFromName(); |
|
63 | 63 | |
64 | 64 | $mail = $this->mailService->get('htmltemplate'); |
65 | 65 | $mail->user = $user; |
@@ -64,7 +64,7 @@ |
||
64 | 64 | |
65 | 65 | $this->add($fieldset); |
66 | 66 | |
67 | - $mode=$options->getMode(); |
|
67 | + $mode = $options->getMode(); |
|
68 | 68 | if (in_array($mode, [CaptchaOptions::RE_CAPTCHA, CaptchaOptions::IMAGE])) { |
69 | 69 | if ($mode == CaptchaOptions::IMAGE) { |
70 | 70 | $captcha = new Image($options->getImage()); |
@@ -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 | ) |
@@ -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 |
@@ -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 | } |