@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | { |
| 73 | 73 | $name = $this->getFieldName($property); |
| 74 | 74 | list($type, $length, $modifier) = $this->getFieldType($property); |
| 75 | - $field = new Field($tableName, $name, $type, $length); |
|
| 75 | + $field = new Field($tableName, $name, $type, $length); |
|
| 76 | 76 | $parser = new FieldModifierParser; |
| 77 | 77 | $parser->parse($modifier)->modify($field); |
| 78 | 78 | return $field; |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | } else { |
| 129 | 129 | $length = null; |
| 130 | 130 | } |
| 131 | - return [$type, $length , trim($match[3] ?? '')]; |
|
| 131 | + return [$type, $length, trim($match[3] ?? '')]; |
|
| 132 | 132 | } |
| 133 | 133 | } |
| 134 | 134 | return ['text', null, '']; |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | */ |
| 46 | 46 | public function parse(string $modifier) |
| 47 | 47 | { |
| 48 | - $this->tokens = \token_get_all('<?php '. $modifier); |
|
| 48 | + $this->tokens = \token_get_all('<?php '.$modifier); |
|
| 49 | 49 | $this->length = count($this->tokens); |
| 50 | 50 | $this->pos = 1; |
| 51 | 51 | $this->modifier = []; |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | |
| 109 | 109 | protected function skipWhiteComment() |
| 110 | 110 | { |
| 111 | - for ($i = $this->pos + 1; $i < $this->length ; $i++) { |
|
| 111 | + for ($i = $this->pos + 1; $i < $this->length; $i++) { |
|
| 112 | 112 | if (is_array($this->tokens[$i])) { |
| 113 | 113 | if (in_array($this->tokens[$i][0], [T_COMMENT, T_DOC_COMMENT, T_WHITESPACE])) { |
| 114 | 114 | $this->pos++; |