Commit 4eefceb0 authored by Benjamin Eberlei's avatar Benjamin Eberlei

Fix style and CS

parent 570b0983
...@@ -327,6 +327,7 @@ abstract class AbstractPlatform ...@@ -327,6 +327,7 @@ abstract class AbstractPlatform
foreach (Type::getTypesMap() as $typeName => $className) { foreach (Type::getTypesMap() as $typeName => $className) {
$type = Type::getType($typeName); $type = Type::getType($typeName);
if ($type->requiresSQLCommentHint($this)) { if ($type->requiresSQLCommentHint($this)) {
$this->doctrineTypeComments[] = $typeName; $this->doctrineTypeComments[] = $typeName;
} }
......
...@@ -29,12 +29,12 @@ use Doctrine\DBAL\Platforms\AbstractPlatform; ...@@ -29,12 +29,12 @@ use Doctrine\DBAL\Platforms\AbstractPlatform;
*/ */
class JsonArrayType extends Type class JsonArrayType extends Type
{ {
public function getSQLDeclaration(array $fieldDeclaration, \Doctrine\DBAL\Platforms\AbstractPlatform $platform) public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
{ {
return $platform->getClobTypeDeclarationSQL($fieldDeclaration); return $platform->getClobTypeDeclarationSQL($fieldDeclaration);
} }
public function convertToDatabaseValue($value, \Doctrine\DBAL\Platforms\AbstractPlatform $platform) public function convertToDatabaseValue($value, AbstractPlatform $platform)
{ {
if (null === $value) { if (null === $value) {
return null; return null;
...@@ -43,7 +43,7 @@ class JsonArrayType extends Type ...@@ -43,7 +43,7 @@ class JsonArrayType extends Type
return json_encode($value); return json_encode($value);
} }
public function convertToPHPValue($value, \Doctrine\DBAL\Platforms\AbstractPlatform $platform) public function convertToPHPValue($value, AbstractPlatform $platform)
{ {
if ($value === null) { if ($value === null) {
return array(); return array();
......
<?php <?php
/* /*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
*
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
...@@ -31,12 +32,12 @@ use Doctrine\DBAL\Platforms\AbstractPlatform; ...@@ -31,12 +32,12 @@ use Doctrine\DBAL\Platforms\AbstractPlatform;
*/ */
class SimpleArrayType extends Type class SimpleArrayType extends Type
{ {
public function getSQLDeclaration(array $fieldDeclaration, \Doctrine\DBAL\Platforms\AbstractPlatform $platform) public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
{ {
return $platform->getClobTypeDeclarationSQL($fieldDeclaration); return $platform->getClobTypeDeclarationSQL($fieldDeclaration);
} }
public function convertToDatabaseValue($value, \Doctrine\DBAL\Platforms\AbstractPlatform $platform) public function convertToDatabaseValue($value, AbstractPlatform $platform)
{ {
if (!$value) { if (!$value) {
return null; return null;
...@@ -45,7 +46,7 @@ class SimpleArrayType extends Type ...@@ -45,7 +46,7 @@ class SimpleArrayType extends Type
return implode(',', $value); return implode(',', $value);
} }
public function convertToPHPValue($value, \Doctrine\DBAL\Platforms\AbstractPlatform $platform) public function convertToPHPValue($value, AbstractPlatform $platform)
{ {
if ($value === null) { if ($value === null) {
return array(); return array();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment