[CS] Space before casting

This commit is contained in:
Gabriel Caruso 2018-01-10 14:31:33 -02:00 committed by Nikita Popov
parent e6e52abae7
commit e0a2043089
2 changed files with 4 additions and 4 deletions

View File

@ -153,7 +153,7 @@ class Lexer
$nextFilePos = strpos($this->code, $tokenValue, $filePos);
$this->handleInvalidCharacterRange(
$filePos, $nextFilePos, $line, $errorHandler);
$filePos = (int)$nextFilePos;
$filePos = (int) $nextFilePos;
}
$filePos += $tokenLen;

View File

@ -445,9 +445,9 @@ EOC;
$classStmt = $stmts[0];
$methodStmt = $classStmt->stmts[0]->stmts[0];
$this->assertSame('SELF', (string)$methodStmt->stmts[0]->expr->class);
$this->assertSame('PARENT', (string)$methodStmt->stmts[1]->expr->class);
$this->assertSame('STATIC', (string)$methodStmt->stmts[2]->expr->class);
$this->assertSame('SELF', (string) $methodStmt->stmts[0]->expr->class);
$this->assertSame('PARENT', (string) $methodStmt->stmts[1]->expr->class);
$this->assertSame('STATIC', (string) $methodStmt->stmts[2]->expr->class);
}
public function testAddOriginalNames() {