mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Nuke
synced 2024-11-15 03:35:39 +00:00
Use short array destructuring instead of list()
Introduced in PHP 7.1. Because it's shorter and looks nice. Change-Id: Ia857f37abdb17fe88e91ae17a5610c027c97376e
This commit is contained in:
parent
c9c8af5690
commit
35abb011cf
|
@ -251,7 +251,7 @@ class SpecialNuke extends SpecialPage {
|
|||
/**
|
||||
* @var $title Title
|
||||
*/
|
||||
list( $title, $userName ) = $info;
|
||||
[ $title, $userName ] = $info;
|
||||
|
||||
$image = $title->inNamespace( NS_FILE ) ? $localRepo->newFile( $title ) : false;
|
||||
$thumb = $image && $image->exists() ?
|
||||
|
|
Loading…
Reference in a new issue