}
private function checkSyntax() {
- if ( !Sqlite::IsPresent() ) {
+ if ( !Sqlite::isPresent() ) {
$this->error( "Error: SQLite support not found\n" );
}
- $files = array( $this->getOption( 'check-syntax' ) );
- $files += $this->mArgs;
+ $files = [ $this->getOption( 'check-syntax' ) ];
+ $files = array_merge( $files, $this->mArgs );
$result = Sqlite::checkSqlSyntax( $files );
if ( $result === true ) {
$this->output( "SQL syntax check: no errors detected.\n" );