From: Kunal Mehta Date: Thu, 2 Jul 2015 02:15:07 +0000 (-0700) Subject: Change "? :" to "?:" X-Git-Tag: 1.31.0-rc.0~10907 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=5e4a15477ef0198210954a23746af850684ea454;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 {