Standardize indentation of multiline 'if'/'elseif' conditions
authorBartosz Dziewoński <matma.rex@gmail.com>
Sun, 16 Nov 2014 19:18:00 +0000 (20:18 +0100)
committerUmherirrender <umherirrender_de.wp@web.de>
Mon, 17 Nov 2014 15:33:34 +0000 (15:33 +0000)
commit3e85dfb8ad7b12c479b5cbe1fe40fbb5f5e537ac
tree4a4f51a4d51d12ba9853ac41ec2dae1a67d80c7b
parent7e5c7d23c88d54d05e9d88ffbd906f43d8b7472a
Standardize indentation of multiline 'if'/'elseif' conditions

Always indent the continuation one level deeper, and always place the
closing parenthesis on the next line, per coding conventions.
https://www.mediawiki.org/wiki/Manual:Coding_conventions#Indenting_and_alignment
https://www.mediawiki.org/wiki/Manual:Coding_conventions#Line_continuation

Regexp used: (\t+)(if|while|\} elseif|foreach).+(?<![;}])\n\1\S

Also:
* Change to just one line if line length stays under 100 characters.
* Add "// Do nothing" comment in empty 'if' bodies.
* Change '#' comments to '//' comments near affected code.

Change-Id: I4f62658fddb5a0ed18bbf9b2231cd794683d6402
includes/GlobalFunctions.php
includes/Html.php
includes/Linker.php
includes/Sanitizer.php
includes/User.php
includes/htmlform/HTMLIntField.php
includes/htmlform/HTMLSelectAndOtherField.php
includes/installer/WebInstallerPage.php