Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

Commit

Permalink
Optimize imports in libraries (#25315)
Browse files Browse the repository at this point in the history
  • Loading branch information
laoneo authored and wilsonge committed Jun 24, 2019
1 parent f52583b commit dd2caac
Show file tree
Hide file tree
Showing 19 changed files with 9 additions and 28 deletions.
1 change: 0 additions & 1 deletion libraries/src/Application/SiteApplication.php
Expand Up @@ -19,7 +19,6 @@
use Joomla\CMS\Input\Input;
use Joomla\CMS\Language\LanguageHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Menu\AbstractMenu;
use Joomla\CMS\Pathway\Pathway;
use Joomla\CMS\Plugin\PluginHelper;
use Joomla\CMS\Router\Route;
Expand Down
1 change: 0 additions & 1 deletion libraries/src/Authentication/Authentication.php
Expand Up @@ -13,7 +13,6 @@
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Log\Log;
use Joomla\CMS\Object\CMSObject;
use Joomla\CMS\Plugin\PluginHelper;
use Joomla\Event\DispatcherAwareTrait;
use Joomla\Event\DispatcherInterface;
Expand Down
1 change: 0 additions & 1 deletion libraries/src/Categories/CategoryServiceTrait.php
Expand Up @@ -10,7 +10,6 @@

defined('JPATH_PLATFORM') or die;

use Joomla\CMS\Factory;
use Joomla\CMS\Form\Form;
use Joomla\CMS\Helper\ContentHelper;

Expand Down
2 changes: 0 additions & 2 deletions libraries/src/Changelog/Changelog.php
Expand Up @@ -10,8 +10,6 @@

defined('JPATH_PLATFORM') or die;

use Joomla\CMS\Factory;
use Joomla\CMS\Filter\InputFilter;
use Joomla\CMS\Http\HttpFactory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Log\Log;
Expand Down
1 change: 0 additions & 1 deletion libraries/src/Component/ComponentHelper.php
Expand Up @@ -19,7 +19,6 @@
use Joomla\CMS\Factory;
use Joomla\CMS\Filter\InputFilter;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Log\Log;
use Joomla\CMS\Profiler\Profiler;
use Joomla\Registry\Registry;

Expand Down
2 changes: 0 additions & 2 deletions libraries/src/Installer/Adapter/LibraryAdapter.php
Expand Up @@ -12,8 +12,6 @@

use Joomla\CMS\Filesystem\File;
use Joomla\CMS\Filesystem\Folder;
use Joomla\CMS\Filesystem\Path;
use Joomla\CMS\Filter\InputFilter;
use Joomla\CMS\Installer\Installer;
use Joomla\CMS\Installer\InstallerAdapter;
use Joomla\CMS\Installer\Manifest\LibraryManifest;
Expand Down
2 changes: 1 addition & 1 deletion libraries/src/Installer/InstallerHelper.php
Expand Up @@ -19,8 +19,8 @@
use Joomla\CMS\Language\Text;
use Joomla\CMS\Log\Log;
use Joomla\CMS\Plugin\PluginHelper;
use Joomla\CMS\Version;
use Joomla\CMS\Updater\Update;
use Joomla\CMS\Version;

/**
* Installer helper class
Expand Down
1 change: 0 additions & 1 deletion libraries/src/MVC/Controller/AdminController.php
Expand Up @@ -16,7 +16,6 @@
use Joomla\CMS\MVC\Factory\MVCFactoryInterface;
use Joomla\CMS\MVC\Model\BaseDatabaseModel;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Session\Session;
use Joomla\Utilities\ArrayHelper;

/**
Expand Down
2 changes: 0 additions & 2 deletions libraries/src/MVC/Factory/ApiMVCFactory.php
Expand Up @@ -8,8 +8,6 @@

namespace Joomla\CMS\MVC\Factory;

use Joomla\CMS\Factory;

defined('JPATH_PLATFORM') or die;

/**
Expand Down
2 changes: 1 addition & 1 deletion libraries/src/MVC/Model/AdminModel.php
Expand Up @@ -14,6 +14,7 @@
use Joomla\CMS\Factory;
use Joomla\CMS\Form\FormFactoryInterface;
use Joomla\CMS\Language\Associations;
use Joomla\CMS\Language\LanguageHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Log\Log;
use Joomla\CMS\MVC\Factory\MVCFactoryInterface;
Expand All @@ -25,7 +26,6 @@
use Joomla\Registry\Registry;
use Joomla\String\StringHelper;
use Joomla\Utilities\ArrayHelper;
use Joomla\CMS\Language\LanguageHelper;

/**
* Prototype admin model.
Expand Down
9 changes: 4 additions & 5 deletions libraries/src/MVC/Model/FormModel.php
Expand Up @@ -10,16 +10,15 @@

defined('JPATH_PLATFORM') or die;

use Joomla\CMS\Factory;
use Joomla\CMS\Filter\InputFilter;
use Joomla\CMS\Form\Form;
use Joomla\CMS\Form\FormRule;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\Factory\MVCFactoryInterface;
use Joomla\CMS\Factory;
use Joomla\CMS\Form\FormFactoryAwareInterface;
use Joomla\CMS\Form\FormFactoryAwareTrait;
use Joomla\CMS\Form\FormFactoryInterface;
use Joomla\Utilities\ArrayHelper;
use Joomla\CMS\Form\FormRule;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\Factory\MVCFactoryInterface;
use Joomla\CMS\Plugin\PluginHelper;

/**
Expand Down
1 change: 0 additions & 1 deletion libraries/src/MVC/Model/ListModel.php
Expand Up @@ -17,7 +17,6 @@
use Joomla\CMS\MVC\Factory\MVCFactoryInterface;
use Joomla\CMS\Pagination\Pagination;
use Joomla\Database\DatabaseQuery;
use Joomla\Utilities\ArrayHelper;

/**
* Model class for handling lists of items.
Expand Down
1 change: 0 additions & 1 deletion libraries/src/Menu/MenuItem.php
Expand Up @@ -10,7 +10,6 @@

defined('JPATH_PLATFORM') or die;

use Joomla\CMS\Menu\AbstractMenu;
use Joomla\CMS\Tree\NodeInterface;
use Joomla\CMS\Tree\NodeTrait;
use Joomla\Registry\Registry;
Expand Down
2 changes: 1 addition & 1 deletion libraries/src/Router/ApiRouter.php
Expand Up @@ -13,8 +13,8 @@
use Joomla\CMS\Application\CMSApplicationInterface;
use Joomla\CMS\Router\Exception\RouteNotFoundException;
use Joomla\CMS\Uri\Uri;
use Joomla\Router\Router;
use Joomla\Router\Route;
use Joomla\Router\Router;

/**
* Joomla! API Router class
Expand Down
1 change: 0 additions & 1 deletion libraries/src/Router/SiteRouter.php
Expand Up @@ -18,7 +18,6 @@
use Joomla\CMS\Factory;
use Joomla\CMS\Menu\AbstractMenu;
use Joomla\CMS\Uri\Uri;
use Joomla\String\StringHelper;

/**
* Class to create and parse routes for the site application
Expand Down
1 change: 0 additions & 1 deletion libraries/src/Table/Content.php
Expand Up @@ -10,7 +10,6 @@

defined('JPATH_PLATFORM') or die;

use Joomla\CMS\Access\Access;
use Joomla\CMS\Access\Rules;
use Joomla\CMS\Application\ApplicationHelper;
use Joomla\CMS\Factory;
Expand Down
3 changes: 0 additions & 3 deletions libraries/src/Tree/NodeTrait.php
Expand Up @@ -10,9 +10,6 @@

defined('JPATH_PLATFORM') or die;

use Joomla\CMS\Tree\ImmutableNodeTrait;
use Joomla\CMS\Tree\NodeInterface;

/**
* Defines the trait for a Node Interface Trait Class.
*
Expand Down
2 changes: 1 addition & 1 deletion libraries/src/WebAsset/WebAssetManager.php
Expand Up @@ -12,8 +12,8 @@

use Joomla\CMS\Document\Document;
use Joomla\CMS\Event\AbstractEvent;
use Joomla\CMS\WebAsset\Exception\UnknownAssetException;
use Joomla\CMS\WebAsset\Exception\InvalidActionException;
use Joomla\CMS\WebAsset\Exception\UnknownAssetException;
use Joomla\CMS\WebAsset\Exception\UnsatisfiedDependencyException;
use Joomla\Event\DispatcherAwareInterface;
use Joomla\Event\DispatcherAwareTrait;
Expand Down
2 changes: 1 addition & 1 deletion libraries/src/WebAsset/WebAssetManagerInterface.php
Expand Up @@ -11,9 +11,9 @@
defined('JPATH_PLATFORM') or die;

use Joomla\CMS\Document\Document;
use Joomla\CMS\WebAsset\Exception\InvalidActionException;
use Joomla\CMS\WebAsset\Exception\UnknownAssetException;
use Joomla\CMS\WebAsset\Exception\UnsatisfiedDependencyException;
use Joomla\CMS\WebAsset\Exception\InvalidActionException;

/**
* Web Asset Manager Interface
Expand Down

0 comments on commit dd2caac

Please sign in to comment.