@@ -44,7 +44,6 @@ protected function configure(): void
4444 ;
4545 }
4646
47-
4847 /**
4948 * @params array<string, list<string>> $algorithms
5049 * @params array<string, list<string>> $issuers
@@ -80,19 +79,19 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8079
8180 private function getGenerator (?string $ firewall ): OidcTokenGenerator
8281 {
83- if (0 === count ($ this ->generators )) {
82+ if (0 === \ count ($ this ->generators )) {
8483 throw new \InvalidArgumentException ('No OIDC token generator configured. ' );
8584 }
8685
8786 if ($ firewall ) {
88- return $ this ->generators [$ firewall ] ?? throw new \InvalidArgumentException (sprintf ('Invalid firewall. Available firewalls: "%s". ' , implode ('", " ' , array_keys ($ this ->generators ))));
87+ return $ this ->generators [$ firewall ] ?? throw new \InvalidArgumentException (\ sprintf ('Invalid firewall. Available firewalls: "%s". ' , implode ('", " ' , array_keys ($ this ->generators ))));
8988 }
9089
91- if (1 === count ($ this ->generators )) {
90+ if (1 === \ count ($ this ->generators )) {
9291 return end ($ this ->generators );
9392 }
9493
95- throw new \InvalidArgumentException (sprintf ('Please choose an firewall. Available firewalls: "%s". ' , implode ('", " ' , array_keys ($ this ->generators ))));
94+ throw new \InvalidArgumentException (\ sprintf ('Please choose an firewall. Available firewalls: "%s". ' , implode ('", " ' , array_keys ($ this ->generators ))));
9695 }
9796
9897 public function complete (CompletionInput $ input , CompletionSuggestions $ suggestions ): void
@@ -103,13 +102,13 @@ public function complete(CompletionInput $input, CompletionSuggestions $suggesti
103102
104103 if ($ input ->mustSuggestOptionValuesFor ('algorithm ' )) {
105104 foreach ($ this ->algorithms as $ algorithm => $ firewalls ) {
106- $ suggestions ->suggestValue (new Suggestion ($ algorithm , sprintf ('Available firewalls: "%s". ' , implode ('", " ' , $ firewalls ))));
105+ $ suggestions ->suggestValue (new Suggestion ($ algorithm , \ sprintf ('Available firewalls: "%s". ' , implode ('", " ' , $ firewalls ))));
107106 }
108107 }
109108
110109 if ($ input ->mustSuggestOptionValuesFor ('issuer ' )) {
111110 foreach ($ this ->issuers as $ issuer => $ firewalls ) {
112- $ suggestions ->suggestValue (new Suggestion ($ issuer , sprintf ('Available firewalls: "%s". ' , implode ('", " ' , $ firewalls ))));
111+ $ suggestions ->suggestValue (new Suggestion ($ issuer , \ sprintf ('Available firewalls: "%s". ' , implode ('", " ' , $ firewalls ))));
113112 }
114113 }
115114 }
0 commit comments