diff --git a/lib/PhpParser/Lexer.php b/lib/PhpParser/Lexer.php index f7da2d2..125c3b8 100644 --- a/lib/PhpParser/Lexer.php +++ b/lib/PhpParser/Lexer.php @@ -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; diff --git a/test/PhpParser/NodeVisitor/NameResolverTest.php b/test/PhpParser/NodeVisitor/NameResolverTest.php index 1e563fa..dde371f 100644 --- a/test/PhpParser/NodeVisitor/NameResolverTest.php +++ b/test/PhpParser/NodeVisitor/NameResolverTest.php @@ -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() {