Skip to content

Commit

Permalink
Replace or by ||
Browse files Browse the repository at this point in the history
The or operator does not have the same precedence as ||. This could
lead to unexpected behavior, use || instead.
  • Loading branch information
Tjoosten authored and Tjoosten committed Apr 21, 2015
1 parent 40e5cf0 commit 6c22a2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LaravelDebugbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ public function getJavascriptRenderer($baseUrl = null, $basePath = null)
public function modifyResponse($request, $response)
{
$app = $this->app;
if ($app->runningInConsole() or !$this->isEnabled() || $this->isDebugbarRequest()) {
if ($app->runningInConsole() || !$this->isEnabled() || $this->isDebugbarRequest()) {
return $response;
}

Expand Down

0 comments on commit 6c22a2b

Please sign in to comment.