Skip to content

Commit 9eb28f6

Browse files
authored
Update SingleSpaceAfterStatementFixer sample (#536)
1 parent 6e0b6f9 commit 9eb28f6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,9 +455,9 @@ Configuration options:
455455
```diff
456456
<?php
457457
-$foo = new Foo();
458-
-echo$foo->__toString();
458+
-echo$foo->bar();
459459
+$foo = new Foo();
460-
+echo $foo->__toString();
460+
+echo $foo->bar();
461461
```
462462

463463
#### SingleSpaceBeforeStatementFixer

src/Fixer/SingleSpaceAfterStatementFixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function getDefinition(): FixerDefinitionInterface
8888
{
8989
return new FixerDefinition(
9090
'Single space must follow - not followed by semicolon - statement.',
91-
[new CodeSample("<?php\n\$foo = new Foo();\necho\$foo->__toString();\n")]
91+
[new CodeSample("<?php\n\$foo = new Foo();\necho\$foo->bar();\n")]
9292
);
9393
}
9494

0 commit comments

Comments
 (0)