Skip to content

Commit

Permalink
code review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
minond committed Feb 1, 2014
1 parent 32d48f2 commit 7835286
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Efficio/Http/Rule.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ public function matches($req)
{
$match = false;
$matches = [];
$uri = $req;
$runcheck = true;
$uri = is_string($req) ? $req : '';

if ($req instanceof Request) {
$uri = $req->getUri();
Expand Down
1 change: 1 addition & 0 deletions src/Efficio/Http/RuleBook.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public function all()
public function matching($req, $merge = false)
{
$matching = null;
$matches = [];

foreach ($this->rules as & $rule) {
list($ok, $matches) = $rule->matches($req);
Expand Down

0 comments on commit 7835286

Please sign in to comment.