Passed
Push — sudav3 ( 1415e3...f8d1a2 )
by 世昌
02:31
created
suda/src/orm/struct/TableStructBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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, ''];
Please login to merge, or discard this patch.
suda/src/orm/struct/FieldModifierParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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++;
Please login to merge, or discard this patch.