WordPress.Arrays.ArrayDeclaration.NoSpaceBeforeDoubleArrow

This commit is contained in:
Aristeides Stathopoulos 2016-08-27 05:29:01 +03:00
parent 58b9df6564
commit 14ec612760
1 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@ if ( ! class_exists( 'WC_Eval_Math' ) ) {
}
}
}
self::$f[$fnn] = array( 'args'=> $args, 'func'=> $stack );
self::$f[$fnn] = array( 'args' => $args, 'func' => $stack );
return true;
//===============
} else {
@ -107,8 +107,8 @@ if ( ! class_exists( 'WC_Eval_Math' ) ) {
$expr = trim( $expr );
$ops = array( '+', '-', '*', '/', '^', '_' );
$ops_r = array( '+'=> 0, '-'=> 0, '*'=> 0, '/'=> 0, '^'=> 1 ); // right-associative operator?
$ops_p = array( '+'=> 0, '-'=> 0, '*'=> 1, '/'=> 1, '_'=> 1, '^'=> 2 ); // operator precedence
$ops_r = array( '+' => 0, '-' => 0, '*' => 0, '/' => 0, '^' => 1 ); // right-associative operator?
$ops_p = array( '+' => 0, '-' => 0, '*' => 1, '/' => 1, '_' => 1, '^' => 2 ); // operator precedence
$expecting_op = false; // we use this in syntax-checking the expression
// and determining when a - is a negation