1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-31 15:24:31 +03:00

Removed prefix route groups, applyed styleci changes

Removing prefix route groups out of visual preference.
Those don't really save much and I prefer seeing the complete
paths when going down the list to better guage where I am.
This commit is contained in:
Dan Brown
2021-11-14 15:16:18 +00:00
parent 2e49b16177
commit 7025cb38df
3 changed files with 127 additions and 133 deletions

View File

@ -173,7 +173,7 @@ class SearchResultsFormatter
if (!$fetchAll && $contextStart !== 0 && $contextStart !== $start) {
$content .= ' ...';
$contentTextLength += 4;
} else if ($fetchAll) {
} elseif ($fetchAll) {
// Or fill in gap since the previous match
$fillLength = $contextStart - $lastEnd;
$content .= e(substr($originalText, $lastEnd, $fillLength));