@@ -25,7 +25,7 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | public function __construct($maxLength = null) |
| 27 | 27 | { |
| 28 | - $this->maxLength = (int)$maxLength; |
|
| 28 | + $this->maxLength = (int) $maxLength; |
|
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | public static function factory(Dbal $dbal, array $columnDefinition) |
@@ -31,10 +31,9 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | public function __construct($precision = null, $dateOnly = false) |
| 33 | 33 | { |
| 34 | - $this->precision = (int)$precision; |
|
| 34 | + $this->precision = (int) $precision; |
|
| 35 | 35 | $this->regex = $dateOnly ? |
| 36 | - '/^' . self::DATE_REGEX . '([ T]' . self::TIME_REGEX . self::ZONE_REGEX . ')?$/' : |
|
| 37 | - '/^' . self::DATE_REGEX . '[ T]' . self::TIME_REGEX . self::ZONE_REGEX . '$/'; |
|
| 36 | + '/^' . self::DATE_REGEX . '([ T]' . self::TIME_REGEX . self::ZONE_REGEX . ')?$/' : '/^' . self::DATE_REGEX . '[ T]' . self::TIME_REGEX . self::ZONE_REGEX . '$/'; |
|
| 38 | 37 | } |
| 39 | 38 | |
| 40 | 39 | public static function factory(Dbal $dbal, array $columnDefinition) |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | if (is_int($value)) { |
| 49 | - $value = (string)$value; |
|
| 49 | + $value = (string) $value; |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | if (is_string($value) && ($value === $this->true || $value === $this->false)) { |