ソースを参照

CS fixes, refs #1419

Jordi Boggiano 12 年 前
コミット
5fd19f63dd
1 ファイル変更3 行追加3 行削除
  1. 3 3
      src/Composer/Installer.php

+ 3 - 3
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;
             }
         }