Skip to content

Commit

Permalink
scrutinizer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lichunqiang committed Jan 24, 2016
1 parent 2edae13 commit 9ca094b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
imports:
- php

tools:
external_code_coverage:
timeout: 2100 # Timeout in seconds.
# disable copy paste detector and similarity analyzer as they have no real value
# and a huge bunch of false-positives
php_sim: false
php_cpd: false
2 changes: 1 addition & 1 deletion src/CallbackEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function __construct($callback, array $parameters = [], $config = [])
public function run(Application $app)
{
$response = call_user_func_array($this->callback, array_merge($this->parameters, [$app]));
parent::callAfterCallbacks($app);
$this->callAfterCallbacks($app);

return $response;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public function emailOutput($address)
$address = is_array($address) ? $address : func_get_args();

return $this->then(function (Application $app) use ($address) {
$thsi->sendEmail($app->mailer, $address);
$this->sendEmail($app->mailer, $address);
});
}

Expand Down

0 comments on commit 9ca094b

Please sign in to comment.