aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/FullTextSearch/Model/IndexDocument.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/FullTextSearch/Model/IndexDocument.php')
-rw-r--r--lib/private/FullTextSearch/Model/IndexDocument.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/FullTextSearch/Model/IndexDocument.php b/lib/private/FullTextSearch/Model/IndexDocument.php
index 6f9da9416fa..8bd20bad1e0 100644
--- a/lib/private/FullTextSearch/Model/IndexDocument.php
+++ b/lib/private/FullTextSearch/Model/IndexDocument.php
@@ -402,7 +402,7 @@ class IndexDocument implements IIndexDocument, JsonSerializable {
return $this;
}
- $this->hash = hash("md5", $this->getContent());
+ $this->hash = hash('md5', $this->getContent());
return $this;
}
@@ -556,9 +556,9 @@ class IndexDocument implements IIndexDocument, JsonSerializable {
* @since 16.0.0
*/
private function cleanExcerpt(string $excerpt): string {
- $excerpt = str_replace("\\n", ' ', $excerpt);
- $excerpt = str_replace("\\r", ' ', $excerpt);
- $excerpt = str_replace("\\t", ' ', $excerpt);
+ $excerpt = str_replace('\\n', ' ', $excerpt);
+ $excerpt = str_replace('\\r', ' ', $excerpt);
+ $excerpt = str_replace('\\t', ' ', $excerpt);
$excerpt = str_replace("\n", ' ', $excerpt);
$excerpt = str_replace("\r", ' ', $excerpt);
$excerpt = str_replace("\t", ' ', $excerpt);