Completed
Push — master ( 10bf70...e0541a )
by Sebastien
02:17
created
src/Smalot/Github/Webhook/Webhook.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
             $eventNames = $this->getDefaultEventNames();
105 105
 
106 106
             $this->eventMap = array_map(
107
-                function ($event) use ($namespace) {
107
+                function($event) use ($namespace) {
108 108
                     $className = str_replace(' ', '', ucwords(str_replace('_', ' ', $event)));
109 109
 
110 110
                     return $namespace . $className . 'Event';
@@ -158,10 +158,10 @@  discard block
 block discarded – undo
158 158
         $this->delivery = null;
159 159
 
160 160
         // Extract Github headers from request.
161
-        $signature = (string)$request->headers->get('X-Hub-Signature');
162
-        $event = (string)$request->headers->get('X-Github-Event');
163
-        $delivery = (string)$request->headers->get('X-Github-Delivery');
164
-        $payload = (string)$request->getContent();
161
+        $signature = (string) $request->headers->get('X-Hub-Signature');
162
+        $event = (string) $request->headers->get('X-Github-Event');
163
+        $delivery = (string) $request->headers->get('X-Github-Delivery');
164
+        $payload = (string) $request->getContent();
165 165
 
166 166
         if (!isset($signature, $event, $delivery)) {
167 167
             throw new \InvalidArgumentException('Missing Github headers.');
Please login to merge, or discard this patch.