cs: Enable a couple of risky rules.

This commit is contained in:
Pol Dellaiera
2021-11-24 12:38:18 +01:00
parent acc4647346
commit f531cdc0ec
51 changed files with 130 additions and 132 deletions

View File

@@ -135,7 +135,7 @@ class EventSearch extends AbstractSearch
public function supports($domain, $format)
{
return 'event' === $domain or 'events' === $domain;
return 'event' === $domain || 'events' === $domain;
}
protected function composeQuery(QueryBuilder &$qb, $terms)
@@ -171,8 +171,8 @@ class EventSearch extends AbstractSearch
}
if (
(isset($terms['name']) or isset($terms['_default']))
and (!empty($terms['name']) or !empty($terms['_default']))) {
(isset($terms['name']) || isset($terms['_default']))
&& (!empty($terms['name']) || !empty($terms['_default']))) {
// the form with name:"xyz" has precedence
$name = $terms['name'] ?? $terms['_default'];