Skip to content

Commit

Permalink
Swich and for && operator
Browse files Browse the repository at this point in the history
Jumping through insight's hoops
  • Loading branch information
mrjgreen committed Jan 9, 2015
1 parent be1fd24 commit 7df1648
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Phroute/HandlerResolver.php
Expand Up @@ -12,11 +12,11 @@ class HandlerResolver implements HandlerResolverInterface {

public function resolve ($handler)
{
if(is_array($handler) and is_string($handler[0]))
if(is_array($handler) && is_string($handler[0]))
{
$handler[0] = new $handler[0];
}

return $handler;
}
}
}

0 comments on commit 7df1648

Please sign in to comment.