From: Marcel Werk Date: Sat, 11 Dec 2021 13:10:03 +0000 (+0100) Subject: Fixed code style X-Git-Tag: 5.5.0_Alpha_1~262^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5bc733ca3fec6fdfadb44469315fe4c6833ad732;p=GitHub%2FWoltLab%2FWCF.git Fixed code style --- diff --git a/wcfsetup/install/files/lib/system/search/ArticleSearch.class.php b/wcfsetup/install/files/lib/system/search/ArticleSearch.class.php index 62edea017c..0fe5882393 100644 --- a/wcfsetup/install/files/lib/system/search/ArticleSearch.class.php +++ b/wcfsetup/install/files/lib/system/search/ArticleSearch.class.php @@ -106,22 +106,20 @@ class ArticleSearch extends AbstractSearchProvider $accessibleCategoryIDs = ArticleCategory::getAccessibleCategoryIDs(); if (!empty($articleCategoryIDs)) { $articleCategoryIDs = \array_intersect($articleCategoryIDs, $accessibleCategoryIDs); - } - else { + } else { $articleCategoryIDs = $accessibleCategoryIDs; } $conditionBuilder = new PreparedStatementConditionBuilder(); if (empty($articleCategoryIDs)) { $conditionBuilder->add('1=0'); - } - else { + } else { $conditionBuilder->add( 'wcf' . WCF_N . '_article.categoryID IN (?) AND wcf' . WCF_N . '_article.publicationStatus = ?', [$articleCategoryIDs, Article::PUBLISHED] ); } - + return $conditionBuilder; } @@ -137,7 +135,7 @@ class ArticleSearch extends AbstractSearchProvider } } } - + return $categoryIDs; } diff --git a/wcfsetup/install/files/lib/system/search/mysql/MysqlSearchEngine.class.php b/wcfsetup/install/files/lib/system/search/mysql/MysqlSearchEngine.class.php index 79abebae7a..e84b50a73a 100644 --- a/wcfsetup/install/files/lib/system/search/mysql/MysqlSearchEngine.class.php +++ b/wcfsetup/install/files/lib/system/search/mysql/MysqlSearchEngine.class.php @@ -61,9 +61,8 @@ class MysqlSearchEngine extends AbstractSearchEngine $additionalConditionsConditionBuilder = ($additionalConditions[$objectTypeName] ?? null); if ($objectType instanceof ISearchProvider) { - $query = $objectType->getOuterSqlQuery($additionalConditionsConditionBuilder); - } - else { + $query = $objectType->getOuterSqlQuery($additionalConditionsConditionBuilder); + } else { $query = $objectType->getOuterSQLQuery($q, $searchIndexCondition, $additionalConditionsConditionBuilder); } if (empty($query)) {