Skip to content

Commit

Permalink
Merge branch 'release/1.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
lostincode committed Dec 16, 2015
2 parents dede40d + 2628f04 commit cd3a313
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/MandrillWebhookController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ public function handleWebHook(Request $request)

foreach ($events as $event) {

$method = 'handle' . studly_case(str_replace('.', '_', $event['event']));
$eventName = isset($event['event']) ? $event['event'] : 'undefined';
$method = 'handle' . studly_case(str_replace('.', '_', $eventName));

if ( method_exists($this, $method) ) {
$this->{$method}($event);
Expand Down

0 comments on commit cd3a313

Please sign in to comment.