From 5fd19f63dd8fee88104e80121246e60d3fe0bbf8 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 13 Dec 2012 15:37:11 +0100 Subject: [PATCH] CS fixes, refs #1419 --- src/Composer/Installer.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Composer/Installer.php b/src/Composer/Installer.php index ef44d2109..3ded1c66a 100644 --- a/src/Composer/Installer.php +++ b/src/Composer/Installer.php @@ -624,10 +624,10 @@ class Installer throw new \LogicException('isUpdateable should only be called when a whitelist is present'); } - foreach($this->updateWhitelist as $whiteListedPattern => $void) { - $cleanedWhiteListedPattern = str_replace('\*', '.*', preg_quote($whiteListedPattern)); + foreach ($this->updateWhitelist as $whiteListedPattern => $void) { + $cleanedWhiteListedPattern = str_replace('\\*', '.*', preg_quote($whiteListedPattern)); - if(preg_match("#^".$cleanedWhiteListedPattern."$#i", $package->getName())) { + if (preg_match("#^".$cleanedWhiteListedPattern."$#i", $package->getName())) { return true; } }