@@ -112,9 +112,9 @@ protected function consumeNullable()
112112 $ this ->putBack ($ piece );
113113 }
114114
115- if (Str::contains ($ this ->columnDataType , 'text ' )){
115+ if (Str::contains ($ this ->columnDataType , 'text ' )) {
116116 //text column types are explicitly nullable unless set to NOT NULL
117- if ($ this ->definition ->isNullable () === null ){
117+ if ($ this ->definition ->isNullable () === null ) {
118118 $ this ->definition ->setNullable (true );
119119 }
120120 }
@@ -134,21 +134,21 @@ protected function consumeDefaultValue()
134134 $ this ->definition
135135 ->setDefaultValue (null )
136136 ->setUseCurrent (true );
137- } elseif (preg_match ("/b'([01]+)'/i " , $ this ->definition ->getDefaultValue (), $ matches )){
137+ } elseif (preg_match ("/b'([01]+)'/i " , $ this ->definition ->getDefaultValue (), $ matches )) {
138138 // Binary digit, so let's convert to PHP's version
139139 $ this ->definition ->setDefaultValue (ValueToString::castBinary ($ matches [1 ]));
140140 }
141141 if ($ this ->definition ->getDefaultValue () !== null ) {
142142 if ($ this ->isNumberType ()) {
143143 if (Str::contains (strtoupper ($ this ->columnDataType ), 'INT ' )) {
144- $ this ->definition ->setDefaultValue ((int )$ this ->definition ->getDefaultValue ());
144+ $ this ->definition ->setDefaultValue ((int ) $ this ->definition ->getDefaultValue ());
145145 } else {
146146 //floats get converted to strings improperly, gotta do a string cast
147147 $ this ->definition ->setDefaultValue (ValueToString::castFloat ($ this ->definition ->getDefaultValue ()));
148148 }
149149 } else {
150- if (! $ this ->isBinaryType ()) {
151- $ this ->definition ->setDefaultValue ((string )$ this ->definition ->getDefaultValue ());
150+ if (! $ this ->isBinaryType ()) {
151+ $ this ->definition ->setDefaultValue ((string ) $ this ->definition ->getDefaultValue ());
152152 }
153153 }
154154 }
@@ -164,10 +164,10 @@ protected function consumeComment()
164164 // next piece is the comment content
165165 $ this ->definition ->setComment ($ this ->consume ());
166166 } else {
167- $ this ->putBack ($ piece );
167+ $ this ->putBack ($ piece );
168168 }
169169 }
170-
170+
171171 protected function consumeCharacterSet ()
172172 {
173173 $ piece = $ this ->consume ();
@@ -370,7 +370,8 @@ protected function isArrayType()
370370 return Str::contains ($ this ->columnDataType , ['enum ' , 'set ' ]);
371371 }
372372
373- protected function isBinaryType (){
373+ protected function isBinaryType ()
374+ {
374375 return Str::contains ($ this ->columnDataType , ['bit ' ]);
375376 }
376377
0 commit comments