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
Merge "SpecialRecentchanges: Add class="mw-recentchanges-toplinks" to the "top links""
[lhc/web/wiklou.git]
/
includes
/
Licenses.php
diff --git
a/includes/Licenses.php
b/includes/Licenses.php
index
54b779e
..
da1a8da
100644
(file)
--- a/
includes/Licenses.php
+++ b/
includes/Licenses.php
@@
-32,7
+32,7
@@
class Licenses extends HTMLFormField {
protected $msg;
/** @var array */
protected $msg;
/** @var array */
- protected $licenses =
array()
;
+ protected $licenses =
[]
;
/** @var string */
protected $html;
/** @var string */
protected $html;
@@
-56,7
+56,7
@@
class Licenses extends HTMLFormField {
* @private
*/
protected function makeLicenses() {
* @private
*/
protected function makeLicenses() {
- $levels =
array()
;
+ $levels =
[]
;
$lines = explode( "\n", $this->msg );
foreach ( $lines as $line ) {
$lines = explode( "\n", $this->msg );
foreach ( $lines as $line ) {
@@
-88,7
+88,7
@@
class Licenses extends HTMLFormField {
*/
protected function trimStars( $str ) {
$numStars = strspn( $str, '*' );
*/
protected function trimStars( $str ) {
$numStars = strspn( $str, '*' );
- return
array( $numStars, ltrim( substr( $str, $numStars ), ' ' ) )
;
+ return
[ $numStars, ltrim( substr( $str, $numStars ), ' ' ) ]
;
}
/**
}
/**
@@
-115,17
+115,17
@@
class Licenses extends HTMLFormField {
if ( is_array( $val ) ) {
$this->html .= $this->outputOption(
$key, '',
if ( is_array( $val ) ) {
$this->html .= $this->outputOption(
$key, '',
- array(
+ [
'disabled' => 'disabled',
'style' => 'color: GrayText', // for MSIE
'disabled' => 'disabled',
'style' => 'color: GrayText', // for MSIE
-
)
,
+
]
,
$depth
);
$this->makeHtml( $val, $depth + 1 );
} else {
$this->html .= $this->outputOption(
$val->text, $val->template,
$depth
);
$this->makeHtml( $val, $depth + 1 );
} else {
$this->html .= $this->outputOption(
$val->text, $val->template,
-
array( 'title' => '{{' . $val->template . '}}' )
,
+
[ 'title' => '{{' . $val->template . '}}' ]
,
$depth
);
}
$depth
);
}
@@
-173,13
+173,13
@@
class Licenses extends HTMLFormField {
$this->selected = $value;
$this->html = $this->outputOption( wfMessage( 'nolicense' )->text(), '',
$this->selected = $value;
$this->html = $this->outputOption( wfMessage( 'nolicense' )->text(), '',
- (bool)$this->selected ? null :
array( 'selected' => 'selected' )
);
+ (bool)$this->selected ? null :
[ 'selected' => 'selected' ]
);
$this->makeHtml( $this->getLicenses() );
$this->makeHtml( $this->getLicenses() );
- $attribs =
array(
+ $attribs =
[
'name' => $this->mName,
'id' => $this->mID
'name' => $this->mName,
'id' => $this->mID
-
)
;
+
]
;
if ( !empty( $this->mParams['disabled'] ) ) {
$attibs['disabled'] = 'disabled';
}
if ( !empty( $this->mParams['disabled'] ) ) {
$attibs['disabled'] = 'disabled';
}
@@
-199,7
+199,7
@@
class License {
public $text;
/**
public $text;
/**
- * @param string $str
l
icense name??
+ * @param string $str
L
icense name??
*/
function __construct( $str ) {
list( $text, $template ) = explode( '|', strrev( $str ), 2 );
*/
function __construct( $str ) {
list( $text, $template ) = explode( '|', strrev( $str ), 2 );