Passed
Pull Request — master (#691)
by Vitor
04:32
created
lib/Command/Configure.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
 class Configure extends Command {
23 23
 	/** @var AGateway[] */
24
-	private array $gateways = [];
24
+	private array $gateways = [ ];
25 25
 
26 26
 	public function __construct(
27 27
 		private Factory $gatewayFactory,
@@ -31,24 +31,24 @@  discard block
 block discarded – undo
31 31
 		$fqcn = $this->gatewayFactory->getFqcnList();
32 32
 		foreach ($fqcn as $fqcn) {
33 33
 			$gateway = $this->gatewayFactory->get($fqcn);
34
-			$this->gateways[$gateway->getSettings()->id] = $gateway;
34
+			$this->gateways[ $gateway->getSettings()->id ] = $gateway;
35 35
 		}
36 36
 
37 37
 		$this->addArgument(
38 38
 			'gateway',
39 39
 			InputArgument::OPTIONAL,
40
-			'The name of the gateway: ' . implode(', ', array_keys($this->gateways))
40
+			'The name of the gateway: '.implode(', ', array_keys($this->gateways))
41 41
 		);
42 42
 	}
43 43
 
44
-	#[\Override]
44
+	#[\Override ]
45 45
 	protected function execute(InputInterface $input, OutputInterface $output) {
46 46
 		$gatewayName = strtolower((string)$input->getArgument('gateway'));
47 47
 		if (!array_key_exists($gatewayName, $this->gateways)) {
48 48
 			$helper = new QuestionHelper();
49 49
 			$choiceQuestion = new ChoiceQuestion('Please choose a provider:', array_keys($this->gateways));
50 50
 			$selectedIndex = $helper->ask($input, $output, $choiceQuestion);
51
-			$gateway = $this->gateways[$selectedIndex];
51
+			$gateway = $this->gateways[ $selectedIndex ];
52 52
 		}
53 53
 
54 54
 		try {
Please login to merge, or discard this patch.