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:
Fomafix 2022-11-04 10:47:02 +00:00
parent c9c8af5690
commit 35abb011cf

View file

@ -251,7 +251,7 @@ class SpecialNuke extends SpecialPage {
/** /**
* @var $title Title * @var $title Title
*/ */
list( $title, $userName ) = $info; [ $title, $userName ] = $info;
$image = $title->inNamespace( NS_FILE ) ? $localRepo->newFile( $title ) : false; $image = $title->inNamespace( NS_FILE ) ? $localRepo->newFile( $title ) : false;
$thumb = $image && $image->exists() ? $thumb = $image && $image->exists() ?