@@ -16,17 +16,17 @@ |
||
| 16 | 16 | { |
| 17 | 17 | const LINESTRING = 'linestring'; |
| 18 | 18 | |
| 19 | - /** |
|
| 20 | - * @inheritDoc |
|
| 21 | - */ |
|
| 19 | + /** |
|
| 20 | + * @inheritDoc |
|
| 21 | + */ |
|
| 22 | 22 | public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform) |
| 23 | 23 | { |
| 24 | - return GrammarFactory::make($platform->getName())->typeLinestring(new Fluent); |
|
| 24 | + return GrammarFactory::make($platform->getName())->typeLinestring(new Fluent); |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | - /** |
|
| 28 | - * @inheritDoc |
|
| 29 | - */ |
|
| 27 | + /** |
|
| 28 | + * @inheritDoc |
|
| 29 | + */ |
|
| 30 | 30 | public function getName() |
| 31 | 31 | { |
| 32 | 32 | return self::LINESTRING; |
@@ -16,17 +16,17 @@ |
||
| 16 | 16 | { |
| 17 | 17 | const MULTILINESTRING = 'multilinestring'; |
| 18 | 18 | |
| 19 | - /** |
|
| 20 | - * @inheritDoc |
|
| 21 | - */ |
|
| 19 | + /** |
|
| 20 | + * @inheritDoc |
|
| 21 | + */ |
|
| 22 | 22 | public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform) |
| 23 | 23 | { |
| 24 | - return GrammarFactory::make($platform->getName())->typeMultilinestring(new Fluent); |
|
| 24 | + return GrammarFactory::make($platform->getName())->typeMultilinestring(new Fluent); |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | - /** |
|
| 28 | - * @inheritDoc |
|
| 29 | - */ |
|
| 27 | + /** |
|
| 28 | + * @inheritDoc |
|
| 29 | + */ |
|
| 30 | 30 | public function getName() |
| 31 | 31 | { |
| 32 | 32 | return self::MULTILINESTRING; |
@@ -16,17 +16,17 @@ |
||
| 16 | 16 | { |
| 17 | 17 | const GEOMETRYCOLLECTION = 'geometrycollection'; |
| 18 | 18 | |
| 19 | - /** |
|
| 20 | - * @inheritDoc |
|
| 21 | - */ |
|
| 19 | + /** |
|
| 20 | + * @inheritDoc |
|
| 21 | + */ |
|
| 22 | 22 | public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform) |
| 23 | 23 | { |
| 24 | - return GrammarFactory::make($platform->getName())->typeGeometrycollection(new Fluent); |
|
| 24 | + return GrammarFactory::make($platform->getName())->typeGeometrycollection(new Fluent); |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | - /** |
|
| 28 | - * @inheritDoc |
|
| 29 | - */ |
|
| 27 | + /** |
|
| 28 | + * @inheritDoc |
|
| 29 | + */ |
|
| 30 | 30 | public function getName() |
| 31 | 31 | { |
| 32 | 32 | return self::GEOMETRYCOLLECTION; |
@@ -16,17 +16,17 @@ |
||
| 16 | 16 | { |
| 17 | 17 | const POLYGON = 'polygon'; |
| 18 | 18 | |
| 19 | - /** |
|
| 20 | - * @inheritDoc |
|
| 21 | - */ |
|
| 19 | + /** |
|
| 20 | + * @inheritDoc |
|
| 21 | + */ |
|
| 22 | 22 | public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform) |
| 23 | 23 | { |
| 24 | - return GrammarFactory::make($platform->getName())->typePolygon(new Fluent); |
|
| 24 | + return GrammarFactory::make($platform->getName())->typePolygon(new Fluent); |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | - /** |
|
| 28 | - * @inheritDoc |
|
| 29 | - */ |
|
| 27 | + /** |
|
| 28 | + * @inheritDoc |
|
| 29 | + */ |
|
| 30 | 30 | public function getName() |
| 31 | 31 | { |
| 32 | 32 | return self::POLYGON; |
@@ -16,17 +16,17 @@ |
||
| 16 | 16 | { |
| 17 | 17 | const GEOMETRY = 'geometry'; |
| 18 | 18 | |
| 19 | - /** |
|
| 20 | - * @inheritDoc |
|
| 21 | - */ |
|
| 19 | + /** |
|
| 20 | + * @inheritDoc |
|
| 21 | + */ |
|
| 22 | 22 | public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform) |
| 23 | 23 | { |
| 24 | - return GrammarFactory::make($platform->getName())->typeGeometry(new Fluent); |
|
| 24 | + return GrammarFactory::make($platform->getName())->typeGeometry(new Fluent); |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | - /** |
|
| 28 | - * @inheritDoc |
|
| 29 | - */ |
|
| 27 | + /** |
|
| 28 | + * @inheritDoc |
|
| 29 | + */ |
|
| 30 | 30 | public function getName() |
| 31 | 31 | { |
| 32 | 32 | return self::GEOMETRY; |
@@ -13,16 +13,16 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | class ConnectionFactory extends \Illuminate\Database\Connectors\ConnectionFactory |
| 15 | 15 | { |
| 16 | - /** |
|
| 17 | - * @param string $driver |
|
| 18 | - * @param \Closure|PDO $connection |
|
| 19 | - * @param string $database |
|
| 20 | - * @param string $prefix |
|
| 21 | - * @param array $config |
|
| 22 | - * |
|
| 23 | - * @return \Illuminate\Database\ConnectionInterface |
|
| 24 | - * @throws \Doctrine\DBAL\DBALException |
|
| 25 | - */ |
|
| 16 | + /** |
|
| 17 | + * @param string $driver |
|
| 18 | + * @param \Closure|PDO $connection |
|
| 19 | + * @param string $database |
|
| 20 | + * @param string $prefix |
|
| 21 | + * @param array $config |
|
| 22 | + * |
|
| 23 | + * @return \Illuminate\Database\ConnectionInterface |
|
| 24 | + * @throws \Doctrine\DBAL\DBALException |
|
| 25 | + */ |
|
| 26 | 26 | protected function createConnection($driver, $connection, $database, $prefix = '', array $config = []) |
| 27 | 27 | { |
| 28 | 28 | if ($this->container->bound($key = "db.connection.{$driver}")) { |
@@ -13,10 +13,10 @@ discard block |
||
| 13 | 13 | */ |
| 14 | 14 | class MysqlConnection extends BaseMysqlConnection |
| 15 | 15 | { |
| 16 | - /** |
|
| 17 | - * @inheritDoc |
|
| 18 | - * @throws \Doctrine\DBAL\DBALException |
|
| 19 | - */ |
|
| 16 | + /** |
|
| 17 | + * @inheritDoc |
|
| 18 | + * @throws \Doctrine\DBAL\DBALException |
|
| 19 | + */ |
|
| 20 | 20 | public function __construct($pdo, $database = '', $tablePrefix = '', array $config = []) |
| 21 | 21 | { |
| 22 | 22 | parent::__construct($pdo, $database, $tablePrefix, $config); |
@@ -40,9 +40,9 @@ discard block |
||
| 40 | 40 | } |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | - /** |
|
| 44 | - * @inheritDoc |
|
| 45 | - */ |
|
| 43 | + /** |
|
| 44 | + * @inheritDoc |
|
| 45 | + */ |
|
| 46 | 46 | protected function getDefaultSchemaGrammar() |
| 47 | 47 | { |
| 48 | 48 | return $this->withTablePrefix(new MySqlGrammar()); |