Skip to content

Commit dc136ea

Browse files
committed
linter fix
1 parent 7ec8c20 commit dc136ea

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

src/PostgresConnection.php

-25
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
namespace Umbrellio\Postgres;
66

77
use DateTimeInterface;
8-
use Doctrine\DBAL\Connection;
9-
use Doctrine\DBAL\DriverManager;
10-
use Doctrine\DBAL\Platforms\AbstractPlatform;
118
use Doctrine\DBAL\Types\Type;
129
use Illuminate\Database\PostgresConnection as BasePostgresConnection;
1310
use Illuminate\Support\Traits\Macroable;
@@ -66,20 +63,6 @@ public function useDefaultPostProcessor(): void
6663
$this->registerInitialTypes();
6764
}
6865

69-
/*
70-
public function getDoctrineConnection(): Connection
71-
{
72-
return DriverManager::getConnection($this->getConfig());
73-
}
74-
75-
public function getDatabasePlatform(): AbstractPlatform
76-
{
77-
return $this
78-
->getDoctrineConnection()
79-
->getDatabasePlatform();
80-
}
81-
*/
82-
8366
public function bindValues($statement, $bindings)
8467
{
8568
if ($this->getPdo()->getAttribute(PDO::ATTR_EMULATE_PREPARES)) {
@@ -133,10 +116,6 @@ private function registerInitialTypes(): void
133116
foreach ($this->initialTypes as $type => $typeClass) {
134117
if (! Type::hasType($type)) {
135118
Type::addType($type, $typeClass);
136-
} else {
137-
// $this
138-
// ->getDatabasePlatform()
139-
// ->registerDoctrineTypeMapping($typeClass, $type);
140119
}
141120
}
142121
}
@@ -152,10 +131,6 @@ private function registerExtensions(): void
152131
foreach ($extension::getTypes() as $type => $typeClass) {
153132
if (! Type::hasType($type)) {
154133
Type::addType($type, $typeClass);
155-
} else {
156-
// $this
157-
// ->getDatabasePlatform()
158-
// ->registerDoctrineTypeMapping($typeClass, $type);
159134
}
160135
}
161136
});

0 commit comments

Comments
 (0)