Skip to content

Commit bde60bd

Browse files
committed
Fix StyleCI issues
1 parent 24c86ab commit bde60bd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/Tokenizer/Tokenizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function getGrammar(): Grammar
5050

5151
private function registerToken(string $class, string $regex, int $priority): void
5252
{
53-
$this->tokens[$class] = new class ($class, $regex, $priority) {
53+
$this->tokens[$class] = new class($class, $regex, $priority) {
5454
public function __construct(
5555
public string $class,
5656
public string $regex,

tests/integration/ObjectTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ public function givenAnObjectWhenMagicMethodsAreCalledDirectlyItShouldThrowAnExc
119119
$this->expectException(ParserException::class);
120120
$this->expectExceptionMessage("Forbidden method \"{$magicMethod}\" at position 6");
121121

122-
$myObj = new class() {};
122+
$myObj = new class() {
123+
};
123124

124125
$variables = [
125126
'my_obj' => $myObj,
@@ -131,7 +132,8 @@ public function givenAnObjectWhenMagicMethodsAreCalledDirectlyItShouldThrowAnExc
131132
/** @test */
132133
public function undefinedMethodsShouldThrowAnError(): void
133134
{
134-
$myObj = new class() {};
135+
$myObj = new class() {
136+
};
135137

136138
$variables = [
137139
'my_obj' => $myObj,

0 commit comments

Comments
 (0)