Completed
Pull Request — master (#22)
by Andreas
02:01
created
src/Writer/ApiCfpWriter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
         try {
90 90
             $this->client->request('GET', sprintf(
91
-                $this->baseUri . '/%1$s',
91
+                $this->baseUri.'/%1$s',
92 92
                 sha1($cfp->conferenceUri)
93 93
             ), []);
94 94
             $exists = true;
@@ -103,18 +103,18 @@  discard block
 block discarded – undo
103 103
                     $this->baseUri
104 104
                 ), [
105 105
                     'headers' => [
106
-                        'Authenticate' => 'Bearer ' . $this->bearerToken,
106
+                        'Authenticate' => 'Bearer '.$this->bearerToken,
107 107
                     ],
108 108
                     'form_params' => $body
109 109
                 ]);
110 110
             } else {
111 111
                 // Exists, so update it
112 112
                 $response = $this->client->request('PUT', sprintf(
113
-                    $this->baseUri . '/%1$s',
113
+                    $this->baseUri.'/%1$s',
114 114
                     sha1($cfp->conferenceUri)
115 115
                 ), [
116 116
                     'headers' => [
117
-                        'Authenticate' => 'Bearer ' . $this->bearerToken,
117
+                        'Authenticate' => 'Bearer '.$this->bearerToken,
118 118
                     ],
119 119
                     'form_params' => $body
120 120
                 ]);
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
             ));
136 136
         }
137 137
 
138
-        return (isset($response) && ($response->getStatusCode() === 200 || $response->getStatusCode() === 201))?'Success':'Failure';
138
+        return (isset($response) && ($response->getStatusCode() === 200 || $response->getStatusCode() === 201)) ? 'Success' : 'Failure';
139 139
     }
140 140
 
141 141
     public function setOutput(OutputInterface $output)
Please login to merge, or discard this patch.