File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 66{
77 public static function isWindows ()
88 {
9- return ( strtoupper (substr (php_uname (), 0 , 7 )) === 'WINDOWS ' ) ;
9+ return strtoupper (substr (php_uname (), 0 , 7 )) === 'WINDOWS ' ;
1010 }
1111}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ function db_is_sqlite()
99 $ connection = DB ::getDefaultConnection ();
1010 $ driver = Config::get ("database.connections. {$ connection }.driver " );
1111
12- return ( $ driver == 'sqlite ' ) ;
12+ return $ driver === 'sqlite ' ;
1313 }
1414}
1515
@@ -19,7 +19,7 @@ function db_is_mysql()
1919 $ connection = DB ::getDefaultConnection ();
2020 $ driver = Config::get ("database.connections. {$ connection }.driver " );
2121
22- return ( $ driver == 'mysql ' ) ;
22+ return $ driver === 'mysql ' ;
2323 }
2424}
2525
@@ -35,6 +35,6 @@ function db_mysql_now()
3535 function db_mysql_variable ($ name )
3636 {
3737 $ result = (array ) DB ::selectOne ('show variables where variable_name = ? ' , [$ name ]);
38- return ( isset ($ result ['Value ' ]) ? $ result ['Value ' ] : false ) ;
38+ return isset ($ result ['Value ' ]) ? $ result ['Value ' ] : false ;
3939 }
4040}
Original file line number Diff line number Diff line change @@ -12,6 +12,6 @@ function is_json($string, $return = false)
1212 return false ;
1313 }
1414
15- return ( $ return ? $ decoded : true ) ;
15+ return $ return ? $ decoded : true ;
1616 }
1717}
You can’t perform that action at this time.
0 commit comments