Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 1774ccf

Browse files
samsonasikweierophinney
authored andcommitted
replace count() usage to empty when possible
1 parent 8011cec commit 1774ccf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ private function checkForDuplicateRoute($path, $methods = null)
474474
}, false);
475475
});
476476

477-
if (count($matches) > 0) {
477+
if (! empty($matches)) {
478478
throw new Exception\DuplicateRouteException(
479479
'Duplicate route detected; same name or path, and one or more HTTP methods intersect'
480480
);

0 commit comments

Comments
 (0)