Skip to content

Commit 8009079

Browse files
authored
Format code (#6882)
1 parent 820e8e6 commit 8009079

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/PhpDocReader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ protected function readReturnClass(ReflectionMethod $method, bool $allowPrimitiv
120120
}
121121

122122
// Ignore types containing special characters ([], <> ...)
123-
if (! preg_match('/^[a-zA-Z0-9\\\\_]+$/', $type)) {
123+
if (! preg_match('/^[a-zA-Z0-9\\\_]+$/', $type)) {
124124
continue;
125125
}
126126

tests/PhpParserTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function testGetExprFromEnum()
8080

8181
$code = $printer->prettyPrint([$stmts]);
8282

83-
$this->assertSame('object $id = new \\stdClass()', $code);
83+
$this->assertSame('object $id = new \stdClass()', $code);
8484

8585
$parameters = $bar->getMethod('class')->getParameters();
8686

tests/ProjectTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,34 +28,34 @@ public function testNamespaceFor()
2828
{
2929
$mock = $this->createProject();
3030
$ns = $mock->namespace('app/Model');
31-
$this->assertEquals('App\\Model\\', $ns);
31+
$this->assertEquals('App\Model\\', $ns);
3232
}
3333

3434
public function testClassNameFor()
3535
{
3636
$mock = $this->createProject();
3737
$ns = $mock->className('app/Model/User.php');
38-
$this->assertEquals('App\\Model\\User', $ns);
38+
$this->assertEquals('App\Model\User', $ns);
3939
}
4040

4141
public function testPathForClass()
4242
{
4343
$mock = $this->createProject();
44-
$path = $mock->path('App\\Model\\Foo');
44+
$path = $mock->path('App\Model\Foo');
4545
$this->assertEquals('app/Model/Foo.php', $path);
4646
}
4747

4848
public function testPathForNamespace()
4949
{
5050
$mock = $this->createProject();
51-
$path = $mock->path('App\\Model\\');
51+
$path = $mock->path('App\Model\\');
5252
$this->assertEquals('app/Model/', $path);
5353
}
5454

5555
public function testPathForNoExtension()
5656
{
5757
$mock = $this->createProject();
58-
$path = $mock->path('App\\Model', '');
58+
$path = $mock->path('App\Model', '');
5959
$this->assertEquals('app/Model', $path);
6060
}
6161

0 commit comments

Comments
 (0)