mirror of
https://github.com/Karaka-Management/oms-Admin.git
synced 2026-02-16 04:28:39 +00:00
Docblock fix
This commit is contained in:
parent
d890814a44
commit
4165be9c4f
|
|
@ -17,7 +17,7 @@ namespace Modules\Admin\Admin;
|
||||||
use phpOMS\DataStorage\Database\DatabasePool;
|
use phpOMS\DataStorage\Database\DatabasePool;
|
||||||
use phpOMS\Module\UpdaterAbstract;
|
use phpOMS\Module\UpdaterAbstract;
|
||||||
use phpOMS\Module\InfoManager;
|
use phpOMS\Module\InfoManager;
|
||||||
use phpOMS\System\File\Directory;
|
use phpOMS\System\File\Local\Directory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update class.
|
* Update class.
|
||||||
|
|
@ -35,7 +35,7 @@ class Updater extends UpdaterAbstract
|
||||||
*/
|
*/
|
||||||
public static function update(DatabasePool $dbPool, InfoManager $info) : void
|
public static function update(DatabasePool $dbPool, InfoManager $info) : void
|
||||||
{
|
{
|
||||||
Directory::deletePath(__DIR__ . '/Update');
|
Directory::delete(__DIR__ . '/Update');
|
||||||
\mkdir('Update');
|
\mkdir('Update');
|
||||||
parent::update($dbPool, $info);
|
parent::update($dbPool, $info);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -553,7 +553,13 @@ final class ApiController extends Controller
|
||||||
$status = (int) $request->getData('status');
|
$status = (int) $request->getData('status');
|
||||||
|
|
||||||
if (empty($module) || empty($status)) {
|
if (empty($module) || empty($status)) {
|
||||||
$response->set('module_stutus_update', null);
|
$response->set($request->getUri()->__toString(), [
|
||||||
|
'status' => 'warning',
|
||||||
|
'title' => 'Module',
|
||||||
|
'message' => 'Invalid module or status',
|
||||||
|
'response' => []
|
||||||
|
]);
|
||||||
|
|
||||||
$response->getHeader()->setStatusCode(RequestStatusCode::R_403);
|
$response->getHeader()->setStatusCode(RequestStatusCode::R_403);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -318,7 +318,9 @@ final class BackendController extends Controller
|
||||||
$view->setData('installed', $installed = $this->app->moduleManager->getInstalledModules());
|
$view->setData('installed', $installed = $this->app->moduleManager->getInstalledModules());
|
||||||
$view->setData('id', $id);
|
$view->setData('id', $id);
|
||||||
|
|
||||||
if (isset($installed[$id]) && ($path = \realpath(__DIR__ . '/../' . $id . '/info.json')) !== false) {
|
$path = \realpath(__DIR__ . '/../' . $id . '/info.json');
|
||||||
|
|
||||||
|
if (isset($installed[$id]) && $path !== false) {
|
||||||
$info = new InfoManager($path);
|
$info = new InfoManager($path);
|
||||||
$info->load();
|
$info->load();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ class AccountPermission extends PermissionAbstract
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
* @param int $group Group id
|
* @param int $account Group id
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ class AccountPermissionMapper extends DataMapperAbstract
|
||||||
/**
|
/**
|
||||||
* Columns.
|
* Columns.
|
||||||
*
|
*
|
||||||
* @var array<string, array<string, string>>
|
* @var array<string, array<string, string|bool>>
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static $columns = [
|
protected static $columns = [
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ class GroupMapper extends DataMapperAbstract
|
||||||
/**
|
/**
|
||||||
* Columns.
|
* Columns.
|
||||||
*
|
*
|
||||||
* @var array<string, array<string, string>>
|
* @var array<string, array<string, string|bool>>
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static $columns = [
|
protected static $columns = [
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ class GroupPermissionMapper extends DataMapperAbstract
|
||||||
/**
|
/**
|
||||||
* Columns.
|
* Columns.
|
||||||
*
|
*
|
||||||
* @var array<string, array<string, string>>
|
* @var array<string, array<string, string|bool>>
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static $columns = [
|
protected static $columns = [
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ class ModuleMapper extends DataMapperAbstract
|
||||||
/**
|
/**
|
||||||
* Columns.
|
* Columns.
|
||||||
*
|
*
|
||||||
* @var array<string, array<string, string>>
|
* @var array<string, array<string, string|bool>>
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
protected static $columns = [
|
protected static $columns = [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user