@@ -388,7 +388,7 @@ public function parse(Parser $parser, TokensList $list)
388388 */
389389 $ token = $ list ->tokens [$ list ->idx ];
390390 $ nextidx = $ list ->idx + 1 ;
391- while ($ nextidx < $ list ->count && $ list ->tokens [$ nextidx ]->type == Token::TYPE_WHITESPACE ) {
391+ while ($ nextidx < $ list ->count && $ list ->tokens [$ nextidx ]->type === Token::TYPE_WHITESPACE ) {
392392 ++$ nextidx ;
393393 }
394394
@@ -399,18 +399,18 @@ public function parse(Parser $parser, TokensList $list)
399399 static ::$ DB_OPTIONS
400400 );
401401 } elseif ($ this ->options ->has ('TABLE ' )) {
402- if (($ token ->type == Token::TYPE_KEYWORD )
403- && ($ token ->keyword == 'SELECT ' )) {
402+ if (($ token ->type === Token::TYPE_KEYWORD )
403+ && ($ token ->keyword === 'SELECT ' )) {
404404 /* CREATE TABLE ... SELECT */
405405 $ this ->select = new SelectStatement ($ parser , $ list );
406- } elseif (($ token ->type == Token::TYPE_KEYWORD ) && ($ token ->keyword == 'AS ' )
407- && ($ list ->tokens [$ nextidx ]->type == Token::TYPE_KEYWORD )
408- && ($ list ->tokens [$ nextidx ]->value == 'SELECT ' )) {
406+ } elseif (($ token ->type === Token::TYPE_KEYWORD ) && ($ token ->keyword = == 'AS ' )
407+ && ($ list ->tokens [$ nextidx ]->type === Token::TYPE_KEYWORD )
408+ && ($ list ->tokens [$ nextidx ]->value === 'SELECT ' )) {
409409 /* CREATE TABLE ... AS SELECT */
410410 $ list ->idx = $ nextidx ;
411411 $ this ->select = new SelectStatement ($ parser , $ list );
412- } elseif ($ token ->type == Token::TYPE_KEYWORD
413- && $ token ->keyword == 'LIKE ' ) {
412+ } elseif ($ token ->type === Token::TYPE_KEYWORD
413+ && $ token ->keyword === 'LIKE ' ) {
414414 /* CREATE TABLE `new_tbl` LIKE 'orig_tbl' */
415415 $ list ->idx = $ nextidx ;
416416 $ this ->like = Expression::parse (
@@ -422,7 +422,7 @@ public function parse(Parser $parser, TokensList $list)
422422 )
423423 );
424424 // The 'LIKE' keyword was found, but no table_name was found next to it
425- if ($ this ->like == null ) {
425+ if (is_null ( $ this ->like ) ) {
426426 $ parser ->error (
427427 'A table name was expected. ' ,
428428 $ list ->tokens [$ list ->idx ]
0 commit comments