From 31112a12309af706c0a28d3fe225fc75db895df5 Mon Sep 17 00:00:00 2001 From: esyede Date: Sat, 8 Jul 2023 20:35:29 +0700 Subject: [PATCH] System: remove unused imports --- application/commands/inspire.php | 2 -- application/composers.php | 2 -- application/controllers/home.php | 3 --- application/events.php | 3 --- application/middlewares.php | 6 ------ .../2022_09_17_193839_create_users_table.php | 2 -- ...2_09_17_193855_create_password_resets_table.php | 2 -- application/models/user.php | 2 -- application/routes.php | 2 -- packages/docs/controllers/home.php | 4 ---- .../commands/stubs/auth/controllers/dashboard.stub | 3 --- .../commands/stubs/auth/controllers/login.stub | 7 ------- .../commands/stubs/auth/controllers/password.stub | 14 -------------- .../commands/stubs/auth/controllers/register.stub | 10 ---------- system/console/commands/stubs/command.stub | 2 -- system/console/commands/stubs/controller.stub | 2 -- system/console/commands/stubs/failed_jobs.stub | 3 --- system/console/commands/stubs/jobs.stub | 3 --- system/console/commands/stubs/migrate.stub | 2 -- system/console/commands/stubs/model.stub | 2 -- system/console/commands/stubs/resource.stub | 2 -- system/console/commands/stubs/session.stub | 3 --- 22 files changed, 81 deletions(-) diff --git a/application/commands/inspire.php b/application/commands/inspire.php index d14d4b4c..09d07888 100644 --- a/application/commands/inspire.php +++ b/application/commands/inspire.php @@ -2,8 +2,6 @@ defined('DS') or exit('No direct script access.'); -use System\Console\Commands\Command; - class Inspire_Command extends Command { /** diff --git a/application/composers.php b/application/composers.php index 180a8b16..b5a19824 100644 --- a/application/composers.php +++ b/application/composers.php @@ -2,8 +2,6 @@ defined('DS') or exit('No direct script access.'); -use System\View; - /* |-------------------------------------------------------------------------- | View Composer diff --git a/application/controllers/home.php b/application/controllers/home.php index ce97bc2c..633217f3 100644 --- a/application/controllers/home.php +++ b/application/controllers/home.php @@ -2,9 +2,6 @@ defined('DS') or exit('No direct script access.'); -use System\Routing\Controller; -use System\View; - class Home_Controller extends Controller { /** diff --git a/application/events.php b/application/events.php index 5955bcef..8df38cee 100644 --- a/application/events.php +++ b/application/events.php @@ -2,9 +2,6 @@ defined('DS') or exit('No direct script access.'); -use System\Event; -use System\Response; - /* |-------------------------------------------------------------------------- | Events diff --git a/application/middlewares.php b/application/middlewares.php index f488f7f3..fb177d5d 100644 --- a/application/middlewares.php +++ b/application/middlewares.php @@ -2,12 +2,6 @@ defined('DS') or exit('No direct script access.'); -use System\Routing\Route; -use System\Request; -use System\Response; -use System\Auth; -use System\Routing\Throttle; - /* |-------------------------------------------------------------------------- | Middleware diff --git a/application/migrations/2022_09_17_193839_create_users_table.php b/application/migrations/2022_09_17_193839_create_users_table.php index ea336804..19dbfdfe 100644 --- a/application/migrations/2022_09_17_193839_create_users_table.php +++ b/application/migrations/2022_09_17_193839_create_users_table.php @@ -2,8 +2,6 @@ defined('DS') or exit('No direct script access.'); -use System\Database\Schema; - class Create_Users_Table { /** diff --git a/application/migrations/2022_09_17_193855_create_password_resets_table.php b/application/migrations/2022_09_17_193855_create_password_resets_table.php index 33e840de..f760e811 100644 --- a/application/migrations/2022_09_17_193855_create_password_resets_table.php +++ b/application/migrations/2022_09_17_193855_create_password_resets_table.php @@ -2,8 +2,6 @@ defined('DS') or exit('No direct script access.'); -use System\Database\Schema; - class Create_Password_Resets_Table { /** diff --git a/application/models/user.php b/application/models/user.php index ebf5511c..5e596a71 100644 --- a/application/models/user.php +++ b/application/models/user.php @@ -2,8 +2,6 @@ defined('DS') or exit('No direct script access.'); -use System\Database\Facile\Model as Facile; - class User extends Facile { /** diff --git a/application/routes.php b/application/routes.php index 87f80f5a..e011baa0 100644 --- a/application/routes.php +++ b/application/routes.php @@ -2,8 +2,6 @@ defined('DS') or exit('No direct script access.'); -use System\Routing\Route; - /* |-------------------------------------------------------------------------- | Route diff --git a/packages/docs/controllers/home.php b/packages/docs/controllers/home.php index 84cb0068..76ac17ef 100644 --- a/packages/docs/controllers/home.php +++ b/packages/docs/controllers/home.php @@ -2,10 +2,6 @@ defined('DS') or exit('No direct script access.'); -use System\Routing\Controller; -use System\Request; -use System\View; -use System\Response; use Docs\Libraries\Docs; class Docs_Home_Controller extends Controller diff --git a/system/console/commands/stubs/auth/controllers/dashboard.stub b/system/console/commands/stubs/auth/controllers/dashboard.stub index 12cbe710..b023618c 100644 --- a/system/console/commands/stubs/auth/controllers/dashboard.stub +++ b/system/console/commands/stubs/auth/controllers/dashboard.stub @@ -2,9 +2,6 @@ defined('DS') or exit('No direct script access.'); -use System\Routing\Controller; -use System\View; - class Dashboard_Controller extends Controller { /** diff --git a/system/console/commands/stubs/auth/controllers/login.stub b/system/console/commands/stubs/auth/controllers/login.stub index 0a666181..bd42543b 100644 --- a/system/console/commands/stubs/auth/controllers/login.stub +++ b/system/console/commands/stubs/auth/controllers/login.stub @@ -2,13 +2,6 @@ defined('DS') or exit('No direct script access.'); -use System\Routing\Controller; -use System\View; -use System\Validator; -use System\Redirect; -use System\Input; -use System\Auth; - class Auth_Login_Controller extends Controller { /** diff --git a/system/console/commands/stubs/auth/controllers/password.stub b/system/console/commands/stubs/auth/controllers/password.stub index ca043a86..4cfe0a7d 100644 --- a/system/console/commands/stubs/auth/controllers/password.stub +++ b/system/console/commands/stubs/auth/controllers/password.stub @@ -2,20 +2,6 @@ defined('DS') or exit('No direct script access.'); -use System\Routing\Controller; -use System\View; -use System\Validator; -use System\Redirect; -use System\Input; -use System\Auth; -use System\Database as DB; -use System\Email; -use System\URI; -use System\Response; -use System\Hash; -use System\Date; -use System\Str; - class Auth_Password_Controller extends Controller { /** diff --git a/system/console/commands/stubs/auth/controllers/register.stub b/system/console/commands/stubs/auth/controllers/register.stub index 8190c7b5..3c06f940 100644 --- a/system/console/commands/stubs/auth/controllers/register.stub +++ b/system/console/commands/stubs/auth/controllers/register.stub @@ -2,16 +2,6 @@ defined('DS') or exit('No direct script access.'); -use System\Routing\Controller; -use System\View; -use System\Validator; -use System\Redirect; -use System\Database as DB; -use System\Input; -use System\Auth; -use System\Hash; -use System\Date; - class Auth_Register_Controller extends Controller { /** diff --git a/system/console/commands/stubs/command.stub b/system/console/commands/stubs/command.stub index 7e7b68a3..a694a0bf 100644 --- a/system/console/commands/stubs/command.stub +++ b/system/console/commands/stubs/command.stub @@ -2,8 +2,6 @@ defined('DS') or exit('No direct script access.'); -use System\Console\Commands\Command; - class stub_class extends Command { /** diff --git a/system/console/commands/stubs/controller.stub b/system/console/commands/stubs/controller.stub index 90be6cc7..c8109bd8 100644 --- a/system/console/commands/stubs/controller.stub +++ b/system/console/commands/stubs/controller.stub @@ -2,8 +2,6 @@ defined('DS') or exit('No direct script access.'); -use System\Routing\Controller; - class stub_class_Controller extends Controller { /** diff --git a/system/console/commands/stubs/failed_jobs.stub b/system/console/commands/stubs/failed_jobs.stub index 4d75724a..57df8904 100644 --- a/system/console/commands/stubs/failed_jobs.stub +++ b/system/console/commands/stubs/failed_jobs.stub @@ -2,9 +2,6 @@ defined('DS') or exit('No direct script access.'); -use System\Config; -use System\Database\Schema; - class Create_Failed_Jobs_Table { /** diff --git a/system/console/commands/stubs/jobs.stub b/system/console/commands/stubs/jobs.stub index 88e368f0..3ec13acc 100644 --- a/system/console/commands/stubs/jobs.stub +++ b/system/console/commands/stubs/jobs.stub @@ -2,9 +2,6 @@ defined('DS') or exit('No direct script access.'); -use System\Config; -use System\Database\Schema; - class Create_Jobs_Table { /** diff --git a/system/console/commands/stubs/migrate.stub b/system/console/commands/stubs/migrate.stub index d88d206e..0d02efc3 100644 --- a/system/console/commands/stubs/migrate.stub +++ b/system/console/commands/stubs/migrate.stub @@ -2,8 +2,6 @@ defined('DS') or exit('No direct script access.'); -use System\Database\Schema; - class stub_class { /** diff --git a/system/console/commands/stubs/model.stub b/system/console/commands/stubs/model.stub index dda8b2b8..151377dc 100644 --- a/system/console/commands/stubs/model.stub +++ b/system/console/commands/stubs/model.stub @@ -2,8 +2,6 @@ defined('DS') or exit('No direct script access.'); -use System\Database\Facile\Model as Facile; - class stub_class extends Facile { // .. diff --git a/system/console/commands/stubs/resource.stub b/system/console/commands/stubs/resource.stub index 89d05931..f81d7896 100644 --- a/system/console/commands/stubs/resource.stub +++ b/system/console/commands/stubs/resource.stub @@ -2,8 +2,6 @@ defined('DS') or exit('No direct script access.'); -use System\Routing\Controller; - class stub_class_Controller extends Controller { public $restful = true; diff --git a/system/console/commands/stubs/session.stub b/system/console/commands/stubs/session.stub index ae93628a..208f9785 100644 --- a/system/console/commands/stubs/session.stub +++ b/system/console/commands/stubs/session.stub @@ -2,9 +2,6 @@ defined('DS') or exit('No direct script access.'); -use System\Config; -use System\Database\Schema; - class Create_Session_Table { /**