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
Split down patch-actor-table.sql
[lhc/web/wiklou.git]
/
includes
/
site
/
SiteExporter.php
diff --git
a/includes/site/SiteExporter.php
b/includes/site/SiteExporter.php
index
169c0d8
..
01b838e
100644
(file)
--- a/
includes/site/SiteExporter.php
+++ b/
includes/site/SiteExporter.php
@@
-52,10
+52,10
@@
class SiteExporter {
* @param Site[]|SiteList $sites
*/
public function exportSites( $sites ) {
* @param Site[]|SiteList $sites
*/
public function exportSites( $sites ) {
- $attributes =
array(
+ $attributes =
[
'version' => '1.0',
'xmlns' => 'http://www.mediawiki.org/xml/sitelist-1.0/',
'version' => '1.0',
'xmlns' => 'http://www.mediawiki.org/xml/sitelist-1.0/',
-
)
;
+
]
;
fwrite( $this->sink, Xml::openElement( 'sites', $attributes ) . "\n" );
fwrite( $this->sink, Xml::openElement( 'sites', $attributes ) . "\n" );
@@
-74,7
+74,7
@@
class SiteExporter {
*/
private function exportSite( Site $site ) {
if ( $site->getType() !== Site::TYPE_UNKNOWN ) {
*/
private function exportSite( Site $site ) {
if ( $site->getType() !== Site::TYPE_UNKNOWN ) {
- $siteAttr =
array( 'type' => $site->getType() )
;
+ $siteAttr =
[ 'type' => $site->getType() ]
;
} else {
$siteAttr = null;
}
} else {
$siteAttr = null;
}
@@
-96,17
+96,17
@@
class SiteExporter {
}
foreach ( $site->getAllPaths() as $type => $path ) {
}
foreach ( $site->getAllPaths() as $type => $path ) {
- fwrite( $this->sink, "\t\t" . Xml::element( 'path',
array( 'type' => $type )
, $path ) . "\n" );
+ fwrite( $this->sink, "\t\t" . Xml::element( 'path',
[ 'type' => $type ]
, $path ) . "\n" );
}
foreach ( $site->getLocalIds() as $type => $ids ) {
foreach ( $ids as $id ) {
}
foreach ( $site->getLocalIds() as $type => $ids ) {
foreach ( $ids as $id ) {
- fwrite( $this->sink, "\t\t" . Xml::element( 'localid',
array( 'type' => $type )
, $id ) . "\n" );
+ fwrite( $this->sink, "\t\t" . Xml::element( 'localid',
[ 'type' => $type ]
, $id ) . "\n" );
}
}
}
}
- //@todo: export <data>
- //@todo: export <config>
+ //
@todo: export <data>
+ //
@todo: export <config>
fwrite( $this->sink, "\t" . Xml::closeElement( 'site' ) . "\n" );
}
fwrite( $this->sink, "\t" . Xml::closeElement( 'site' ) . "\n" );
}