Skip to content
Permalink
Browse files

Remove unneeded "use" statements.

  • Loading branch information...
ADmad committed Oct 9, 2017
1 parent b528f4b commit 0247146f3163ebd04c07780d8ace0e99ab3ea6ba
@@ -16,7 +16,6 @@
use Cake\Console\Exception\ConsoleException;
use Cake\Console\Exception\StopException;
use Cake\Core\Configure;
use Cake\Core\Plugin;
use Cake\Datasource\ModelAwareTrait;
use Cake\Filesystem\File;
@@ -18,7 +18,6 @@
use Cake\Controller\ComponentRegistry;
use Cake\Datasource\Exception\PageOutOfBoundsException;
use Cake\Datasource\Paginator;
use Cake\Datasource\QueryInterface;
use Cake\Network\Exception\NotFoundException;
use InvalidArgumentException;
@@ -13,7 +13,6 @@
*/
namespace Cake\Http\Client;
use Cake\Http\Cookie\Cookie;
// This alias is necessary to avoid class name conflicts
// with the deprecated class in this namespace.
use Cake\Http\Cookie\CookieCollection as CookiesCollection;
@@ -18,7 +18,6 @@
use DateTimeImmutable;
use DateTimezone;
use InvalidArgumentException;
use RuntimeException;
/**
* Cookie object to build a cookie and turn it into a header value
@@ -14,7 +14,6 @@
namespace Cake\Http\Cookie;
use ArrayIterator;
use Cake\Http\Client\Response as ClientResponse;
use Countable;
use DateTimeImmutable;
use DateTimeZone;
@@ -12,8 +12,6 @@
*/
namespace Cake\I18n;
use Aura\Intl\FormatterInterface;
use Aura\Intl\Package;
use Aura\Intl\Translator as BaseTranslator;
/**
@@ -18,7 +18,6 @@
use Cake\Http\MiddlewareQueue;
use Cake\Http\Runner;
use Cake\Routing\Exception\RedirectException;
use Cake\Routing\RouteBuilder;
use Cake\Routing\Router;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
@@ -15,10 +15,8 @@
namespace Cake\Routing;
use Cake\Core\Configure;
use Cake\Http\MiddlewareQueue;
use Cake\Http\ServerRequest;
use Cake\Utility\Inflector;
use InvalidArgumentException;
use Psr\Http\Message\ServerRequestInterface;
/**
@@ -8,7 +8,6 @@ class_alias('PHPUnit_Framework_Constraint', 'PHPUnit\Framework\Constraint\Constr
class_alias('PHPUnit_Framework_AssertionFailedError', 'PHPUnit\Framework\AssertionFailedError');
}
use Cake\Event\EventManager;
use PHPUnit\Framework\AssertionFailedError;
use PHPUnit\Framework\Constraint\Constraint;
@@ -9,7 +9,6 @@ class_alias('PHPUnit_Framework_AssertionFailedError', 'PHPUnit\Framework\Asserti
}
use Cake\Event\Event;
use Cake\Event\EventManager;
use PHPUnit\Framework\AssertionFailedError;
use PHPUnit\Framework\Constraint\Constraint;
@@ -16,7 +16,6 @@
use Cake\Core\Configure;
use Cake\Core\Exception\Exception;
use Cake\Form\Form;
use Cake\Routing\Router;
use Cake\Utility\Hash;
use Cake\Utility\Inflector;
@@ -18,7 +18,6 @@
use Cake\Cache\CacheRegistry;
use Cake\Cache\Engine\FileEngine;
use Cake\Cache\Engine\NullEngine;
use Cake\Core\Configure;
use Cake\Core\Plugin;
use Cake\TestSuite\TestCase;
use InvalidArgumentException;
@@ -17,7 +17,6 @@
use Cake\Database\Driver\Postgres;
use Cake\Database\Schema\Collection as SchemaCollection;
use Cake\Database\Schema\PostgresSchema;
use Cake\Database\Schema\Table;
use Cake\Database\Schema\TableSchema;
use Cake\Datasource\ConnectionManager;
use Cake\TestSuite\TestCase;
@@ -16,7 +16,6 @@
use Cake\Core\Configure;
use Cake\Core\Plugin;
use Cake\Error;
use Cake\Error\ErrorHandler;
use Cake\Error\PHP7ErrorException;
use Cake\Http\ServerRequest;
@@ -21,7 +21,6 @@
use Cake\TestSuite\TestCase;
use LogicException;
use Psr\Log\LoggerInterface;
use Zend\Diactoros\Request;
/**
* Test for ErrorHandlerMiddleware
@@ -14,7 +14,6 @@
namespace Cake\Test\TestCase\Event;
use Cake\Event\EventDispatcherTrait;
use Cake\Event\EventManager;
use Cake\TestSuite\TestCase;
@@ -13,10 +13,8 @@
*/
namespace Cake\Test\TestCase\Http\Client;
use Cake\Chronos\Chronos;
use Cake\Http\Client\CookieCollection;
use Cake\Http\Client\Response;
use Cake\Http\Cookie\Cookie;
use Cake\TestSuite\TestCase;
/**
@@ -13,9 +13,7 @@
*/
namespace Cake\Test\TestCase\Http\Client;
use Cake\Chronos\Chronos;
use Cake\Http\Client\Response;
use Cake\Http\Cookie\Cookie;
use Cake\Http\Cookie\CookieCollection;
use Cake\TestSuite\TestCase;
@@ -13,7 +13,6 @@
namespace Cake\Test\TestCase\Http\Cookie;
use Cake\Http\Client\Request as ClientRequest;
use Cake\Http\Client\Response as ClientResponse;
use Cake\Http\Cookie\Cookie;
use Cake\Http\Cookie\CookieCollection;
use Cake\Http\Response;
@@ -16,7 +16,6 @@
include_once CORE_TEST_CASES . DS . 'Http' . DS . 'server_mocks.php';
use Cake\Chronos\Chronos;
use Cake\Http\Cookie\Cookie;
use Cake\Http\Cookie\CookieCollection;
use Cake\Http\Response;
@@ -17,7 +17,6 @@
namespace Cake\Test\TestCase\Network\Session;
use Cake\Datasource\ConnectionManager;
use Cake\Network\Session;
use Cake\Network\Session\DatabaseSession;
use Cake\ORM\Entity;
use Cake\ORM\TableRegistry;
@@ -14,7 +14,6 @@
*/
namespace Cake\Test\TestCase\ORM;
use Cake\ORM\Association;
use Cake\ORM\TableRegistry;
use Cake\TestSuite\TestCase;
@@ -15,7 +15,6 @@
namespace Cake\Test\TestCase\ORM;
use Cake\Core\Plugin;
use Cake\ORM\Association;
use Cake\ORM\Table;
use Cake\ORM\TableRegistry;
use Cake\TestSuite\TestCase;
@@ -13,7 +13,6 @@
*/
namespace Cake\Test\TestCase\Routing;
use Cake\Controller\Controller;
use Cake\Core\Configure;
use Cake\Core\Plugin;
use Cake\Http\Response;
@@ -22,7 +22,6 @@
use Cake\Routing\Route\RedirectRoute;
use Cake\Routing\Route\Route;
use Cake\TestSuite\TestCase;
use stdClass;
/**
* RouteBuilder test case
@@ -20,7 +20,6 @@
use Cake\Routing\RouteCollection;
use Cake\Routing\Route\Route;
use Cake\TestSuite\TestCase;
use \stdClass;
class RouteCollectionTest extends TestCase
{
@@ -16,7 +16,6 @@
use Cake\Core\Configure;
use Cake\Core\Plugin;
use Cake\Http\MiddlewareQueue;
use Cake\Http\ServerRequest;
use Cake\Http\ServerRequestFactory;
use Cake\Routing\RouteBuilder;
@@ -15,9 +15,7 @@
namespace Cake\Test\TestCase\Shell;
use Cake\Cache\Cache;
use Cake\Console\Exception\StopException;
use Cake\Console\Shell;
use Cake\Shell\CacheShell;
use Cake\TestSuite\ConsoleIntegrationTestCase;
/**
@@ -16,7 +16,6 @@
use Cake\Console\Shell;
use Cake\Routing\Router;
use Cake\Shell\RoutesShell;
use Cake\TestSuite\ConsoleIntegrationTestCase;
/**

0 comments on commit 0247146

Please sign in to comment.
You can’t perform that action at this time.