From: Daniel Rudolf Date: Thu, 21 Feb 2013 12:40:14 +0000 (+0100) Subject: Code styling 2 X-Git-Tag: 2.0.0_Beta_1~460^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b51a17ad39fd45d28c13bbd7946940cbe33cd774;p=GitHub%2FWoltLab%2FWCF.git Code styling 2 The other changes are kind of acceptable, this actually makes the code harder to read and less structurized. --- diff --git a/wcfsetup/install/files/lib/util/ArrayUtil.class.php b/wcfsetup/install/files/lib/util/ArrayUtil.class.php index 79acaeb893..86c905717d 100644 --- a/wcfsetup/install/files/lib/util/ArrayUtil.class.php +++ b/wcfsetup/install/files/lib/util/ArrayUtil.class.php @@ -206,19 +206,13 @@ final class ArrayUtil { // get function name $function = null; if ($method === 'value') { - $function = ($callback === null) - ? 'array_diff' - : 'array_udiff'; + $function = ($callback === null) ? 'array_diff' : 'array_udiff'; } else if ($method === 'key') { - $function = ($callback === null) - ? 'array_diff_key' - : 'array_diff_ukey'; + $function = ($callback === null) ? 'array_diff_key' : 'array_diff_ukey'; } else if ($method === 'assoc') { - $function = ($callback === null) - ? 'array_diff_assoc' - : 'array_diff_uassoc'; + $function = ($callback === null) ? 'array_diff_assoc' : 'array_diff_uassoc'; } // get parameters