From: Tim Starling Date: Tue, 11 Jun 2013 23:01:52 +0000 (+1000) Subject: Remove all instances of the word "iff" X-Git-Tag: 1.31.0-rc.0~18424^2 X-Git-Url: https://git.heureux-cyclage.org/?a=commitdiff_plain;h=d1bc243f65063da8e59042944c35591d4dbd22d5;hp=708528039d0c3aeb6353f25fee9ba8af69dafddf;p=lhc%2Fweb%2Fwiklou.git Remove all instances of the word "iff" It's elitist mathematical jargon. In all cases dealt with here, it adds no additional meaning compared to "if", beyond what was already obvious from context. Thus, its only purpose is to smugly demonstrate that the author attended their second-year mathematics classes, at the expense of causing confusion for everyone who doesn't have such a background. If you really think you need to convey extra information beyond what "if" gives you, the English language contains plenty of devices for doing so, without resorting to neologisms. Change-Id: Iae21095d02ec2935c10e94f532235c2671c115b1 --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index cc3f9b3689..6a1ce192bb 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -669,7 +669,7 @@ class OutputPage extends ContextSource { * * @param $timestamp string * - * @return Boolean: true iff cache-ok headers was sent. + * @return Boolean: true if cache-ok headers was sent. */ public function checkLastModified( $timestamp ) { global $wgCachePages, $wgCacheEpoch, $wgUseSquid, $wgSquidMaxage; diff --git a/includes/WikiPage.php b/includes/WikiPage.php index 1965982f1e..7c3dc9374c 100644 --- a/includes/WikiPage.php +++ b/includes/WikiPage.php @@ -1457,7 +1457,7 @@ class WikiPage implements Page, IDBAccessObject { } /** - * Returns true iff this page's content model supports sections. + * Returns true if this page's content model supports sections. * * @return boolean whether sections are supported. * diff --git a/includes/cache/MessageCache.php b/includes/cache/MessageCache.php index 6ab10127cd..a92c87f481 100644 --- a/includes/cache/MessageCache.php +++ b/includes/cache/MessageCache.php @@ -865,7 +865,7 @@ class MessageCache { * * @param string $title Message cache key with initial uppercase letter. * @param string $code Code denoting the language to try. - * @return string|bool The message, or false iff it does not exist or on error + * @return string|bool The message, or false if it does not exist or on error */ function getMsgFromNamespace( $title, $code ) { $this->load( $code ); diff --git a/includes/diff/DairikiDiff.php b/includes/diff/DairikiDiff.php index 174c1d6566..298d724091 100644 --- a/includes/diff/DairikiDiff.php +++ b/includes/diff/DairikiDiff.php @@ -692,7 +692,7 @@ class Diff { /** * Check for empty diff. * - * @return bool True iff two sequences were identical. + * @return bool True if two sequences were identical. */ function isEmpty() { foreach ( $this->edits as $edit ) { diff --git a/includes/filebackend/FileOp.php b/includes/filebackend/FileOp.php index 33a5c9e583..fe8330846d 100644 --- a/includes/filebackend/FileOp.php +++ b/includes/filebackend/FileOp.php @@ -384,7 +384,7 @@ abstract class FileOp { /** * precheckDestExistence() helper function to get the source file SHA-1. - * Subclasses should overwride this iff the source is not in storage. + * Subclasses should overwride this if the source is not in storage. * * @return string|bool Returns false on failure */ diff --git a/includes/parser/CoreParserFunctions.php b/includes/parser/CoreParserFunctions.php index 70a94fe5c1..4b6eeca2fe 100644 --- a/includes/parser/CoreParserFunctions.php +++ b/includes/parser/CoreParserFunctions.php @@ -139,7 +139,7 @@ class CoreParserFunctions { $pref = $parser->getOptions()->getDateFormat(); // Specify a different default date format other than the the normal default - // iff the user has 'default' for their setting + // if the user has 'default' for their setting if ( $pref == 'default' && $defaultPref ) { $pref = $defaultPref; } diff --git a/includes/resourceloader/ResourceLoader.php b/includes/resourceloader/ResourceLoader.php index 19d019d329..ef999d9d0f 100644 --- a/includes/resourceloader/ResourceLoader.php +++ b/includes/resourceloader/ResourceLoader.php @@ -592,7 +592,7 @@ class ResourceLoader { * and clear out the output buffer. If the client cache is too old then do nothing. * @param $context ResourceLoaderContext * @param string $mtime The TS_MW timestamp to check the header against - * @return bool True iff 304 header sent and output handled + * @return bool True if 304 header sent and output handled */ protected function tryRespondLastModified( ResourceLoaderContext $context, $mtime ) { // If there's an If-Modified-Since header, respond with a 304 appropriately diff --git a/tests/phpunit/MediaWikiTestCase.php b/tests/phpunit/MediaWikiTestCase.php index 349c5101ba..8c849bcefc 100644 --- a/tests/phpunit/MediaWikiTestCase.php +++ b/tests/phpunit/MediaWikiTestCase.php @@ -777,7 +777,7 @@ abstract class MediaWikiTestCase extends PHPUnit_Framework_TestCase { } /** - * Returns true iff the given namespace defaults to Wikitext + * Returns true if the given namespace defaults to Wikitext * according to $wgNamespaceContentModels * * @param int $ns The namespace ID to check diff --git a/tests/phpunit/maintenance/DumpTestCase.php b/tests/phpunit/maintenance/DumpTestCase.php index 163314e4fe..83d8c71d52 100644 --- a/tests/phpunit/maintenance/DumpTestCase.php +++ b/tests/phpunit/maintenance/DumpTestCase.php @@ -117,7 +117,7 @@ abstract class DumpTestCase extends MediaWikiLangTestCase { * @param $name string: name of the closing element to look for * (e.g.: "mediawiki" when looking for ) * - * @return bool: true iff the end node could be found. false otherwise. + * @return bool: true if the end node could be found. false otherwise. */ protected function skipToNodeEnd( $name ) { while ( $this->xml->read() ) { diff --git a/tests/phpunit/maintenance/MaintenanceTest.php b/tests/phpunit/maintenance/MaintenanceTest.php index f4b61afc2a..318ce0dab0 100644 --- a/tests/phpunit/maintenance/MaintenanceTest.php +++ b/tests/phpunit/maintenance/MaintenanceTest.php @@ -43,7 +43,7 @@ class MaintenanceFixup extends Maintenance { private $testCase; /** - * shutdownSimulated === true iff simulateShutdown has done it's work + * shutdownSimulated === true if simulateShutdown has done it's work * * @var bool */