Skip to content

Commit 72a4af7

Browse files
committed
Correct order of use statements PhpCS cleanup
Signed-off-by: Joey Smith <jsmith@webinertia.net> Signed-off-by: Joey Smith <jsmith@webinertia.net>
1 parent 0134f17 commit 72a4af7

22 files changed

+37
-37
lines changed

src/Container/AdapterFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace PhpDb\Adapter\Mysql\Container;
66

7+
use Laminas\ServiceManager\Exception\ServiceNotFoundException;
78
use PhpDb\Adapter\Adapter;
89
use PhpDb\Adapter\AdapterInterface;
910
use PhpDb\Adapter\Driver\DriverInterface;
@@ -13,7 +14,6 @@
1314
use PhpDb\Adapter\Profiler\ProfilerInterface;
1415
use PhpDb\Container\AdapterManager;
1516
use PhpDb\ResultSet\ResultSetInterface;
16-
use Laminas\ServiceManager\Exception\ServiceNotFoundException;
1717
use Psr\Container\ContainerInterface;
1818

1919
use function sprintf;

src/Container/AdapterManagerDelegator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
namespace PhpDb\Adapter\Mysql\Container;
66

7+
use Laminas\ServiceManager\Factory\DelegatorFactoryInterface;
8+
use Laminas\ServiceManager\Factory\InvokableFactory;
79
use PhpDb\Adapter\AdapterInterface;
810
use PhpDb\Adapter\Driver\DriverInterface;
911
use PhpDb\Adapter\Driver\Pdo\Result;
@@ -14,8 +16,6 @@
1416
use PhpDb\Adapter\Profiler;
1517
use PhpDb\Container\AdapterManager;
1618
use PhpDb\ResultSet;
17-
use Laminas\ServiceManager\Factory\DelegatorFactoryInterface;
18-
use Laminas\ServiceManager\Factory\InvokableFactory;
1919
use Psr\Container\ContainerInterface;
2020

2121
final class AdapterManagerDelegator implements DelegatorFactoryInterface

src/Container/PlatformInterfaceFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
namespace PhpDb\Adapter\Mysql\Container;
66

7+
use mysqli;
8+
use PDO;
79
use PhpDb\Adapter\Driver\DriverInterface;
810
use PhpDb\Adapter\Mysql\Platform\Mysql;
911
use PhpDb\Adapter\Platform\PlatformInterface;
1012
use PhpDb\Container\AdapterManager;
11-
use mysqli;
12-
use PDO;
1313
use Psr\Container\ContainerInterface;
1414

1515
final class PlatformInterfaceFactory

src/Driver/Mysqli/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
namespace PhpDb\Adapter\Mysql\Driver\Mysqli;
66

77
use Exception as GenericException;
8+
use Override;
89
use PhpDb\Adapter\Driver\AbstractConnection;
910
use PhpDb\Adapter\Driver\ConnectionInterface;
1011
use PhpDb\Adapter\Driver\DriverAwareInterface;
1112
use PhpDb\Adapter\Driver\DriverInterface;
1213
use PhpDb\Adapter\Driver\ResultInterface;
1314
use PhpDb\Adapter\Exception;
1415
use PhpDb\Adapter\Exception\InvalidArgumentException;
15-
use Override;
1616

1717
use function constant;
1818
use function defined;

src/Driver/Mysqli/Mysqli.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace PhpDb\Adapter\Mysql\Driver\Mysqli;
66

7+
use mysqli_stmt;
78
use PhpDb\Adapter\Driver\ConnectionInterface;
89
use PhpDb\Adapter\Driver\DriverAwareInterface;
910
use PhpDb\Adapter\Driver\DriverInterface;
@@ -13,7 +14,6 @@
1314
use PhpDb\Adapter\Mysql\DatabasePlatformNameTrait;
1415
use PhpDb\Adapter\Profiler\ProfilerAwareInterface;
1516
use PhpDb\Adapter\Profiler\ProfilerInterface;
16-
use mysqli_stmt;
1717

1818
use function array_intersect_key;
1919
use function array_merge;

src/Driver/Mysqli/Result.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
namespace PhpDb\Adapter\Mysql\Driver\Mysqli;
66

77
use Iterator;
8-
use PhpDb\Adapter\Driver\ResultInterface;
9-
use PhpDb\Adapter\Exception;
108
use mysqli;
119
use mysqli_result;
1210
use mysqli_stmt;
1311
use Override;
12+
use PhpDb\Adapter\Driver\ResultInterface;
13+
use PhpDb\Adapter\Exception;
1414
// phpcs:ignore SlevomatCodingStandard.Namespaces.UnusedUses.UnusedUse
1515
use ReturnTypeWillChange;
1616

src/Driver/Mysqli/Statement.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
namespace PhpDb\Adapter\Mysql\Driver\Mysqli;
66

7+
use mysqli_stmt;
8+
use Override;
79
use PhpDb\Adapter\Driver\DriverAwareInterface;
810
use PhpDb\Adapter\Driver\DriverInterface;
911
use PhpDb\Adapter\Driver\ResultInterface;
@@ -13,8 +15,6 @@
1315
use PhpDb\Adapter\Profiler\ProfilerAwareInterface;
1416
use PhpDb\Adapter\Profiler\ProfilerInterface;
1517
use PhpDb\Adapter\StatementContainerInterface;
16-
use mysqli_stmt;
17-
use Override;
1818

1919
use function array_unshift;
2020
use function call_user_func_array;

src/Driver/Pdo/Connection.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
namespace PhpDb\Adapter\Mysql\Driver\Pdo;
66

7-
use PhpDb\Adapter\Driver\ConnectionInterface;
8-
use PhpDb\Adapter\Driver\Pdo\AbstractPdoConnection;
9-
use PhpDb\Adapter\Exception;
107
use Override;
118
use PDO;
129
use PDOException;
1310
use PDOStatement;
11+
use PhpDb\Adapter\Driver\ConnectionInterface;
12+
use PhpDb\Adapter\Driver\Pdo\AbstractPdoConnection;
13+
use PhpDb\Adapter\Exception;
1414

1515
use function array_diff_key;
1616
use function implode;

src/Driver/Pdo/Pdo.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
namespace PhpDb\Adapter\Mysql\Driver\Pdo;
66

7+
use Override;
8+
use PDOStatement;
79
use PhpDb\Adapter\Driver\Pdo\AbstractPdo;
810
use PhpDb\Adapter\Driver\Pdo\Result;
911
use PhpDb\Adapter\Driver\ResultInterface;
1012
use PhpDb\Adapter\Mysql\DatabasePlatformNameTrait;
11-
use Override;
12-
use PDOStatement;
1313

1414
class Pdo extends AbstractPdo
1515
{

src/Platform/Mysql.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
namespace PhpDb\Adapter\Mysql\Platform;
66

7+
use mysqli;
8+
use Override;
9+
use PDO;
710
use PhpDb\Adapter\Driver\DriverInterface;
811
use PhpDb\Adapter\Mysql\Sql\Platform\Mysql\Mysql as SqlPlatform;
912
use PhpDb\Adapter\Platform\AbstractPlatform;
1013
use PhpDb\Sql\Platform\PlatformDecoratorInterface;
11-
use mysqli;
12-
use Override;
13-
use PDO;
1414

1515
use function implode;
1616
use function str_replace;

0 commit comments

Comments
 (0)