From b63685468b042ea7a894acf9273631886e0f03ad Mon Sep 17 00:00:00 2001 From: Fomafix Date: Sat, 7 Jan 2017 10:08:35 +0100 Subject: [PATCH] Update PHP syntax from array(...) to [...] in comment In 4bbd2277 only the syntax in the code is updated. Change-Id: Ib69c913cacef0c90c4766ddbefd0a0b1b38972ee --- includes/Cite.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/includes/Cite.php b/includes/Cite.php index f122427ed..6ed3931d7 100644 --- a/includes/Cite.php +++ b/includes/Cite.php @@ -62,23 +62,23 @@ class Cite { /** * Datastructure representing input, in the format of: * - * array( - * 'user supplied' => array( + * [ + * 'user supplied' => [ * 'text' => 'user supplied reference & key', * 'count' => 1, // occurs twice * 'number' => 1, // The first reference, we want * // all occourances of it to * // use the same number - * ), + * ], * 0 => 'Anonymous reference', * 1 => 'Another anonymous reference', - * 'some key' => array( + * 'some key' => [ * 'text' => 'this one occurs once' * 'count' => 0, * 'number' => 4 - * ), + * ], * 3 => 'more stuff' - * ); + * ]; * * * This works because: @@ -902,8 +902,8 @@ class Cite { /** * Generate a custom format backlink given an offset, e.g. - * $offset = 2; = c if $this->mBacklinkLabels = array( 'a', - * 'b', 'c', ...). Return an error if the offset > the # of + * $offset = 2; = c if $this->mBacklinkLabels = [ 'a', + * 'b', 'c', ...]. Return an error if the offset > the # of * array items * * @param int $offset The offset @@ -925,7 +925,7 @@ class Cite { /** * Generate a custom format link for a group given an offset, e.g. * the second is b if $this->mLinkLabels["foo"] = - * array( 'a', 'b', 'c', ...). + * [ 'a', 'b', 'c', ...]. * Return an error if the offset > the # of array items * * @param int $offset The offset