File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -165,12 +165,8 @@ public function getCode(bool $quoted = false):string
165165 array_unshift ($ parts , '$this ' );
166166 return implode ('-> ' , array_filter (array_map ('trim ' , $ parts )));
167167 }
168- if ($ this ->rawParts ['default ' ] === null ) {
169- $ default = '' ;
170- } else {
171- $ default = $ this ->rawParts ['default ' ] !== null ? ' DEFAULT ' . trim ($ this ->rawParts ['default ' ]) : '' ;
172- }
173168
169+ $ default = $ this ->rawParts ['default ' ] !== null ? ' DEFAULT ' . trim ($ this ->rawParts ['default ' ]) : '' ;
174170 $ code = $ this ->rawParts ['type ' ] . ' ' . $ this ->rawParts ['nullable ' ] . $ default ;
175171 if ((ApiGenerator::isMysql () || ApiGenerator::isMariaDb ()) && $ this ->rawParts ['position ' ]) {
176172 $ code .= ' ' . $ this ->rawParts ['position ' ];
You can’t perform that action at this time.
0 commit comments