Skip to content
Browse files

Using one "use" per class

  • Loading branch information...
1 parent 1dbc4f4 commit 27c5b4e6c52c265e93b752541252d8953337295d @jrbasso jrbasso committed
View
8 lib/Cake/Model/Datasource/Database/Connection.php
@@ -2,10 +2,10 @@
namespace Cake\Model\Datasource\Database;
-use PDOException,
- Cake\Model\Datasource\Database\Exception\MissingDriverException,
- Cake\Model\Datasource\Database\Exception\MissingExtensionException,
- Cake\Model\Datasource\Database\Exception\MissingConnectionException;
+use Cake\Model\Datasource\Database\Exception\MissingConnectionException;
+use Cake\Model\Datasource\Database\Exception\MissingDriverException;
+use Cake\Model\Datasource\Database\Exception\MissingExtensionException;
+use PDOException;
/**
* Represents a connection with a database server
View
4 lib/Cake/Model/Datasource/Database/Driver/Mysql.php
@@ -2,8 +2,8 @@
namespace Cake\Model\Datasource\Database\Driver;
-use PDO,
- Cake\Model\Datasource\Database\Statement;
+use Cake\Model\Datasource\Database\Statement;
+use PDO;
class Mysql extends \Cake\Model\Datasource\Database\Driver {
View
6 lib/Cake/Model/Datasource/Database/Type.php
@@ -2,9 +2,9 @@
namespace Cake\Model\Datasource\Database;
-use PDO,
- Exception,
- Cake\Model\Datasource\Database\Driver;
+use Cake\Model\Datasource\Database\Driver;
+use Exception;
+use PDO;
/**
* Encapsulates all conversion functions for values coming from database into PHP and
View
4 lib/Cake/Test/TestCase/Model/Datasource/Database/ConnectionTest.php
@@ -17,8 +17,8 @@
*/
namespace Cake\Test\TestCase\Model\Datasource\Database;
-use Cake\Model\Datasource\Database\Connection,
- Cake\Core\Configure;
+use Cake\Core\Configure;
+use Cake\Model\Datasource\Database\Connection;
/**
* Tests Connection class
View
4 lib/Cake/Test/TestCase/Model/Datasource/Database/TypeTest.php
@@ -17,8 +17,8 @@
*/
namespace Cake\Test\TestCase\Model\Datasource\Database;
-use Cake\Model\Datasource\Database\Type,
- PDO;
+use Cake\Model\Datasource\Database\Type;
+use PDO;
/**
* Mock class for testing type registering

0 comments on commit 27c5b4e

Please sign in to comment.
Something went wrong with that request. Please try again.