CS fixes, refs #1419
parent
702742e15f
commit
5fd19f63dd
|
@ -624,10 +624,10 @@ class Installer
|
||||||
throw new \LogicException('isUpdateable should only be called when a whitelist is present');
|
throw new \LogicException('isUpdateable should only be called when a whitelist is present');
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach($this->updateWhitelist as $whiteListedPattern => $void) {
|
foreach ($this->updateWhitelist as $whiteListedPattern => $void) {
|
||||||
$cleanedWhiteListedPattern = str_replace('\*', '.*', preg_quote($whiteListedPattern));
|
$cleanedWhiteListedPattern = str_replace('\\*', '.*', preg_quote($whiteListedPattern));
|
||||||
|
|
||||||
if(preg_match("#^".$cleanedWhiteListedPattern."$#i", $package->getName())) {
|
if (preg_match("#^".$cleanedWhiteListedPattern."$#i", $package->getName())) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue