1
0
Fork 0

Use {} for foreach

pull/155/head
Matthias Pigulla 2011-12-12 12:51:42 +01:00
parent 3bbe3306fc
commit 737fe32f4d
1 changed files with 2 additions and 1 deletions

View File

@ -55,8 +55,9 @@ class ArrayDumper
foreach (array('require', 'conflict', 'provide', 'replace', 'suggest', 'recommend') as $linkType) { foreach (array('require', 'conflict', 'provide', 'replace', 'suggest', 'recommend') as $linkType) {
if ($links = $package->{'get'.ucfirst($linkType).'s'}()) { if ($links = $package->{'get'.ucfirst($linkType).'s'}()) {
foreach ($links as $link) foreach ($links as $link) {
$data[$linkType][$link->getTarget()] = $link->getPrettyConstraint(); $data[$linkType][$link->getTarget()] = $link->getPrettyConstraint();
}
} }
} }