Skip to content

Commit

Permalink
Convert concatenation to string interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Feb 26, 2023
1 parent 63b814b commit 77d6755
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ protected function makeBreadcrumbs(): array

// if it's not the last field, add index.html (since it must be a directory) otherwise add .html
if ($index < count($fields) - 1) {
$path = $previous . "$field/index.html";
$path = "$previous$field/index.html";
} else {
$path = $previous . "$field.html";
$path = "$previous$field.html";
}
$breadcrumbs[Hyde::relativeLink($path)] = Hyde::makeTitle($field);

Expand Down

0 comments on commit 77d6755

Please sign in to comment.