Completed
Push — master ( 100f13...cbf27e )
by Andreas
10s
created
src/Writer/ApiCfpWriter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 
97 97
         try {
98 98
             $this->client->request('GET', sprintf(
99
-                $this->baseUri . '/%1$s',
99
+                $this->baseUri.'/%1$s',
100 100
                 sha1($cfp->conferenceUri)
101 101
             ), []);
102 102
             $exists = true;
@@ -111,18 +111,18 @@  discard block
 block discarded – undo
111 111
                     $this->baseUri
112 112
                 ), [
113 113
                     'headers' => [
114
-                        'Authorization' => 'Bearer ' . $this->bearerToken,
114
+                        'Authorization' => 'Bearer '.$this->bearerToken,
115 115
                     ],
116 116
                     'form_params' => $body
117 117
                 ]);
118 118
             } else {
119 119
                 // Exists, so update it
120 120
                 $response = $this->client->request('PUT', sprintf(
121
-                    $this->baseUri . '/%1$s',
121
+                    $this->baseUri.'/%1$s',
122 122
                     sha1($cfp->conferenceUri)
123 123
                 ), [
124 124
                     'headers' => [
125
-                        'Authorization' => 'Bearer ' . $this->bearerToken,
125
+                        'Authorization' => 'Bearer '.$this->bearerToken,
126 126
                     ],
127 127
                     'form_params' => $body
128 128
                 ]);
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
             ));
144 144
         }
145 145
 
146
-        return (isset($response) && ($response->getStatusCode() === 200 || $response->getStatusCode() === 201))?'Success':'Failure';
146
+        return (isset($response) && ($response->getStatusCode() === 200 || $response->getStatusCode() === 201)) ? 'Success' : 'Failure';
147 147
     }
148 148
 
149 149
     public function setOutput(OutputInterface $output)
Please login to merge, or discard this patch.
src/Command/ParseEvents.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 
76 76
         $start = new \DateTime($input->getOption('start'));
77 77
 
78
-        if (! $start instanceof \DateTime) {
78
+        if (!$start instanceof \DateTime) {
79 79
             throw new \InvalidArgumentException('The given date could not be parsed');
80 80
         }
81 81
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
             ],
86 86
         ]);
87 87
 
88
-        $config = parse_ini_file(__DIR__ . '/../../config/callingallpapers.ini');
88
+        $config = parse_ini_file(__DIR__.'/../../config/callingallpapers.ini');
89 89
         $writer = new ApiCfpWriter($config['event_api_url'], $config['event_api_token'], $client);
90 90
         $writer->setOutput($output);
91 91
 
Please login to merge, or discard this patch.
src/CfpFilter/FollowUriRedirect.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,12 +65,12 @@
 block discarded – undo
65 65
         try {
66 66
             $myuri = '';
67 67
             $this->client->get($uri, [
68
-                'on_stats' => function (TransferStats $stats) use (&$myuri) {
68
+                'on_stats' => function(TransferStats $stats) use (&$myuri) {
69 69
                     $myuri = (string) $stats->getEffectiveUri();
70 70
                 }
71 71
             ]);
72 72
         } catch (Exception $e) {
73
-            throw new UnverifiedUriException('Event-URI could not be verified: ' . $e->getMessage());
73
+            throw new UnverifiedUriException('Event-URI could not be verified: '.$e->getMessage());
74 74
         }
75 75
 
76 76
         return $myuri;
Please login to merge, or discard this patch.