Completed
Branch master (29e554)
by Matthew
04:34
created
src/Command/CreateClientCommand.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,14 +61,14 @@
 block discarded – undo
61 61
         $question->setMultiselect(true);
62 62
 
63 63
         $types = $helper->ask($input, $output, $question);
64
-        $output->writeln('You\'ve enabled: ' . implode(', ', $types));
64
+        $output->writeln('You\'ve enabled: '.implode(', ', $types));
65 65
 
66 66
         $question = new Question("Please enter your redirect uris. Separate multiple with commas: \n");
67 67
         $redirectUris = $helper->ask($input, $output, $question);
68 68
 
69 69
         $clientManager = $this->container->get('api.client_manager.default');
70 70
         $client = $clientManager->createClient();
71
-        if(strpos($redirectUris, ',') !== false) {
71
+        if (strpos($redirectUris, ',') !== false) {
72 72
             $client->setRedirectUris(explode(',', $redirectUris));
73 73
         }
74 74
         else {
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,8 +70,7 @@
 block discarded – undo
70 70
         $client = $clientManager->createClient();
71 71
         if(strpos($redirectUris, ',') !== false) {
72 72
             $client->setRedirectUris(explode(',', $redirectUris));
73
-        }
74
-        else {
73
+        } else {
75 74
             $client->setRedirectUris([$redirectUris]);
76 75
         }
77 76
         $client->setAllowedGrantTypes($types);
Please login to merge, or discard this patch.
src/Command/ClientListCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
         $table = new Table($output);
58 58
         $table->setHeaders(['ID', 'Key', 'Secret', 'Grant Types', 'Redirect URIs']);
59 59
         /** @var Client $client */
60
-        foreach($clients as $client) {
60
+        foreach ($clients as $client) {
61 61
             $table->addRow([
62 62
                 'id' => $client->getId(),
63 63
                 'key' => $client->getPublicId(),
Please login to merge, or discard this patch.