* Do not change the existing data, just add a new database row
*/
public static function provideDeleteLogDatabaseRows() {
- return array(
+ return [
// Current format
- array(
- array(
+ [
+ [
'type' => 'delete',
'action' => 'delete',
'comment' => 'delete comment',
'namespace' => NS_MAIN,
'title' => 'Page',
- 'params' => array(),
- ),
- array(
+ 'params' => [],
+ ],
+ [
'text' => 'User deleted page Page',
- 'api' => array(),
- ),
- ),
+ 'api' => [],
+ ],
+ ],
// Legacy format
- array(
- array(
+ [
+ [
'type' => 'delete',
'action' => 'delete',
'comment' => 'delete comment',
'namespace' => NS_MAIN,
'title' => 'Page',
- 'params' => array(),
- ),
- array(
+ 'params' => [],
+ ],
+ [
'legacy' => true,
'text' => 'User deleted page Page',
- 'api' => array(),
- ),
- ),
- );
+ 'api' => [],
+ ],
+ ],
+ ];
}
/**
* Do not change the existing data, just add a new database row
*/
public static function provideRestoreLogDatabaseRows() {
- return array(
+ return [
// Current format
- array(
- array(
+ [
+ [
'type' => 'delete',
'action' => 'restore',
'comment' => 'delete comment',
'namespace' => NS_MAIN,
'title' => 'Page',
- 'params' => array(),
- ),
- array(
+ 'params' => [],
+ ],
+ [
'text' => 'User restored page Page',
- 'api' => array(),
- ),
- ),
+ 'api' => [],
+ ],
+ ],
// Legacy format
- array(
- array(
+ [
+ [
'type' => 'delete',
'action' => 'restore',
'comment' => 'delete comment',
'namespace' => NS_MAIN,
'title' => 'Page',
- 'params' => array(),
- ),
- array(
+ 'params' => [],
+ ],
+ [
'legacy' => true,
'text' => 'User restored page Page',
- 'api' => array(),
- ),
- ),
- );
+ 'api' => [],
+ ],
+ ],
+ ];
}
/**
* Do not change the existing data, just add a new database row
*/
public static function provideRevisionLogDatabaseRows() {
- return array(
+ return [
// Current format
- array(
- array(
+ [
+ [
'type' => 'delete',
'action' => 'revision',
'comment' => 'delete comment',
'namespace' => NS_MAIN,
'title' => 'Page',
- 'params' => array(
+ 'params' => [
'4::type' => 'archive',
- '5::ids' => array( '1', '3', '4' ),
+ '5::ids' => [ '1', '3', '4' ],
'6::ofield' => '1',
'7::nfield' => '2',
- ),
- ),
- array(
+ ],
+ ],
+ [
'text' => 'User changed visibility of 3 revisions on page Page: edit summary '
. 'hidden and content unhidden',
- 'api' => array(
+ 'api' => [
'type' => 'archive',
- 'ids' => array( '1', '3', '4' ),
- 'old' => array(
+ 'ids' => [ '1', '3', '4' ],
+ 'old' => [
'bitmask' => 1,
'content' => true,
'comment' => false,
'user' => false,
'restricted' => false,
- ),
- 'new' => array(
+ ],
+ 'new' => [
'bitmask' => 2,
'content' => false,
'comment' => true,
'user' => false,
'restricted' => false,
- ),
- ),
- ),
- ),
+ ],
+ ],
+ ],
+ ],
// Legacy format
- array(
- array(
+ [
+ [
'type' => 'delete',
'action' => 'revision',
'comment' => 'delete comment',
'namespace' => NS_MAIN,
'title' => 'Page',
- 'params' => array(
+ 'params' => [
'archive',
'1,3,4',
'ofield=1',
'nfield=2',
- ),
- ),
- array(
+ ],
+ ],
+ [
'legacy' => true,
'text' => 'User changed visibility of 3 revisions on page Page: edit summary '
. 'hidden and content unhidden',
- 'api' => array(
+ 'api' => [
'type' => 'archive',
- 'ids' => array( '1', '3', '4' ),
- 'old' => array(
+ 'ids' => [ '1', '3', '4' ],
+ 'old' => [
'bitmask' => 1,
'content' => true,
'comment' => false,
'user' => false,
'restricted' => false,
- ),
- 'new' => array(
+ ],
+ 'new' => [
'bitmask' => 2,
'content' => false,
'comment' => true,
'user' => false,
'restricted' => false,
- ),
- ),
- ),
- ),
- );
+ ],
+ ],
+ ],
+ ],
+ ];
}
/**
* Do not change the existing data, just add a new database row
*/
public static function provideEventLogDatabaseRows() {
- return array(
+ return [
// Current format
- array(
- array(
+ [
+ [
'type' => 'delete',
'action' => 'event',
'comment' => 'delete comment',
'namespace' => NS_MAIN,
'title' => 'Page',
- 'params' => array(
- '4::ids' => array( '1', '3', '4' ),
+ 'params' => [
+ '4::ids' => [ '1', '3', '4' ],
'5::ofield' => '1',
'6::nfield' => '2',
- ),
- ),
- array(
+ ],
+ ],
+ [
'text' => 'User changed visibility of 3 log events on Page: edit summary hidden '
. 'and content unhidden',
- 'api' => array(
+ 'api' => [
'type' => 'logging',
- 'ids' => array( '1', '3', '4' ),
- 'old' => array(
+ 'ids' => [ '1', '3', '4' ],
+ 'old' => [
'bitmask' => 1,
'content' => true,
'comment' => false,
'user' => false,
'restricted' => false,
- ),
- 'new' => array(
+ ],
+ 'new' => [
'bitmask' => 2,
'content' => false,
'comment' => true,
'user' => false,
'restricted' => false,
- ),
- ),
- ),
- ),
+ ],
+ ],
+ ],
+ ],
// Legacy format
- array(
- array(
+ [
+ [
'type' => 'delete',
'action' => 'event',
'comment' => 'delete comment',
'namespace' => NS_MAIN,
'title' => 'Page',
- 'params' => array(
+ 'params' => [
'1,3,4',
'ofield=1',
'nfield=2',
- ),
- ),
- array(
+ ],
+ ],
+ [
'legacy' => true,
'text' => 'User changed visibility of 3 log events on Page: edit summary hidden '
. 'and content unhidden',
- 'api' => array(
+ 'api' => [
'type' => 'logging',
- 'ids' => array( '1', '3', '4' ),
- 'old' => array(
+ 'ids' => [ '1', '3', '4' ],
+ 'old' => [
'bitmask' => 1,
'content' => true,
'comment' => false,
'user' => false,
'restricted' => false,
- ),
- 'new' => array(
+ ],
+ 'new' => [
'bitmask' => 2,
'content' => false,
'comment' => true,
'user' => false,
'restricted' => false,
- ),
- ),
- ),
- ),
- );
+ ],
+ ],
+ ],
+ ],
+ ];
}
/**
* Do not change the existing data, just add a new database row
*/
public static function provideSuppressRevisionLogDatabaseRows() {
- return array(
+ return [
// Current format
- array(
- array(
+ [
+ [
'type' => 'suppress',
'action' => 'revision',
'comment' => 'Suppress comment',
'namespace' => NS_MAIN,
'title' => 'Page',
- 'params' => array(
+ 'params' => [
'4::type' => 'archive',
- '5::ids' => array( '1', '3', '4' ),
+ '5::ids' => [ '1', '3', '4' ],
'6::ofield' => '1',
'7::nfield' => '10',
- ),
- ),
- array(
+ ],
+ ],
+ [
'text' => 'User secretly changed visibility of 3 revisions on page Page: edit '
. 'summary hidden, content unhidden and applied restrictions to administrators',
- 'api' => array(
+ 'api' => [
'type' => 'archive',
- 'ids' => array( '1', '3', '4' ),
- 'old' => array(
+ 'ids' => [ '1', '3', '4' ],
+ 'old' => [
'bitmask' => 1,
'content' => true,
'comment' => false,
'user' => false,
'restricted' => false,
- ),
- 'new' => array(
+ ],
+ 'new' => [
'bitmask' => 10,
'content' => false,
'comment' => true,
'user' => false,
'restricted' => true,
- ),
- ),
- ),
- ),
+ ],
+ ],
+ ],
+ ],
// Legacy format
- array(
- array(
+ [
+ [
'type' => 'suppress',
'action' => 'revision',
'comment' => 'Suppress comment',
'namespace' => NS_MAIN,
'title' => 'Page',
- 'params' => array(
+ 'params' => [
'archive',
'1,3,4',
'ofield=1',
'nfield=10',
- ),
- ),
- array(
+ ],
+ ],
+ [
'legacy' => true,
'text' => 'User secretly changed visibility of 3 revisions on page Page: edit '
. 'summary hidden, content unhidden and applied restrictions to administrators',
- 'api' => array(
+ 'api' => [
'type' => 'archive',
- 'ids' => array( '1', '3', '4' ),
- 'old' => array(
+ 'ids' => [ '1', '3', '4' ],
+ 'old' => [
'bitmask' => 1,
'content' => true,
'comment' => false,
'user' => false,
'restricted' => false,
- ),
- 'new' => array(
+ ],
+ 'new' => [
'bitmask' => 10,
'content' => false,
'comment' => true,
'user' => false,
'restricted' => true,
- ),
- ),
- ),
- ),
- );
+ ],
+ ],
+ ],
+ ],
+ ];
}
/**
* Do not change the existing data, just add a new database row
*/
public static function provideSuppressEventLogDatabaseRows() {
- return array(
+ return [
// Current format
- array(
- array(
+ [
+ [
'type' => 'suppress',
'action' => 'event',
'comment' => 'Suppress comment',
'namespace' => NS_MAIN,
'title' => 'Page',
- 'params' => array(
- '4::ids' => array( '1', '3', '4' ),
+ 'params' => [
+ '4::ids' => [ '1', '3', '4' ],
'5::ofield' => '1',
'6::nfield' => '10',
- ),
- ),
- array(
+ ],
+ ],
+ [
'text' => 'User secretly changed visibility of 3 log events on Page: edit '
. 'summary hidden, content unhidden and applied restrictions to administrators',
- 'api' => array(
+ 'api' => [
'type' => 'logging',
- 'ids' => array( '1', '3', '4' ),
- 'old' => array(
+ 'ids' => [ '1', '3', '4' ],
+ 'old' => [
'bitmask' => 1,
'content' => true,
'comment' => false,
'user' => false,
'restricted' => false,
- ),
- 'new' => array(
+ ],
+ 'new' => [
'bitmask' => 10,
'content' => false,
'comment' => true,
'user' => false,
'restricted' => true,
- ),
- ),
- ),
- ),
+ ],
+ ],
+ ],
+ ],
// Legacy format
- array(
- array(
+ [
+ [
'type' => 'suppress',
'action' => 'event',
'comment' => 'Suppress comment',
'namespace' => NS_MAIN,
'title' => 'Page',
- 'params' => array(
+ 'params' => [
'1,3,4',
'ofield=1',
'nfield=10',
- ),
- ),
- array(
+ ],
+ ],
+ [
'legacy' => true,
'text' => 'User secretly changed visibility of 3 log events on Page: edit '
. 'summary hidden, content unhidden and applied restrictions to administrators',
- 'api' => array(
+ 'api' => [
'type' => 'logging',
- 'ids' => array( '1', '3', '4' ),
- 'old' => array(
+ 'ids' => [ '1', '3', '4' ],
+ 'old' => [
'bitmask' => 1,
'content' => true,
'comment' => false,
'user' => false,
'restricted' => false,
- ),
- 'new' => array(
+ ],
+ 'new' => [
'bitmask' => 10,
'content' => false,
'comment' => true,
'user' => false,
'restricted' => true,
- ),
- ),
- ),
- ),
- );
+ ],
+ ],
+ ],
+ ],
+ ];
}
/**
* Do not change the existing data, just add a new database row
*/
public static function provideSuppressDeleteLogDatabaseRows() {
- return array(
+ return [
// Current format
- array(
- array(
+ [
+ [
'type' => 'suppress',
'action' => 'delete',
'comment' => 'delete comment',
'namespace' => NS_MAIN,
'title' => 'Page',
- 'params' => array(),
- ),
- array(
+ 'params' => [],
+ ],
+ [
'text' => 'User suppressed page Page',
- 'api' => array(),
- ),
- ),
+ 'api' => [],
+ ],
+ ],
// Legacy format
- array(
- array(
+ [
+ [
'type' => 'suppress',
'action' => 'delete',
'comment' => 'delete comment',
'namespace' => NS_MAIN,
'title' => 'Page',
- 'params' => array(),
- ),
- array(
+ 'params' => [],
+ ],
+ [
'legacy' => true,
'text' => 'User suppressed page Page',
- 'api' => array(),
- ),
- ),
- );
+ 'api' => [],
+ ],
+ ],
+ ];
}
/**