2
$value = ($one + $two);
5
$value = ($one - $two);
8
$value = ($one * $two);
11
$value = ($one / $two);
14
$value = ($one % $two);
17
$value = ($one + $two + $three);
18
$value = $one + $two + $three;
19
$value = ($one + ($two + $three));
20
$value = $one + ($two + $three);
44
$value = (1 + (2 + 3));
47
$value = $one + 2 + 3 - ($four * $five * (6 + 7)) + $nine + 2;
48
$value = myFunction($tokens[$stackPtr - 1]);
50
for ($i = 1 + 2; $i < 4 + 5; $i++) {
55
$value = ($one + 1) + ($two + 2) + (myFunction() + 2);
56
$value = myFunction() + 2;
57
$value = (myFunction($var) + myFunction2($var));
61
$line = substr($line, 0, -2);
62
$words = preg_split('|(\s+)|', $line."\n", -1, $flags);
63
if (!isset($this->words[$wordPos-1]) || $this->words[$wordPos-1] !== ' ') {
64
} else if ($this->tokens[$pos + 1] === "\n") {
67
if ($pos === count($this->tokens) - 1) {
68
$file = '...'.substr($file, (($padding * -1) + 3));
71
if (substr($basename, -5) !== 'Sniff') {
72
$i = ($this->_tokens[$i]['parenthesis_closer'] + 1);
75
$pos = $this->_getShortCommentEndPos();
77
$stackPtr = ($tokens[$next][$to] - 1);
78
$stackPtr = ($tokens[$next][$pattern[$i]['to']] + 1);
79
$var = (($var1 + $var2) + $var3 + $var4)
82
$commentStart = ($phpcsFile->findPrevious(T_DOC_COMMENT, ($commentEnd - 1), null, true) + 1);
83
$commentEnd = ($this->_phpcsFile->findNext(T_DOC_COMMENT, ($commentStart + 1), null, true) - 1);
84
$expected .= '...'.substr($tokens[($stackPtr - 2)]['content'], -5).$tokens[$stackPtr]['content'];
86
if (($tokens[$nextToken - 1]['code']) !== T_WHITESPACE) {
87
$errorPos = ($params[(count($params) - 1)]->getLine() + $commentStart);
90
while (($nextSpace = $phpcsFile->findNext(T_WHITESPACE, $nextSpace + 1, $nextBreak)) !== false) {
93
foreach ($attributes as $id => &$attribute) {
100
public function &myFunction(array &$one, array &$two)
108
if ($index < -1) $index = 0;
109
if ($index < - 1) $index = 0;
111
$three = ceil($one / $two);
112
$three = ceil(($one / $two) / $four);
113
$three = ceil($one / ($two / $four));
117
$three = ceil($one[1] / $two);
119
switch ($number % 10) {
125
$expectedPermission = array(
129
'blockergranted' => 2,
130
'blockerdenied' => - 3,