From 4ecf55e180fce950a4d99269d47384c6c0421d4c Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sat, 12 May 2012 09:49:18 +0200 Subject: [PATCH] Minor cleanup --- src/Composer/Command/SearchCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Composer/Command/SearchCommand.php b/src/Composer/Command/SearchCommand.php index 1b3ea7817..14a6570ea 100644 --- a/src/Composer/Command/SearchCommand.php +++ b/src/Composer/Command/SearchCommand.php @@ -84,10 +84,10 @@ EOT $packages[$package->getName()] = array( 'name' => $name, 'description' => strtok($package->getDescription(), "\r\n"), - 'length' => strlen($package->getPrettyName()) + 'length' => $length = strlen($package->getPrettyName()) ); - $maxPackageLength = max($maxPackageLength, strlen($package->getPrettyName())); + $maxPackageLength = max($maxPackageLength, $length); continue 2; }