Completed
Push — master ( 80ec02...383790 )
by Andreas
9s
created
src/Writer/ApiCfpWriter.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
         try {
86 86
             $this->client->request('GET', sprintf(
87
-                $this->baseUri . '/%1$s',
87
+                $this->baseUri.'/%1$s',
88 88
                 sha1($cfp->conferenceUri)
89 89
             ), []);
90 90
             $exists = true;
@@ -99,18 +99,18 @@  discard block
 block discarded – undo
99 99
                     $this->baseUri
100 100
                 ), [
101 101
                     'headers' => [
102
-                        'Authorization' => 'Bearer ' . $this->bearerToken,
102
+                        'Authorization' => 'Bearer '.$this->bearerToken,
103 103
                     ],
104 104
                     'form_params' => $body
105 105
                 ]);
106 106
             } else {
107 107
                 // Exists, so update it
108 108
                 $response = $this->client->request('PUT', sprintf(
109
-                    $this->baseUri . '/%1$s',
109
+                    $this->baseUri.'/%1$s',
110 110
                     sha1($cfp->conferenceUri)
111 111
                 ), [
112 112
                     'headers' => [
113
-                        'Authorization' => 'Bearer ' . $this->bearerToken,
113
+                        'Authorization' => 'Bearer '.$this->bearerToken,
114 114
                     ],
115 115
                     'form_params' => $body
116 116
                 ]);
@@ -126,10 +126,10 @@  discard block
 block discarded – undo
126 126
         $this->output->writeln(sprintf(
127 127
             'Conference "%1$s" succcessfully %2$s.',
128 128
             $cfp->conferenceName,
129
-            ($exists)?'updated':'created'
129
+            ($exists) ? 'updated' : 'created'
130 130
         ));
131 131
 
132
-        return (isset($response) && ($response->getStatusCode() === 200 || $response->getStatusCode() === 201))?'Success':'Failure';
132
+        return (isset($response) && ($response->getStatusCode() === 200 || $response->getStatusCode() === 201)) ? 'Success' : 'Failure';
133 133
     }
134 134
 
135 135
     public function setOutput(OutputInterface $output)
Please login to merge, or discard this patch.