From 67f69dbbcc74530c152318625dc7716905b8707e Mon Sep 17 00:00:00 2001 From: ArrayIterator Date: Fri, 20 Oct 2023 05:06:00 +0700 Subject: [PATCH] add enhancements --- Controllers/Api/User/Upload/MediaUpload.php | 1 + Core.php | 1 - SubModules/Templates/Middlewares/TemplateMiddleware.php | 1 - SubModules/Templates/Templates.php | 2 -- 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Controllers/Api/User/Upload/MediaUpload.php b/Controllers/Api/User/Upload/MediaUpload.php index 38264c9..1670b66 100644 --- a/Controllers/Api/User/Upload/MediaUpload.php +++ b/Controllers/Api/User/Upload/MediaUpload.php @@ -4,6 +4,7 @@ namespace ArrayAccess\TrayDigita\App\Modules\Core\Controllers\Api\User\Upload; use ArrayAccess\TrayDigita\App\Modules\Core\Controllers\Api\Abstracts\AbstractApiController; +use ArrayAccess\TrayDigita\App\Modules\Core\SubModules\Api\Attributes\UserAPI; use ArrayAccess\TrayDigita\App\Modules\Media\Media; use ArrayAccess\TrayDigita\App\Modules\Users\Users; use ArrayAccess\TrayDigita\Exceptions\InvalidArgument\UnsupportedArgumentException; diff --git a/Core.php b/Core.php index 08238c6..6b3ba70 100644 --- a/Core.php +++ b/Core.php @@ -54,7 +54,6 @@ use function array_flip; use function array_map; use function class_exists; -use function microtime; use function strtolower; use const DIRECTORY_SEPARATOR; use const PHP_INT_MIN; diff --git a/SubModules/Templates/Middlewares/TemplateMiddleware.php b/SubModules/Templates/Middlewares/TemplateMiddleware.php index 867cd63..188e595 100644 --- a/SubModules/Templates/Middlewares/TemplateMiddleware.php +++ b/SubModules/Templates/Middlewares/TemplateMiddleware.php @@ -11,7 +11,6 @@ use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use function is_string; -use function var_dump; use const PHP_INT_MAX; class TemplateMiddleware extends AbstractMiddleware diff --git a/SubModules/Templates/Templates.php b/SubModules/Templates/Templates.php index 75c21e9..3fc3c23 100644 --- a/SubModules/Templates/Templates.php +++ b/SubModules/Templates/Templates.php @@ -4,13 +4,11 @@ namespace ArrayAccess\TrayDigita\App\Modules\Core\SubModules\Templates; use ArrayAccess\TrayDigita\App\Modules\Core\Abstracts\CoreSubmoduleAbstract; -use ArrayAccess\TrayDigita\App\Modules\Core\SubModules\Option\Option; use ArrayAccess\TrayDigita\App\Modules\Core\SubModules\Templates\Middlewares\TemplateMiddleware; use ArrayAccess\TrayDigita\Kernel\Interfaces\KernelInterface; use ArrayAccess\TrayDigita\Templates\Middlewares\TemplateLoaderMiddleware; use ArrayAccess\TrayDigita\Templates\Wrapper; use ArrayAccess\TrayDigita\Util\Filter\ContainerHelper; -use function is_string; final class Templates extends CoreSubmoduleAbstract {