Completed
Push — master ( cd83d2...33c740 )
by Andreas
01:48
created
src/Parser/PapercallIo/EventStartDate.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,19 +56,19 @@  discard block
 block discarded – undo
56 56
         $xpath = new DOMXPath($dom);
57 57
         $titlePath = $xpath->query("//h1[contains(@class, 'subheader__subtitle')]");
58 58
 
59
-        if (! $titlePath || $titlePath->length == 0) {
59
+        if (!$titlePath || $titlePath->length == 0) {
60 60
             return $cfp;
61 61
         }
62 62
 
63 63
         $location = trim($titlePath->item(0)->textContent);
64 64
         $location = explode(' - ', $location);
65 65
 
66
-        if (! isset($location[1])) {
66
+        if (!isset($location[1])) {
67 67
             return $cfp;
68 68
         }
69 69
 
70 70
         $dates = explode(',', $location[1]);
71
-        if (count($dates) % 2  !== 0) {
71
+        if (count($dates) % 2 !== 0) {
72 72
             return $cfp;
73 73
         }
74 74
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             return $cfp;
77 77
         }
78 78
 
79
-        $startDate = new DateTimeImmutable($dates[0] . ', ' . $dates[1] . ' 00:00:00', $timezone);
79
+        $startDate = new DateTimeImmutable($dates[0].', '.$dates[1].' 00:00:00', $timezone);
80 80
         $cfp->eventStartDate = $startDate;
81 81
 
82 82
         return $cfp;
Please login to merge, or discard this patch.
src/Parser/PapercallIo/PapercallIoParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
         do {
67 67
             $dom = new DOMDocument('1.0', 'UTF-8');
68 68
             libxml_use_internal_errors(true);
69
-            $uri = sprintf($this->uri, $i+1);
69
+            $uri = sprintf($this->uri, $i + 1);
70 70
             $dom->loadHTMLFile($uri);
71 71
             libxml_use_internal_errors(false);
72 72
             $dom->preserveWhiteSpace = false;
Please login to merge, or discard this patch.
src/Notification/TwitterNotifier.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         );
52 52
         $request = new Request(
53 53
             'POST',
54
-            'statuses/update.json?' . $this->formUrlEncode([
54
+            'statuses/update.json?'.$this->formUrlEncode([
55 55
                 'status'              => $notificationString,
56 56
                 'lat'                 => $cfp->latitude,
57 57
                 'long'                => $cfp->longitude,
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         if (strlen($name) < 70) {
72 72
             return $name;
73 73
         }
74
-        return substr($name, 0, 69) . '…';
74
+        return substr($name, 0, 69).'…';
75 75
     }
76 76
 
77 77
     protected function shortenUri($uri)
Please login to merge, or discard this patch.
src/Parser/PapercallIo/Icon.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         $xpath = new DOMXPath($dom);
45 45
         $titlePath = $xpath->query("//div[contains(@class, 'subheader__logo')]/img");
46 46
 
47
-        if (! $titlePath || $titlePath->length == 0) {
47
+        if (!$titlePath || $titlePath->length == 0) {
48 48
             return $cfp;
49 49
         }
50 50
 
Please login to merge, or discard this patch.
src/Writer/ApiCfpWriter.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -69,12 +69,12 @@  discard block
 block discarded – undo
69 69
         try {
70 70
             $uri = '';
71 71
             $this->client->get($cfp->conferenceUri, [
72
-                'on_stats' => function (TransferStats $stats) use (&$uri) {
72
+                'on_stats' => function(TransferStats $stats) use (&$uri) {
73 73
                     $uri = (string) $stats->getEffectiveUri();
74 74
                 }
75 75
             ]);
76 76
         } catch (\Exception $e) {
77
-            throw new \InvalidArgumentException('Event-URI could not be verified: ' . $e->getMessage());
77
+            throw new \InvalidArgumentException('Event-URI could not be verified: '.$e->getMessage());
78 78
         }
79 79
         $cfp->conferenceUri = $uri;
80 80
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 
102 102
         try {
103 103
             $this->client->request('GET', sprintf(
104
-                $this->baseUri . '/%1$s',
104
+                $this->baseUri.'/%1$s',
105 105
                 sha1($cfp->conferenceUri)
106 106
             ), []);
107 107
             $exists = true;
@@ -116,18 +116,18 @@  discard block
 block discarded – undo
116 116
                     $this->baseUri
117 117
                 ), [
118 118
                     'headers' => [
119
-                        'Authorization' => 'Bearer ' . $this->bearerToken,
119
+                        'Authorization' => 'Bearer '.$this->bearerToken,
120 120
                     ],
121 121
                     'form_params' => $body
122 122
                 ]);
123 123
             } else {
124 124
                 // Exists, so update it
125 125
                 $response = $this->client->request('PUT', sprintf(
126
-                    $this->baseUri . '/%1$s',
126
+                    $this->baseUri.'/%1$s',
127 127
                     sha1($cfp->conferenceUri)
128 128
                 ), [
129 129
                     'headers' => [
130
-                        'Authorization' => 'Bearer ' . $this->bearerToken,
130
+                        'Authorization' => 'Bearer '.$this->bearerToken,
131 131
                     ],
132 132
                     'form_params' => $body
133 133
                 ]);
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
             ));
149 149
         }
150 150
 
151
-        return (isset($response) && ($response->getStatusCode() === 200 || $response->getStatusCode() === 201))?'Success':'Failure';
151
+        return (isset($response) && ($response->getStatusCode() === 200 || $response->getStatusCode() === 201)) ? 'Success' : 'Failure';
152 152
     }
153 153
 
154 154
     public function setOutput(OutputInterface $output)
Please login to merge, or discard this patch.