@@ -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()); |
@@ -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 | } |
@@ -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 | /** |
@@ -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 |