Code fixes.

This commit is contained in:
James Cole
2021-05-24 08:06:56 +02:00
parent 3b1b353b79
commit 2bff7750b4
45 changed files with 331 additions and 248 deletions

View File

@@ -259,9 +259,9 @@ class OperatorQuerySearch implements SearchInterface
case Emoticon::class:
case Emoji::class:
case Mention::class:
$words = (string)$searchNode->getValue();
Log::debug(sprintf('Add words "%s" to search string, because Node class is "%s"', $words, $class));
$this->words[] = $words;
$allWords = (string)$searchNode->getValue();
Log::debug(sprintf('Add words "%s" to search string, because Node class is "%s"', $allWords, $class));
$this->words[] = $allWords;
break;
case Field::class:
Log::debug(sprintf('Now handle Node class %s', $class));
@@ -836,11 +836,11 @@ class OperatorQuerySearch implements SearchInterface
if ($parser->isDateRange($value)) {
return $parser->parseRange($value, $this->date);
}
$date = $parser->parseDate($value);
$parsedDate = $parser->parseDate($value);
return [
'start' => $date,
'end' => $date,
'start' => $parsedDate,
'end' => $parsedDate,
];
}