dericofilho/php.tools — pull request #9 by junstyle (2014-10-24 06:47:00+00:00)
Title: modify AddMissingCurlyBraces and ?:

deal with : $a ?: $b do not add whitespace between '?' and ':'

better format AddMissingCurlyBraces

remove $this->is_token([T_WHILE] in line:

if ($ignore_count <= 0 && !($this->is_token(ST_CURLY_CLOSE) || $this->is_token(ST_SEMI_COLON) || $this->is_token([T_WHILE])) && (ST_CURLY_CLOSE === $id || ST_SEMI_COLON === $id || T_ELSE === $id || T_ELSEIF === $id)) {

I don't know why add $this->is_token([T_WHILE]? it cause a serious bug, format the following code, the close curly of if is at last line

if($a == 1) $x = $i;
while ($ten != 0) {
$ten = intval($ten / 26);
}