@@ -25,16 +25,16 @@ discard block |
||
| 25 | 25 | ) { |
| 26 | 26 | parent::__construct('twofactorauth:gateway:test'); |
| 27 | 27 | |
| 28 | - $ids = []; |
|
| 28 | + $ids = [ ]; |
|
| 29 | 29 | $fqcn = $this->gatewayFactory->getFqcnList(); |
| 30 | 30 | foreach ($fqcn as $fqcn) { |
| 31 | - $ids[] = $fqcn::getProviderId(); |
|
| 31 | + $ids[ ] = $fqcn::getProviderId(); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | $this->addArgument( |
| 35 | 35 | 'gateway', |
| 36 | 36 | InputArgument::REQUIRED, |
| 37 | - 'The name of the gateway: ' . implode(', ', $ids) |
|
| 37 | + 'The name of the gateway: '.implode(', ', $ids) |
|
| 38 | 38 | ); |
| 39 | 39 | $this->addArgument( |
| 40 | 40 | 'identifier', |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | ); |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | - #[\Override] |
|
| 46 | + #[\Override ] |
|
| 47 | 47 | protected function execute(InputInterface $input, OutputInterface $output) { |
| 48 | 48 | $gatewayName = $input->getArgument('gateway'); |
| 49 | 49 | $identifier = $input->getArgument('identifier'); |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | return 1; |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | - $gateway->send($identifier, 'Test', ['code' => '123456']); |
|
| 58 | + $gateway->send($identifier, 'Test', [ 'code' => '123456' ]); |
|
| 59 | 59 | return 0; |
| 60 | 60 | } |
| 61 | 61 | } |