mirror of
https://github.com/joomla/joomla-cms.git
synced 2024-06-17 09:35:35 +00:00
Adds a code style rule to check if there are unused imports (#41004)
* Adds a code style rule to check if there are unused imports * alignment
This commit is contained in:
parent
dab5efd098
commit
e7920e0b22
|
@ -78,6 +78,8 @@ $config
|
|||
'binary_operator_spaces' => ['operators' => ['=>' => 'align_single_space_minimal', '=' => 'align']],
|
||||
// The "No break" comment in switch statements
|
||||
'no_break_comment' => ['comment_text' => 'No break'],
|
||||
// Remove unused imports
|
||||
'no_unused_imports' => true,
|
||||
]
|
||||
)
|
||||
->setFinder($finder);
|
||||
|
|
|
@ -14,7 +14,6 @@ use Joomla\CMS\Component\ComponentHelper;
|
|||
use Joomla\CMS\Language\LanguageHelper;
|
||||
use Joomla\CMS\MVC\Model\ListModel;
|
||||
use Joomla\Database\DatabaseQuery;
|
||||
use Joomla\Database\QueryInterface;
|
||||
|
||||
// phpcs:disable PSR1.Files.SideEffects
|
||||
\defined('_JEXEC') or die;
|
||||
|
|
|
@ -16,7 +16,6 @@ use Joomla\CMS\Helper\ContentHelper;
|
|||
use Joomla\CMS\MVC\Model\ListModel;
|
||||
use Joomla\Database\DatabaseQuery;
|
||||
use Joomla\Database\ParameterType;
|
||||
use Joomla\Database\QueryInterface;
|
||||
|
||||
// phpcs:disable PSR1.Files.SideEffects
|
||||
\defined('_JEXEC') or die;
|
||||
|
|
|
@ -18,7 +18,6 @@ use Joomla\CMS\Helper\ModuleHelper;
|
|||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
use Joomla\CMS\Utility\Utility;
|
||||
use Joomla\Database\ParameterType;
|
||||
use Joomla\Registry\Registry;
|
||||
|
||||
// phpcs:disable PSR1.Files.SideEffects
|
||||
|
|
|
@ -12,7 +12,6 @@ namespace Joomla\CMS\Form\Field;
|
|||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\HTML\HTMLHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\Database\DatabaseQuery;
|
||||
use Joomla\Database\Exception\ExecutionFailureException;
|
||||
use Joomla\Database\QueryInterface;
|
||||
|
||||
|
|
|
@ -11,7 +11,6 @@ namespace Joomla\CMS\MVC\View;
|
|||
|
||||
use Joomla\CMS\Document\Document;
|
||||
use Joomla\CMS\Document\DocumentAwareInterface;
|
||||
use Joomla\CMS\Document\DocumentAwareTrait;
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\LanguageAwareInterface;
|
||||
use Joomla\CMS\Language\LanguageAwareTrait;
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use Joomla\Application\ApplicationInterface;
|
||||
use Joomla\CMS\Extension\PluginInterface;
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Plugin\PluginHelper;
|
||||
|
|
|
@ -15,7 +15,6 @@ use Joomla\CMS\Access\Access;
|
|||
use Joomla\CMS\Cache\Cache;
|
||||
use Joomla\CMS\Component\ComponentHelper;
|
||||
use Joomla\CMS\Extension\ExtensionHelper;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Log\Log;
|
||||
use Joomla\CMS\Mail\Exception\MailDisabledException;
|
||||
use Joomla\CMS\Mail\MailTemplate;
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
|
||||
namespace Joomla\Tests\Unit\Libraries\Cms\Layout;
|
||||
|
||||
use Joomla\CMS\Layout\BaseLayout;
|
||||
use Joomla\CMS\Mail\Mail;
|
||||
use Joomla\CMS\Mail\MailerFactory;
|
||||
use Joomla\Registry\Registry;
|
||||
|
|
Loading…
Reference in New Issue
Block a user