From 5e4a15477ef0198210954a23746af850684ea454 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Wed, 1 Jul 2015 19:15:07 -0700 Subject: [PATCH] Change "? :" to "?:" Anomie pointed out that I am the only person who writes it as "? :", and that all other instances in core use no space. Change-Id: I01b68eed5f866fa7582fb4257f795c4c2d1244d1 --- includes/Title.php | 2 +- includes/filerepo/file/ArchivedFile.php | 2 +- includes/specials/SpecialUndelete.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/Title.php b/includes/Title.php index 7aa4113446..9c8ed477e6 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -3632,7 +3632,7 @@ class Title { ); } - return $errors ? : true; + return $errors ?: true; } /** diff --git a/includes/filerepo/file/ArchivedFile.php b/includes/filerepo/file/ArchivedFile.php index 0713a9258f..1aec446412 100644 --- a/includes/filerepo/file/ArchivedFile.php +++ b/includes/filerepo/file/ArchivedFile.php @@ -587,6 +587,6 @@ class ArchivedFile { $this->load(); $title = $this->getTitle(); - return Revision::userCanBitfield( $this->deleted, $field, $user, $title ? : null ); + return Revision::userCanBitfield( $this->deleted, $field, $user, $title ?: null ); } } diff --git a/includes/specials/SpecialUndelete.php b/includes/specials/SpecialUndelete.php index 8a662734ff..5732ef96c8 100644 --- a/includes/specials/SpecialUndelete.php +++ b/includes/specials/SpecialUndelete.php @@ -757,7 +757,7 @@ class SpecialUndelete extends SpecialPage { * @return bool */ protected function isAllowed( $permission, User $user = null ) { - $user = $user ? : $this->getUser(); + $user = $user ?: $this->getUser(); if ( $this->mTargetObj !== null ) { return $this->mTargetObj->userCan( $permission, $user ); } else { -- 2.20.1