Add public keyword to methods

[MAILPOET-2413]
This commit is contained in:
Amine Ben hammou
2019-12-26 12:56:49 +01:00
committed by wxa
parent ec409042d5
commit 43df66d162
823 changed files with 4440 additions and 4440 deletions

View File

@ -7,7 +7,7 @@ use MailPoetVendor\Doctrine\DBAL\Platforms\AbstractPlatform;
class JsonOrSerializedType extends JsonType {
const NAME = 'json_or_serialized';
function convertToPHPValue($value, AbstractPlatform $platform) {
public function convertToPHPValue($value, AbstractPlatform $platform) {
if ($value === null) {
return null;
}
@ -22,7 +22,7 @@ class JsonOrSerializedType extends JsonType {
return parent::convertToPHPValue($value, $platform);
}
function getName() {
public function getName() {
return self::NAME;
}
}

View File

@ -8,11 +8,11 @@ use MailPoetVendor\Doctrine\DBAL\Types\Type;
class JsonType extends Type {
const NAME = 'json';
function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform) {
public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform) {
return $platform->getJsonTypeDeclarationSQL($fieldDeclaration);
}
function convertToDatabaseValue($value, AbstractPlatform $platform) {
public function convertToDatabaseValue($value, AbstractPlatform $platform) {
if ($value === null) {
return null;
}
@ -27,7 +27,7 @@ class JsonType extends Type {
return $encoded;
}
function convertToPHPValue($value, AbstractPlatform $platform) {
public function convertToPHPValue($value, AbstractPlatform $platform) {
if ($value === null || $value === '') {
return null;
}
@ -41,11 +41,11 @@ class JsonType extends Type {
return $decoded;
}
function getName() {
public function getName() {
return self::NAME;
}
function requiresSQLCommentHint(AbstractPlatform $platform) {
public function requiresSQLCommentHint(AbstractPlatform $platform) {
return !$platform->hasNativeJsonType();
}