Skip to content
Permalink
Browse files

Remove unneeded use statements.

  • Loading branch information...
dereuromark committed Sep 17, 2014
1 parent 7e3ccbe commit 7af1654b1d833853a5bf76462547f01039250353
@@ -15,7 +15,6 @@
namespace Cake\Database\Expression;
use Cake\Database\ExpressionInterface;
use Cake\Database\Expression\QueryExpression;
use Cake\Database\ValueBinder;
/**
@@ -18,7 +18,6 @@
use Cake\Datasource\QueryCacher;
use Cake\Datasource\RepositoryInterface;
use Cake\Datasource\ResultSetDecorator;
use Cake\Event\Event;
/**
* Contains the characteristics for an object that is attached to a repository and
@@ -17,7 +17,6 @@
use Cake\Core\Configure;
use Cake\Error\Debugger;
use Cake\Log\Log;
use Cake\Network\Exception\InternalErrorException;
use Cake\Routing\Router;
/**
@@ -14,7 +14,6 @@
*/
namespace Cake\Error;
use Cake\Core\Configure;
use Cake\Log\Log;
use Cake\Utility\Hash;
use Cake\Utility\Security;
@@ -16,10 +16,8 @@
use Aura\Intl\Exception as LoadException;
use Aura\Intl\FormatterLocator;
use Aura\Intl\Package;
use Aura\Intl\PackageLocator;
use Aura\Intl\TranslatorFactory;
use Aura\Intl\TranslatorLocator;
use Cake\I18n\Formatter\IcuFormatter;
use Cake\I18n\Formatter\SprintfFormatter;
use Locale;
@@ -15,7 +15,6 @@
namespace Cake\Log\Engine;
use Cake\Console\ConsoleOutput;
use Cake\Core\Exception\Exception;
use InvalidArgumentException;
/**
@@ -18,7 +18,6 @@
use Cake\Network\Exception\NotFoundException;
use Cake\Filesystem\File;
use InvalidArgumentException;
use RuntimeException;
/**
* Cake Response is responsible for managing the response text, status and headers of a HTTP response.
@@ -14,7 +14,6 @@
*/
namespace Cake\Routing;
use Cake\Core\App;
use Cake\Core\Configure;
use Cake\Network\Request;
use Cake\Routing\RouteBuilder;
@@ -16,7 +16,6 @@
use Cake\Shell\Task\BakeTask;
use Cake\Core\Configure;
use Cake\Core\Plugin;
use Cake\Utility\Inflector;
/**
@@ -18,12 +18,7 @@
*/
namespace Cake\Shell;
use Cake\Console\ConsoleOptionParser;
use Cake\Console\Shell;
use Cake\TestSuite\TestLoader;
use Cake\TestSuite\TestSuiteCommand;
use Cake\TestSuite\TestSuiteDispatcher;
use Cake\Utility\Inflector;
/**
* Stub that tells people how to run tests with PHPUnit.
@@ -353,7 +353,7 @@ protected function _testAction($url = '', $options = array()) {
* @throws \Cake\Controller\Error\MissingControllerException When controllers could not be created.
* @throws \Cake\Controller\Error\MissingComponentException When components could not be created.
*/
public function generate($controller, array $mocks = array(), $request = null) {
public function generate($controller, array $mocks = array(), Request $request = null) {
$className = App::className($controller, 'Controller', 'Controller');
if (!$className) {
list($plugin, $controller) = pluginSplit($controller);
@@ -15,7 +15,6 @@
namespace Cake\TestSuite\Fixture;
use Cake\Core\Configure;
use Cake\Core\Plugin;
use Cake\Database\Connection;
use Cake\Datasource\ConnectionManager;
use Cake\Core\Exception\Exception;
@@ -53,7 +52,7 @@ class FixtureManager {
/**
* Inspects the test to look for unloaded fixtures and loads them
*
* @param \Cake\TestSuite\TestCase $test the test case to inspect
* @param \Cake\TestSuite\TestCase $test The test case to inspect.
* @return void
*/
public function fixturize($test) {
@@ -123,7 +122,7 @@ protected function _initDb() {
/**
* Looks for fixture files and instantiates the classes accordingly
*
* @param \Cake\TestSuite\Testcase $test The test suite to load fixtures for.
* @param \Cake\TestSuite\TestCase $test The test suite to load fixtures for.
* @return void
* @throws \UnexpectedValueException when a referenced fixture does not exist.
*/
@@ -210,7 +209,7 @@ protected function _setupTable(TestFixture $fixture, Connection $db, array $sour
/**
* Creates the fixtures tables and inserts data on them.
*
* @param \Cake\TestSuite\TestCase $test the test to inspect for fixture loading
* @param \Cake\TestSuite\TestCase $test The test to inspect for fixture loading.
* @return void
* @throws \Cake\Core\Exception\Exception When fixture records cannot be inserted.
*/
@@ -290,7 +289,7 @@ protected function _fixtureConnections($fixtures) {
/**
* Truncates the fixtures tables
*
* @param \Cake\TestSuite\TestCase $test the test to inspect for fixture unloading
* @param \Cake\TestSuite\TestCase $test The test to inspect for fixture unloading.
* @return void
*/
public function unload($test) {

0 comments on commit 7af1654

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