]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Tools/SearchResultsFormatter.php
Added test for logical-theme-system command registration
[bookstack] / app / Entities / Tools / SearchResultsFormatter.php
index 31a8f81c90ef9a692544203f3cb67ecd0864c794..5dbcfb6632473cf8d6925e508a80e649735b9ce2 100644 (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));