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
Bump and prep 1.34.1
[lhc/web/wiklou.git]
/
includes
/
site
/
SiteExporter.php
diff --git
a/includes/site/SiteExporter.php
b/includes/site/SiteExporter.php
index
294f1db
..
0c9f996
100644
(file)
--- a/
includes/site/SiteExporter.php
+++ b/
includes/site/SiteExporter.php
@@
-24,7
+24,7
@@
* @file
* @ingroup Site
*
* @file
* @ingroup Site
*
- * @license G
NU GPL v2+
+ * @license G
PL-2.0-or-later
* @author Daniel Kinzler
*/
class SiteExporter {
* @author Daniel Kinzler
*/
class SiteExporter {
@@
-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,12
+96,12
@@
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" );
}
}
}
}