Skip to content

Commit

Permalink
:octocat: +backslashes for built-in functions
Browse files Browse the repository at this point in the history
  • Loading branch information
codemasher committed Mar 15, 2019
1 parent bacf006 commit e2f01d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Psr15/PriorityQueueRequestHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function add(MiddlewareInterface $middleware):QueueRequestHandler{
* @return void
*/
protected function sortMiddleware():void{
usort($this->middlewareStack, function(PriorityMiddlewareInterface $a, PriorityMiddlewareInterface $b){
\usort($this->middlewareStack, function(PriorityMiddlewareInterface $a, PriorityMiddlewareInterface $b){
return $a->getPriority() > $b->getPriority();
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/Psr15/QueueRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function handle(ServerRequestInterface $request):ResponseInterface{
return $this->fallbackHandler->handle($request);
}

$middleware = array_shift($this->middlewareStack);
$middleware = \array_shift($this->middlewareStack);

return $middleware->process($request, $this);
}
Expand Down

0 comments on commit e2f01d2

Please # to comment.