@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | |
57 | 57 | $content = file_Get_contents($uri); |
58 | 58 | $content = mb_convert_encoding($content, 'UTF-8'); |
59 | - $dom->loadHTML('<?xml version="1.0" charset="UTF-8" ?>' . $content); |
|
59 | + $dom->loadHTML('<?xml version="1.0" charset="UTF-8" ?>'.$content); |
|
60 | 60 | $dom->preserveWhiteSpace = false; |
61 | 61 | |
62 | 62 | $timezone = 'UTC'; |
@@ -154,15 +154,15 @@ discard block |
||
154 | 154 | { |
155 | 155 | $confPath = $xpath->query("//h3/a[contains(@class, 'summary')]"); |
156 | 156 | |
157 | - if (! $confPath || $confPath->length == 0) { |
|
157 | + if (!$confPath || $confPath->length == 0) { |
|
158 | 158 | throw new \InvalidArgumentException('We can\'t find an EventPage'); |
159 | 159 | } |
160 | 160 | |
161 | 161 | $dom = new \DOMDocument('1.0', 'UTF-8'); |
162 | 162 | |
163 | - $content = file_get_contents('https://lanyrd.com' . $confPath->item(0)->attributes->getNamedItem('href')->textContent); |
|
163 | + $content = file_get_contents('https://lanyrd.com'.$confPath->item(0)->attributes->getNamedItem('href')->textContent); |
|
164 | 164 | $content = mb_convert_encoding($content, 'UTF-8'); |
165 | - $dom->loadHTML('<?xml version="1.0" charset="UTF-8" ?>' . $content); |
|
165 | + $dom->loadHTML('<?xml version="1.0" charset="UTF-8" ?>'.$content); |
|
166 | 166 | $dom->preserveWhiteSpace = false; |
167 | 167 | |
168 | 168 | return $dom; |
@@ -84,7 +84,7 @@ discard block |
||
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 |
||
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 |
||
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) |