@@ -86,9 +86,9 @@ |
||
86 | 86 | */ |
87 | 87 | public function registerEvents(): void |
88 | 88 | { |
89 | - $events = \array_map(function (AbstractEvent $event) { |
|
89 | + $events = \array_map(function(AbstractEvent $event) { |
|
90 | 90 | return $event->getEventName(); |
91 | - }, \array_filter($this->getApplication()->all(), function (Command $command) { |
|
91 | + }, \array_filter($this->getApplication()->all(), function(Command $command) { |
|
92 | 92 | return $command instanceof AbstractEvent && !$command->isHidden(); |
93 | 93 | })); |
94 | 94 | Aenthill::update(null, $events); |
@@ -85,10 +85,10 @@ |
||
85 | 85 | public function toArray(): array |
86 | 86 | { |
87 | 87 | return [ |
88 | - 'PROVIDER_NAME' => $this->name, |
|
89 | - 'CERT_MANAGER' => $this->certManager ? '1' : '0', |
|
90 | - 'USE_NODE_PORT_FOR_INGRESS' => $this->useNodePortForIngress ? '1' : '0', |
|
91 | - 'INGRESS_CLASS' => $this->ingressClass, |
|
88 | + 'PROVIDER_NAME' => $this->name, |
|
89 | + 'CERT_MANAGER' => $this->certManager ? '1' : '0', |
|
90 | + 'USE_NODE_PORT_FOR_INGRESS' => $this->useNodePortForIngress ? '1' : '0', |
|
91 | + 'INGRESS_CLASS' => $this->ingressClass, |
|
92 | 92 | ]; |
93 | 93 | } |
94 | 94 |
@@ -68,7 +68,7 @@ |
||
68 | 68 | { |
69 | 69 | $context = parent::fromMetadata(); |
70 | 70 | $baseVirtualHost = Aenthill::metadata('BASE_VIRTUAL_HOST'); |
71 | - $singleEnvironment = (bool)Aenthill::metadata('IS_SINGLE_ENVIRONMENT'); |
|
71 | + $singleEnvironment = (bool) Aenthill::metadata('IS_SINGLE_ENVIRONMENT'); |
|
72 | 72 | $self = new self($context->getEnvironmentType(), $context->getEnvironmentName(), $baseVirtualHost); |
73 | 73 | $self->setSingleEnvironment($singleEnvironment); |
74 | 74 | return $self; |