// build template group hierarchie (template groups that are parents of the template group of the selected template)
$this->templateGroupHierarchie = array();
$templateGroup = $templateGroupList->search($this->template->templateGroupID);
- while($templateGroup !== null) {
+ while ($templateGroup !== null) {
$this->templateGroupHierarchie[$templateGroup->templateGroupID] = array('group' => $templateGroup, 'hasTemplate' => false);
$templateGroup = $templateGroupList->search($templateGroup->parentTemplateGroupID);
}
$y--;
}
- for ($i = 0; $i < $offsetStart; $i++) $lcs[$i] = $this->a[$i];
- for ($i = 0; $i < $offsetEnd; $i++) $lcs[$lcsLength + $offsetStart + $i] = $this->a[$this->sizeA - 1 - ($offsetEnd - 1 - $i)];
+ for ($i = 0; $i < $offsetStart; $i++) {
+ $lcs[$i] = $this->a[$i];
+ }
+ for ($i = 0; $i < $offsetEnd; $i++) {
+ $lcs[$lcsLength + $offsetStart + $i] = $this->a[$this->sizeA - 1 - ($offsetEnd - 1 - $i)];
+ }
return $lcs;
}