Use {} for foreach
parent
3bbe3306fc
commit
737fe32f4d
|
@ -55,10 +55,11 @@ class ArrayDumper
|
|||
|
||||
foreach (array('require', 'conflict', 'provide', 'replace', 'suggest', 'recommend') as $linkType) {
|
||||
if ($links = $package->{'get'.ucfirst($linkType).'s'}()) {
|
||||
foreach ($links as $link)
|
||||
foreach ($links as $link) {
|
||||
$data[$linkType][$link->getTarget()] = $link->getPrettyConstraint();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($keys as $method => $key) {
|
||||
if (is_numeric($method)) {
|
||||
|
|
Loading…
Reference in New Issue