dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Many more function case mismatches
[lhc/web/wiklou.git]
/
maintenance
/
sqlite.php
diff --git
a/maintenance/sqlite.php
b/maintenance/sqlite.php
index
b11f1c8
..
454c506
100644
(file)
--- a/
maintenance/sqlite.php
+++ b/
maintenance/sqlite.php
@@
-31,7
+31,7
@@
require_once __DIR__ . '/Maintenance.php';
class SqliteMaintenance extends Maintenance {
public function __construct() {
parent::__construct();
class SqliteMaintenance extends Maintenance {
public function __construct() {
parent::__construct();
- $this->
mDescription = "Performs some operations specific to SQLite database backend"
;
+ $this->
addDescription( 'Performs some operations specific to SQLite database backend' )
;
$this->addOption(
'vacuum',
'Clean up database by removing deleted pages. Decreases database file size'
$this->addOption(
'vacuum',
'Clean up database by removing deleted pages. Decreases database file size'
@@
-59,7
+59,7
@@
class SqliteMaintenance extends Maintenance {
return;
}
return;
}
- $this->db =
wfG
etDB( DB_MASTER );
+ $this->db =
$this->g
etDB( DB_MASTER );
if ( $this->db->getType() != 'sqlite' ) {
$this->error( "This maintenance script requires a SQLite database.\n" );
if ( $this->db->getType() != 'sqlite' ) {
$this->error( "This maintenance script requires a SQLite database.\n" );
@@
-128,10
+128,10
@@
class SqliteMaintenance extends Maintenance {
}
private function checkSyntax() {
}
private function checkSyntax() {
- if ( !Sqlite::
I
sPresent() ) {
+ if ( !Sqlite::
i
sPresent() ) {
$this->error( "Error: SQLite support not found\n" );
}
$this->error( "Error: SQLite support not found\n" );
}
- $files =
array( $this->getOption( 'check-syntax' ) )
;
+ $files =
[ $this->getOption( 'check-syntax' ) ]
;
$files += $this->mArgs;
$result = Sqlite::checkSqlSyntax( $files );
if ( $result === true ) {
$files += $this->mArgs;
$result = Sqlite::checkSqlSyntax( $files );
if ( $result === true ) {