From: Tim Düsterhus Date: Tue, 10 Jun 2014 17:40:51 +0000 (+0200) Subject: Fix formatting errors X-Git-Tag: 2.1.0_Alpha_1~732^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ceabe368474ca696c1db00adbdb76549979ba424;p=GitHub%2FWoltLab%2FWCF.git Fix formatting errors --- diff --git a/wcfsetup/install/files/lib/acp/page/TemplateDiffPage.class.php b/wcfsetup/install/files/lib/acp/page/TemplateDiffPage.class.php index ce62984861..c559df4708 100644 --- a/wcfsetup/install/files/lib/acp/page/TemplateDiffPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/TemplateDiffPage.class.php @@ -88,7 +88,7 @@ class TemplateDiffPage extends AbstractPage { // 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); } diff --git a/wcfsetup/install/files/lib/util/Diff.class.php b/wcfsetup/install/files/lib/util/Diff.class.php index f13634a02c..a4d51a8c0b 100644 --- a/wcfsetup/install/files/lib/util/Diff.class.php +++ b/wcfsetup/install/files/lib/util/Diff.class.php @@ -155,8 +155,12 @@ class Diff { $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; }