Coding standards

This commit is contained in:
Ramy Talal 2017-04-11 07:19:24 +02:00 committed by GitHub
parent 6b29066d3e
commit 36de5db080
1 changed files with 4 additions and 4 deletions

View File

@ -151,13 +151,13 @@ function wc_get_product_terms( $product_id, $taxonomy, $args = array() ) {
* @return int
*/
function _wc_get_product_terms_name_num_usort_callback( $a, $b ) {
$aName = (int) $a->name;
$bName = (int) $b->name;
$a_name = (int) $a->name;
$b_name = (int) $b->name;
if ( $aName === $bName ) {
if ( $a_name === $b_name ) {
return 0;
}
return ( $aName < $bName ) ? -1 : 1;
return ( $a_name < $b_name ) ? -1 : 1;
}
/**