From b3da3051664f61379868be8e33e6d925716a237f Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Mon, 11 Mar 2024 00:17:23 +0300 Subject: [PATCH] cleanup code --- .../src/Table/RevokedTableTrait.php | 33 ++----------------- 1 file changed, 2 insertions(+), 31 deletions(-) diff --git a/com_oauthserver/administrator/src/Table/RevokedTableTrait.php b/com_oauthserver/administrator/src/Table/RevokedTableTrait.php index 49bd4bd..191c5b8 100644 --- a/com_oauthserver/administrator/src/Table/RevokedTableTrait.php +++ b/com_oauthserver/administrator/src/Table/RevokedTableTrait.php @@ -11,42 +11,11 @@ namespace Webmasterskaya\Component\OauthServer\Administrator\Table; use Joomla\CMS\Event\AbstractEvent; use Joomla\CMS\Language\Text; -use Joomla\Database\DatabaseDriver; \defined('_JEXEC') or die; trait RevokedTableTrait { - /** - * @var string - * @since version - * @noinspection PhpMissingFieldTypeInspection - */ - protected $_tbl = ''; - - /** - * @var string - * @since version - * @noinspection PhpMissingFieldTypeInspection - */ - protected $_tbl_key = ''; - - /** - * @var array - * @since version - * @noinspection PhpMissingFieldTypeInspection - */ - protected $_tbl_keys = []; - - /** - * @var DatabaseDriver - * @since version - * @noinspection PhpMissingFieldTypeInspection - */ - protected $_db; - - abstract public function getDbo(); - public function revoke($pks = null): bool { // Pre-processing by observers @@ -154,6 +123,8 @@ trait RevokedTableTrait return true; } + abstract public function getDbo(); + abstract public function getDispatcher(); abstract public function setError($error);