| @@ -24,7 +24,7 @@ discard block | ||
| 24 | 24 | * | 
| 25 | 25 | * @return int[]|null An array of bit flags | 
| 26 | 26 | */ | 
| 27 | - public function transform($bitmask) | |
| 27 | + public function transform ($bitmask) | |
| 28 | 28 |      { | 
| 29 | 29 |          if ($bitmask === null) { | 
| 30 | 30 | return null; | 
| @@ -57,7 +57,7 @@ discard block | ||
| 57 | 57 | * | 
| 58 | 58 | * @return int|null a bit mask | 
| 59 | 59 | */ | 
| 60 | - public function reverseTransform($flags) | |
| 60 | + public function reverseTransform ($flags) | |
| 61 | 61 |      { | 
| 62 | 62 |          if (null === $flags) { | 
| 63 | 63 | return null; | 
| @@ -21,14 +21,14 @@ discard block | ||
| 21 | 21 | * | 
| 22 | 22 | * @return string | 
| 23 | 23 | */ | 
| 24 | - abstract protected function getEnumClass(): string; | |
| 24 | + abstract protected function getEnumClass (): string; | |
| 25 | 25 | |
| 26 | 26 | /** | 
| 27 | 27 | * What should be returned on null value from the database. | 
| 28 | 28 | * | 
| 29 | 29 | * @return mixed | 
| 30 | 30 | */ | 
| 31 | - protected function onNullFromDatabase() | |
| 31 | + protected function onNullFromDatabase () | |
| 32 | 32 |      { | 
| 33 | 33 | return null; | 
| 34 | 34 | } | 
| @@ -38,7 +38,7 @@ discard block | ||
| 38 | 38 | * | 
| 39 | 39 | * @return mixed | 
| 40 | 40 | */ | 
| 41 | - protected function onNullFromPhp() | |
| 41 | + protected function onNullFromPhp () | |
| 42 | 42 |      { | 
| 43 | 43 | return null; | 
| 44 | 44 | } | 
| @@ -48,7 +48,7 @@ discard block | ||
| 48 | 48 | * | 
| 49 | 49 | * @param EnumInterface $value | 
| 50 | 50 | */ | 
| 51 | - public function convertToDatabaseValue($value, AbstractPlatform $platform) | |
| 51 | + public function convertToDatabaseValue ($value, AbstractPlatform $platform) | |
| 52 | 52 |      { | 
| 53 | 53 |          if (null === $value) { | 
| 54 | 54 | return $this->onNullFromPhp(); | 
| @@ -60,7 +60,7 @@ discard block | ||
| 60 | 60 | /** | 
| 61 | 61 |       * {@inheritdoc} | 
| 62 | 62 | */ | 
| 63 | - public function convertToPHPValue($value, AbstractPlatform $platform) | |
| 63 | + public function convertToPHPValue ($value, AbstractPlatform $platform) | |
| 64 | 64 |      { | 
| 65 | 65 |          if (null === $value) { | 
| 66 | 66 | return $this->onNullFromDatabase(); | 
| @@ -75,7 +75,7 @@ discard block | ||
| 75 | 75 | /** | 
| 76 | 76 |       * {@inheritdoc} | 
| 77 | 77 | */ | 
| 78 | - public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform) | |
| 78 | + public function getSQLDeclaration (array $fieldDeclaration, AbstractPlatform $platform) | |
| 79 | 79 |      { | 
| 80 | 80 | return $platform->getVarcharTypeDeclarationSQL($fieldDeclaration); | 
| 81 | 81 | } | 
| @@ -83,7 +83,7 @@ discard block | ||
| 83 | 83 | /** | 
| 84 | 84 |       * {@inheritdoc} | 
| 85 | 85 | */ | 
| 86 | - public function getDefaultLength(AbstractPlatform $platform) | |
| 86 | + public function getDefaultLength (AbstractPlatform $platform) | |
| 87 | 87 |      { | 
| 88 | 88 | return $platform->getVarcharDefaultLength(); | 
| 89 | 89 | } | 
| @@ -91,7 +91,7 @@ discard block | ||
| 91 | 91 | /** | 
| 92 | 92 |       * {@inheritdoc} | 
| 93 | 93 | */ | 
| 94 | - public function requiresSQLCommentHint(AbstractPlatform $platform) | |
| 94 | + public function requiresSQLCommentHint (AbstractPlatform $platform) | |
| 95 | 95 |      { | 
| 96 | 96 | return true; | 
| 97 | 97 | } | 
| @@ -103,7 +103,7 @@ discard block | ||
| 103 | 103 | * | 
| 104 | 104 | * @return mixed | 
| 105 | 105 | */ | 
| 106 | - protected function cast($value) | |
| 106 | + protected function cast ($value) | |
| 107 | 107 |      { | 
| 108 | 108 | return (string) $value; | 
| 109 | 109 | } | 
| @@ -26,7 +26,7 @@ discard block | ||
| 26 | 26 | /** | 
| 27 | 27 |       * {@inheritdoc} | 
| 28 | 28 | */ | 
| 29 | - public static function accepts($value): bool | |
| 29 | + public static function accepts ($value): bool | |
| 30 | 30 |      { | 
| 31 | 31 |          if (!is_int($value)) { | 
| 32 | 32 | throw new InvalidValueException($value, static::class); | 
| @@ -44,7 +44,7 @@ discard block | ||
| 44 | 44 | * | 
| 45 | 45 | * @param string $separator A delimiter used between each bit flag's readable string | 
| 46 | 46 | */ | 
| 47 | - public static function readableFor($value, string $separator = '; '): string | |
| 47 | + public static function readableFor ($value, string $separator = '; '): string | |
| 48 | 48 |      { | 
| 49 | 49 |          if (!static::accepts($value)) { | 
| 50 | 50 | throw new InvalidValueException($value, static::class); | 
| @@ -75,7 +75,7 @@ discard block | ||
| 75 | 75 | * | 
| 76 | 76 | * @return string | 
| 77 | 77 | */ | 
| 78 | - protected static function readableForNone(): string | |
| 78 | + protected static function readableForNone (): string | |
| 79 | 79 |      { | 
| 80 | 80 | return 'None'; | 
| 81 | 81 | } | 
| @@ -87,7 +87,7 @@ discard block | ||
| 87 | 87 | * | 
| 88 | 88 | * @return int | 
| 89 | 89 | */ | 
| 90 | - private static function getBitmask(): int | |
| 90 | + private static function getBitmask (): int | |
| 91 | 91 |      { | 
| 92 | 92 | $enumType = static::class; | 
| 93 | 93 | |
| @@ -114,7 +114,7 @@ discard block | ||
| 114 | 114 | * | 
| 115 | 115 | * @param string $separator A delimiter used between each bit flag's readable string | 
| 116 | 116 | */ | 
| 117 | - public function getReadable(string $separator = '; '): string | |
| 117 | + public function getReadable (string $separator = '; '): string | |
| 118 | 118 |      { | 
| 119 | 119 | return static::readableFor($this->getValue(), $separator); | 
| 120 | 120 | } | 
| @@ -124,7 +124,7 @@ discard block | ||
| 124 | 124 | * | 
| 125 | 125 | * @return array | 
| 126 | 126 | */ | 
| 127 | - public function getFlags(): array | |
| 127 | + public function getFlags (): array | |
| 128 | 128 |      { | 
| 129 | 129 |          if ($this->flags === null) { | 
| 130 | 130 | $this->flags = []; | 
| @@ -145,7 +145,7 @@ discard block | ||
| 145 | 145 | * | 
| 146 | 146 | * @return bool True if the bit flag or bit flags are also set in the current instance; otherwise, false | 
| 147 | 147 | */ | 
| 148 | - public function hasFlag(int $bitFlag): bool | |
| 148 | + public function hasFlag (int $bitFlag): bool | |
| 149 | 149 |      { | 
| 150 | 150 |          if ($bitFlag >= 1) { | 
| 151 | 151 | return $bitFlag === ($bitFlag & $this->value); | 
| @@ -163,7 +163,7 @@ discard block | ||
| 163 | 163 | * | 
| 164 | 164 | * @return static A new instance of the enumeration | 
| 165 | 165 | */ | 
| 166 | - public function addFlags(int $flags): self | |
| 166 | + public function addFlags (int $flags): self | |
| 167 | 167 |      { | 
| 168 | 168 |          if (!static::accepts($flags)) { | 
| 169 | 169 | throw new InvalidValueException($flags, static::class); | 
| @@ -181,7 +181,7 @@ discard block | ||
| 181 | 181 | * | 
| 182 | 182 | * @return static A new instance of the enumeration | 
| 183 | 183 | */ | 
| 184 | - public function removeFlags(int $flags): self | |
| 184 | + public function removeFlags (int $flags): self | |
| 185 | 185 |      { | 
| 186 | 186 |          if (!static::accepts($flags)) { | 
| 187 | 187 | throw new InvalidValueException($flags, static::class); |