Skip to content

Commit 3964b27

Browse files
authored
Merge pull request #28 from tyrsson/update-namespaces
Updates namespaces in src and test.
2 parents 47f126d + 90c6d2c commit 3964b27

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+151
-148
lines changed

composer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"name": "php-db/phpdb-adapter-sqlite",
2+
"name": "php-db/phpdb-sqlite",
33
"description": "SQLite support for php-db",
44
"license": "BSD-3-Clause",
55
"keywords": [
66
"php-db",
77
"sqlite",
88
"db"
99
],
10-
"homepage": "https://github.com/php-db/phpdb-adapter-sqlite/discussions",
10+
"homepage": "https://github.com/php-db/phpdb-sqlite/discussions",
1111
"support": {
12-
"issues": "https://github.com/php-db/phpdb-adapter-sqlite/issues",
13-
"source": "https://github.com/php-db/phpdb-adapter-sqlite",
14-
"forum": "https://github.com/php-db/phpdb-adapter-sqlite/discussions"
12+
"issues": "https://github.com/php-db/phpdb-sqlite/issues",
13+
"source": "https://github.com/php-db/phpdb-sqlite",
14+
"forum": "https://github.com/php-db/phpdb-sqlite/discussions"
1515
},
1616
"minimum-stability": "dev",
1717
"prefer-stable": true,
@@ -26,7 +26,7 @@
2626
},
2727
"extra": {
2828
"laminas": {
29-
"config-provider": "PhpDb\\Adapter\\Sqlite\\ConfigProvider"
29+
"config-provider": "PhpDb\\Sqlite\\ConfigProvider"
3030
}
3131
},
3232
"require": {
@@ -47,13 +47,13 @@
4747
},
4848
"autoload": {
4949
"psr-4": {
50-
"PhpDb\\Adapter\\Sqlite\\": "src/"
50+
"PhpDb\\Sqlite\\": "src/"
5151
}
5252
},
5353
"autoload-dev": {
5454
"psr-4": {
55-
"PhpDbTest\\Adapter\\Sqlite\\": "test/unit/",
56-
"PhpDbIntegrationTest\\Adapter\\Sqlite\\": "test/integration/"
55+
"PhpDbTest\\Sqlite\\": "test/unit/",
56+
"PhpDbIntegrationTest\\Sqlite\\": "test/integration/"
5757
}
5858
},
5959
"scripts": {

composer.lock

Lines changed: 35 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpunit.xml.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
failOnNotice="true"
1010
failOnDeprecation="true"
1111
failOnWarning="true">
12+
13+
<coverage pathCoverage="true">
14+
</coverage>
1215
<testsuites>
1316
<testsuite name="unit test">
1417
<directory>./test/unit</directory>

src/AdapterPlatform.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
declare(strict_types=1);
44

5-
namespace PhpDb\Adapter\Sqlite;
5+
namespace PhpDb\Sqlite;
66

77
use Override;
88
use PDO;
99
use PhpDb\Adapter\Driver\PdoDriverInterface;
1010
use PhpDb\Adapter\Platform\AbstractPlatform;
11-
use PhpDb\Adapter\Sqlite\Sql\Platform;
1211
use PhpDb\Sql\Platform\PlatformDecoratorInterface;
12+
use PhpDb\Sqlite\Sql\Platform;
1313

1414
class AdapterPlatform extends AbstractPlatform
1515
{

src/ConfigProvider.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
declare(strict_types=1);
44

5-
namespace PhpDb\Adapter\Sqlite;
5+
namespace PhpDb\Sqlite;
66

7-
use PhpDb\Adapter\AdapterInterface;
87
use PhpDb\Adapter\Driver\Pdo\Result;
98
use PhpDb\Adapter\Driver\Pdo\Statement;
109
use PhpDb\Adapter\Driver\PdoConnectionInterface;

src/Container/MetadataInterfaceFactory.php

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

33
declare(strict_types=1);
44

5-
namespace PhpDb\Adapter\Sqlite\Container;
5+
namespace PhpDb\Sqlite\Container;
66

77
use PhpDb\Adapter\AdapterInterface;
88
use PhpDb\Adapter\SchemaAwareInterface;
9-
use PhpDb\Adapter\Sqlite\Metadata;
109
use PhpDb\Metadata\MetadataInterface;
10+
use PhpDb\Sqlite\Metadata;
1111
use Psr\Container\ContainerInterface;
1212

1313
final class MetadataInterfaceFactory

src/Container/PdoConnectionFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
declare(strict_types=1);
44

5-
namespace PhpDb\Adapter\Sqlite\Container;
5+
namespace PhpDb\Sqlite\Container;
66

77
use PhpDb\Adapter\AdapterInterface;
88
use PhpDb\Adapter\Driver\ConnectionInterface;
9-
use PhpDb\Adapter\Sqlite\Pdo\Connection;
9+
use PhpDb\Sqlite\Pdo\Connection;
1010
use Psr\Container\ContainerInterface;
1111

1212
final class PdoConnectionFactory

src/Container/PdoDriverInterfaceFactory.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
declare(strict_types=1);
44

5-
namespace PhpDb\Adapter\Sqlite\Container;
5+
namespace PhpDb\Sqlite\Container;
66

77
use Laminas\ServiceManager\ServiceManager;
88
use PhpDb\Adapter\Driver\Pdo\Result;
99
use PhpDb\Adapter\Driver\Pdo\Statement;
1010
use PhpDb\Adapter\Driver\PdoDriverInterface;
1111
use PhpDb\Adapter\Driver\ResultInterface;
12-
use PhpDb\Adapter\Sqlite\Pdo;
12+
use PhpDb\Sqlite\Pdo;
1313
use Psr\Container\ContainerInterface;
1414

1515
final class PdoDriverInterfaceFactory
@@ -29,7 +29,8 @@ public function __invoke(
2929

3030
/** @var Pdo\Connection $connectionInstance */
3131
$connectionInstance = $container->build(
32-
Pdo\Connection::class, ['connection' => $options['connection'] ?? []]
32+
Pdo\Connection::class,
33+
['connection' => $options['connection'] ?? []]
3334
);
3435

3536
/** @var ResultInterface&Result $resultInstance */

src/Container/PdoResultFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace PhpDb\Adapter\Sqlite\Container;
5+
namespace PhpDb\Sqlite\Container;
66

77
use PhpDb\Adapter\Driver\Pdo\Result;
88
use PhpDb\Adapter\Driver\ResultInterface;

src/Container/PdoStatementFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace PhpDb\Adapter\Sqlite\Container;
5+
namespace PhpDb\Sqlite\Container;
66

77
use PhpDb\Adapter\Driver\Pdo\Statement;
88
use PhpDb\Adapter\Driver\StatementInterface;

0 commit comments

Comments
 (0)