Fixed code style
authorMarcel Werk <burntime@woltlab.com>
Sat, 11 Dec 2021 13:10:03 +0000 (14:10 +0100)
committerMarcel Werk <burntime@woltlab.com>
Sat, 11 Dec 2021 13:10:03 +0000 (14:10 +0100)
wcfsetup/install/files/lib/system/search/ArticleSearch.class.php
wcfsetup/install/files/lib/system/search/mysql/MysqlSearchEngine.class.php

index 62edea017c770c4391a4415c4d58f6121c5b73e8..0fe5882393c824917b94f13485bc75703b76cae0 100644 (file)
@@ -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;
     }
 
index 79abebae7ab8e7a8c62208df9bdf3cd07b8d7baf..e84b50a73a69dc8c9d44c9ef8c4f6a235197232d 100644 (file)
@@ -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)) {