Skip to content
Permalink
Browse files

Don't assign matches to a variable as we don't use it

  • Loading branch information...
HavokInspiration committed Aug 1, 2017
1 parent f87005b commit 876c100ec1798ac682a00096378a396320bbfdac
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Console/ConsoleOptionParser.php
@@ -879,13 +879,13 @@ protected function findClosestItem($needle, $haystack)
{
$bestGuess = null;
foreach ($haystack as $item) {
if (preg_match('/^' . $needle . '/', $item, $matches)) {
if (preg_match('/^' . $needle . '/', $item)) {
return $item;
}
}
foreach ($haystack as $item) {
if (preg_match('/' . $needle . '/', $item, $matches)) {
if (preg_match('/' . $needle . '/', $item)) {
return $item;
}

0 comments on commit 876c100

Please sign in to comment.
You can’t perform that action at this time.