Go to file
Adam Wight 6b0ebb3066 Reduce deeply nested variables
These can be hard to read so this patch introduces named, temporary
variables.

PHP reference assignment is helpful here, and has the nice property
of responding correctly to `isset` as if it were called on the
referenced variable.  However, we're prevented from using this trick
in more places in the code because of an unfortunate side-effect that
PHP will store `null` under the referenced array key.  In some cases
(the ones here), this is harmless because we always test using
`isset` and null behaves the same as an unset value.  In other cases
such as arrays that are iterated over, the spurious key and null
value would be more of a nuisance.

Bug: T353227
Change-Id: Ie43592a2f10677ba19842e92fa29eb4bf3be240c
2024-01-06 16:39:46 +01:00
.phan build: Upgrade mediawiki/mediawiki-phan-config from 0.5.0 to 0.6.0 2019-05-19 11:26:43 +00:00
i18n Drop unused cite_reference(s)_link_prefix messages 2024-01-04 13:17:42 +01:00
modules Drop unused cite_reference(s)_link_prefix messages 2024-01-04 13:17:42 +01:00
src Reduce deeply nested variables 2024-01-06 16:39:46 +01:00
tests Sync up Cite repo with Parsoid 2024-01-05 14:30:56 -05:00
.eslintrc.json Convert Cite extention to ES6 2023-08-23 12:39:29 +00:00
.gitignore Selenium: Add selenium logs to .gitignore 2020-10-20 14:19:24 -04:00
.gitreview Whoops, track not trace 2016-10-24 17:02:15 -07:00
.phpcs.xml More simple and consistent @covers and @license tags 2023-12-15 12:12:16 +01:00
.stylelintrc.json build: Update stylelint config 2023-05-30 20:18:01 +00:00
AUTHORS.txt Move Cite-specific settings from WikiEditor 2023-06-28 20:22:14 +02:00
CODE_OF_CONDUCT.md build: Updating mediawiki/mediawiki-codesniffer to 22.0.0 2018-09-02 23:29:58 +00:00
composer.json build: Updating dependencies 2023-04-29 00:59:28 +00:00
COPYING.txt Add license details and give credit to more authors (based on git shortlog) 2014-07-26 16:16:47 -07:00
extension.json Drop unused cite_reference(s)_link_prefix messages 2024-01-04 13:17:42 +01:00
Gruntfile.js Move eslint client config to modules, fix warnings 2021-11-03 16:38:31 +00:00
MIT-LICENSE.txt doc: Bump copyright year 2018-01-02 17:05:50 -08:00
package-lock.json build: Update linter libs 2023-12-12 14:21:07 +01:00
package.json build: Update linter libs 2023-12-12 14:21:07 +01:00
README.md Remove ApiQueryReferences support 2019-11-28 11:08:46 +01:00

Cite

The Cite extension provides a way for users to create references as footnotes to articles.

See https://www.mediawiki.org/wiki/Extension:Cite for detailed documentation.