@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | 'FormSet' => 'HTMLText', |
17 | 17 | ]; |
18 | 18 | |
19 | - public function __construct($name = null, $size = 7, $options = []) |
|
19 | + public function __construct($name = null, $size = 7, $options = [ ]) |
|
20 | 20 | { |
21 | 21 | if ((int) $size) { |
22 | 22 | $this->fieldLength = (int) $size; |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | |
27 | 27 | public static function get_unique_value(?int $size = 7): string |
28 | 28 | { |
29 | - if (! $size) { |
|
29 | + if (!$size) { |
|
30 | 30 | $size = 7; |
31 | 31 | } |
32 | 32 | |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | "DBField::saveInto() Called on a nameless '" . static::class . "' object" |
75 | 75 | ); |
76 | 76 | } |
77 | - if (! $dataObject->{$fieldName}) { |
|
77 | + if (!$dataObject->{$fieldName}) { |
|
78 | 78 | $dataObject->{$fieldName} = self::get_unique_value($this->fieldLength); |
79 | 79 | } |
80 | 80 | $length = strlen($dataObject->{$fieldName}); |