mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 01:57:13 +00:00
apply coding standard to code
This commit is contained in:
@@ -39,7 +39,7 @@ final class DocblocksWithAnnotationsTest extends TestCase
|
||||
*/
|
||||
DOCCOMMENT;
|
||||
|
||||
$factory = DocBlockFactory::createInstance();
|
||||
$factory = DocBlockFactory::createInstance();
|
||||
$docblock = $factory->create($docComment);
|
||||
|
||||
$this->assertCount(3, $docblock->getTags());
|
||||
|
||||
@@ -74,8 +74,8 @@ DESCRIPTION;
|
||||
$this->assertInstanceOf(See::class, $seeTags[0]);
|
||||
|
||||
$seeTag = $seeTags[0];
|
||||
$this->assertSame('\\' . StandardTagFactory::class, (string)$seeTag->getReference());
|
||||
$this->assertSame('', (string)$seeTag->getDescription());
|
||||
$this->assertSame('\\' . StandardTagFactory::class, (string) $seeTag->getReference());
|
||||
$this->assertSame('', (string) $seeTag->getDescription());
|
||||
}
|
||||
|
||||
public function testDescriptionsCanEscapeAtSignsAndClosingBraces(): void
|
||||
|
||||
@@ -42,7 +42,7 @@ class UsingTagsTest extends TestCase
|
||||
|
||||
$this->assertInstanceOf(\MyTag::class, $customTagObjects[0]);
|
||||
$this->assertSame('my-tag', $customTagObjects[0]->getName());
|
||||
$this->assertSame('I have a description', (string)$customTagObjects[0]->getDescription());
|
||||
$this->assertSame('I have a description', (string) $customTagObjects[0]->getDescription());
|
||||
$this->assertSame($docComment, $reconstitutedDocComment);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user