Skip to content

Commit

Permalink
Merge pull request #37 from joaorobertopb/patch-10
Browse files Browse the repository at this point in the history
Fixes #34
  • Loading branch information
renatomarinho authored Oct 19, 2017
2 parents 48ef09c + f570687 commit bd2788c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Middleware/PageSpeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,12 @@ protected function shouldProcessPageSpeed($request)
return false;
}

return collect($patterns)->every(function ($pattern) use ($request) {
if (!$request->is($pattern)) {
return true;
foreach ($patterns as $pattern) {
if ($request->is($pattern)) {
return false;
}
});
}

return true;
}
}

0 comments on commit bd2788c

Please sign in to comment.