Replace in_array( array_keys( ... ) ) with array_key_exists( ... )
authorThiemo Mättig <thiemo.maettig@wikimedia.de>
Tue, 1 Apr 2014 21:44:03 +0000 (23:44 +0200)
committerThiemo Mättig <thiemo.maettig@wikimedia.de>
Tue, 1 Apr 2014 21:44:03 +0000 (23:44 +0200)
commitd0dbbc376c95931fbe4f925b08fc05daabfb64ac
tree4b6ce8a1ee13e9c76a54db2de3c4d02ea7af2a56
parent8e0c0a9fc92263db8b88a4a379cb842105b923f6
Replace in_array( array_keys( ... ) ) with array_key_exists( ... )

It's the same, right? in_array() must search for a value and therefor
is expensive. array_key_exists() searches for a key and should be
much cheaper. Also easier to read.

Change-Id: Ide17d5af13c416c62a40029848ac17ba24eb5563
includes/installer/WebInstallerPage.php
includes/media/Exif.php
includes/specials/SpecialAllpages.php
includes/specials/SpecialPrefixindex.php