SkinTemplate: Minor clean up
authorTimo Tijhof <ttijhof@wikimedia.org>
Mon, 18 Jun 2012 23:26:40 +0000 (01:26 +0200)
committerTimo Tijhof <ttijhof@wikimedia.org>
Mon, 18 Jun 2012 23:26:40 +0000 (01:26 +0200)
commitc55cdd64444718db44a4637e8c932aef0c78f93d
tree79feea173714e4985bb5277265b276b743499365
parent97593822045a0ca4f87ed3adf55ad4f00b871f6e
SkinTemplate: Minor clean up

* Better variable names ($wgContLang is object, $userLang was a string
  and $lang the object. Made $userLang the object and $userLangCode
  the string.

* Removed trailing whitespace.

* Spacing (not all just where it fit better in the context, some
  isset($) to isset( $ ). and a few `if()` to `if ()` since most
  in this file are like that.

* Some redundant magic quote usage to single quotes.

* Weird structure in getPersonalTools():
  Instead of accessing the same deep array property over and over
  again to add something to the newly create array (e.g.
  $foo[] = array(); and then $foo[0] = $bar;) simply creating it
  as a literal at once.

Change-Id: I861ae1d558f324f61c79089dcd3bff52dd27e0aa
includes/SkinTemplate.php