mirror of
https://github.com/Karaka-Management/oms-Help.git
synced 2026-01-23 10:08:41 +00:00
Automated formatting changes
This commit is contained in:
parent
600e2ab705
commit
f75fafd6cb
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user