Skip to content

Commit

Permalink
improve code styling after IF keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
mhhansen committed Jul 13, 2018
1 parent 7b1c4dd commit 10afe1d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function getTree(ResolveInfo $resolveInfo, int $rootCategoryId) : array
$level = $this->levelCalculator->calculate($rootCategoryId);

// If root category is being filter, we've to remove first slash
if($rootCategoryId == 1) {
if ($rootCategoryId == 1) {
$regExpPathFilter = sprintf('.*%s/[/0-9]*$', $rootCategoryId);
} else {
$regExpPathFilter = sprintf('.*/%s/[/0-9]*$', $rootCategoryId);
Expand Down

0 comments on commit 10afe1d

Please sign in to comment.