Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 73febf8

Browse files
Update cs-fixer & run
1 parent 35ef773 commit 73febf8

File tree

8 files changed

+857
-134
lines changed

8 files changed

+857
-134
lines changed

‎src/Check/CodeExistsCheck.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function getName(): string
3333
*/
3434
public function check(ExecutionContext $context): ResultInterface
3535
{
36-
$noopHandler = new class () implements ErrorHandler {
36+
$noopHandler = new class implements ErrorHandler {
3737
public function handleError(Error $error): void {}
3838
};
3939

‎src/ExerciseRunner/Context/TestContext.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function importReferenceSolution(): void
6666
);
6767
}
6868

69-
$scenario = new class () extends ExerciseScenario {};
69+
$scenario = new class extends ExerciseScenario {};
7070
if ($this->exercise instanceof CliExercise || $this->exercise instanceof CgiExercise) {
7171
$scenario = $this->exercise->defineTestScenario();
7272
}

‎test/CodePatcherTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function codeProvider(): array
138138
'transformer-class' => [
139139
'<?php $original = true;',
140140
(new Patch())
141-
->withTransformer(new class () implements Patch\Transformer {
141+
->withTransformer(new class implements Patch\Transformer {
142142
public function transform(array $statements): array
143143
{
144144
return [

‎test/Event/EventDispatcherTest.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public function testRemoveLazyListeners(): void
166166
{
167167
$container = $this->createMock(ContainerInterface::class);
168168

169-
$myListener = new class () {
169+
$myListener = new class {
170170
public function __invoke() {}
171171
};
172172

@@ -193,7 +193,7 @@ public function testRemoveLazyListenersWithAlternateMethod(): void
193193
{
194194
$container = $this->createMock(ContainerInterface::class);
195195

196-
$myListener = new class () {
196+
$myListener = new class {
197197
public function myMethod() {}
198198
};
199199

‎test/Listener/LazyContainerListenerTest.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class LazyContainerListenerTest extends TestCase
1313
{
1414
public function testExceptionIsThrownIfServiceMethodDoesNotExist(): void
1515
{
16-
$myListener = new class () {
16+
$myListener = new class {
1717
public function __invoke() {}
1818
};
1919

@@ -39,7 +39,7 @@ public function __invoke() {}
3939

4040
public function testThatUnderlyingListenerIsCalled(): void
4141
{
42-
$myListener = new class () {
42+
$myListener = new class {
4343
public $called = false;
4444
public function __invoke()
4545
{
@@ -66,7 +66,7 @@ public function __invoke()
6666

6767
public function testWrappedReturnsUnderlyingListener(): void
6868
{
69-
$myListener = new class () {
69+
$myListener = new class {
7070
public function __invoke() {}
7171
};
7272

‎test/Markdown/Parser/HandleBarParserTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function testWithShorthand(string $content, bool $expectedParseResult, ar
8383
$context->expects($this->never())->method('getContainer');
8484
}
8585

86-
$shorthand = new class () implements ShorthandInterface {
86+
$shorthand = new class implements ShorthandInterface {
8787
public $args = [];
8888
public function __invoke(array $callArgs): array
8989
{

‎test/PatchTest.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function testWithTransformerWithClosure(): void
3434
public function testWithTransformerWithTransformer(): void
3535
{
3636
$patch = new Patch();
37-
$transformer = new class () implements Patch\Transformer {
37+
$transformer = new class implements Patch\Transformer {
3838
public function transform(array $ast): array
3939
{
4040
return $ast;
@@ -49,7 +49,7 @@ public function transform(array $ast): array
4949

5050
public function testWithTransformerMultiple(): void
5151
{
52-
$transformer1 = new class () implements Patch\Transformer {
52+
$transformer1 = new class implements Patch\Transformer {
5353
public function transform(array $ast): array
5454
{
5555
return $ast;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /