From f75fafd6cb7fd545d0b9d9b1cfa385446413dd66 Mon Sep 17 00:00:00 2001 From: Formatter Bot Date: Sat, 10 Oct 2020 19:32:02 +0000 Subject: [PATCH] Automated formatting changes --- Controller/SearchController.php | 14 +++++++------- tests/Controller/SearchControllerTest.php | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Controller/SearchController.php b/Controller/SearchController.php index cd5ad70..91f1e0f 100755 --- a/Controller/SearchController.php +++ b/Controller/SearchController.php @@ -61,7 +61,7 @@ final class SearchController extends Controller ) + 1 ); - $files = []; + $files = []; $activeModules = $this->app->moduleManager->getActiveModules(); foreach ($activeModules as $module) { @@ -102,17 +102,17 @@ final class SearchController extends Controller ); $files[$module['name']['internal']][] = [ - 'title' => $module['name']['external'] . ': ' . \trim($headline, " #\r\n\t"), - 'summary' => \trim($summary, " #\r\n\t"), - 'link' => $path . '/' . $file, - 'account' => '', + 'title' => $module['name']['external'] . ': ' . \trim($headline, " #\r\n\t"), + 'summary' => \trim($summary, " #\r\n\t"), + 'link' => $path . '/' . $file, + 'account' => '', 'createdAt' => \max( \filectime($path . '/' . $file), \filemtime($path . '/' . $file) ), 'image' => '', - 'tags' => [], - 'type' => 'list_links' + 'tags' => [], + 'type' => 'list_links', ]; // @todo: add match score for sorted return } diff --git a/tests/Controller/SearchControllerTest.php b/tests/Controller/SearchControllerTest.php index e875d52..bfc98bc 100644 --- a/tests/Controller/SearchControllerTest.php +++ b/tests/Controller/SearchControllerTest.php @@ -22,13 +22,13 @@ use phpOMS\Account\PermissionType; use phpOMS\Application\ApplicationAbstract; use phpOMS\Dispatcher\Dispatcher; use phpOMS\Event\EventManager; +use phpOMS\Message\Http\HttpRequest; +use phpOMS\Message\Http\HttpResponse; use phpOMS\Module\ModuleAbstract; use phpOMS\Module\ModuleManager; use phpOMS\Router\WebRouter; -use phpOMS\Utils\TestUtils; -use phpOMS\Message\Http\HttpResponse; -use phpOMS\Message\Http\HttpRequest; use phpOMS\Uri\HttpUri; +use phpOMS\Utils\TestUtils; /** * @testdox Modules\Admin\tests\Controller\SearchControllerTest: Admin api controller