mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 01:57:13 +00:00
Fix typos
This commit is contained in:
@@ -102,7 +102,7 @@ final class StandardTagFactory implements TagFactory
|
|||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var array<class-string<Tag>> An array with a anotation s a key, and an
|
* @var array<class-string<Tag>> An array with an annotation as a key, and an
|
||||||
* FQCN to a class that handles it as an array value.
|
* FQCN to a class that handles it as an array value.
|
||||||
*/
|
*/
|
||||||
private array $annotationMappings = [];
|
private array $annotationMappings = [];
|
||||||
@@ -323,7 +323,7 @@ final class StandardTagFactory implements TagFactory
|
|||||||
* Returns a copy of this class' Service Locator with added dynamic parameters,
|
* Returns a copy of this class' Service Locator with added dynamic parameters,
|
||||||
* such as the tag's name, body and Context.
|
* such as the tag's name, body and Context.
|
||||||
*
|
*
|
||||||
* @param TypeContext $context The Context (namespace and aliasses) that may be
|
* @param TypeContext $context The Context (namespace and aliases) that may be
|
||||||
* passed and is used to resolve FQSENs.
|
* passed and is used to resolve FQSENs.
|
||||||
* @param string $tagName The name of the tag that may be
|
* @param string $tagName The name of the tag that may be
|
||||||
* passed onto the factory method of the Tag class.
|
* passed onto the factory method of the Tag class.
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ use function sprintf;
|
|||||||
* we cannot simply throw exceptions at all time because the exceptions will break the creation of a
|
* we cannot simply throw exceptions at all time because the exceptions will break the creation of a
|
||||||
* docklock. Just silently ignore the exceptions is not an option because the user as an issue to fix.
|
* docklock. Just silently ignore the exceptions is not an option because the user as an issue to fix.
|
||||||
*
|
*
|
||||||
* This tag holds that error information until a using application is able to display it. The object wil just behave
|
* This tag holds that error information until a using application is able to display it. The object will just behave
|
||||||
* like any normal tag. So the normal application flow will not break.
|
* like any normal tag. So the normal application flow will not break.
|
||||||
*/
|
*/
|
||||||
final class InvalidTag implements Tag
|
final class InvalidTag implements Tag
|
||||||
|
|||||||
+1
-1
@@ -26,7 +26,7 @@ abstract class Utils
|
|||||||
*
|
*
|
||||||
* This function is inspired by {@link https://github.com/thecodingmachine/safe/blob/master/generated/pcre.php}. But
|
* This function is inspired by {@link https://github.com/thecodingmachine/safe/blob/master/generated/pcre.php}. But
|
||||||
* since this library is all about performance we decided to strip everything we don't need. Reducing the amount
|
* since this library is all about performance we decided to strip everything we don't need. Reducing the amount
|
||||||
* of files that have to be loaded, ect.
|
* of files that have to be loaded, etc.
|
||||||
*
|
*
|
||||||
* @param string $pattern The pattern to search for, as a string.
|
* @param string $pattern The pattern to search for, as a string.
|
||||||
* @param string $subject The input string.
|
* @param string $subject The input string.
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ DESCRIPTION
|
|||||||
|
|
||||||
public function testMultilineTags(): void
|
public function testMultilineTags(): void
|
||||||
{
|
{
|
||||||
$docCommment = <<<DOC
|
$docComment = <<<DOC
|
||||||
/**
|
/**
|
||||||
* This is an example of a summary.
|
* This is an example of a summary.
|
||||||
*
|
*
|
||||||
@@ -180,7 +180,7 @@ DESCRIPTION
|
|||||||
*/
|
*/
|
||||||
DOC;
|
DOC;
|
||||||
$factory = DocBlockFactory::createInstance();
|
$factory = DocBlockFactory::createInstance();
|
||||||
$docblock = $factory->create($docCommment);
|
$docblock = $factory->create($docComment);
|
||||||
|
|
||||||
self::assertEquals(
|
self::assertEquals(
|
||||||
[
|
[
|
||||||
@@ -201,7 +201,7 @@ DOC;
|
|||||||
|
|
||||||
public function testMethodRegression(): void
|
public function testMethodRegression(): void
|
||||||
{
|
{
|
||||||
$docCommment = <<<DOC
|
$docComment = <<<DOC
|
||||||
/**
|
/**
|
||||||
* This is an example of a summary.
|
* This is an example of a summary.
|
||||||
*
|
*
|
||||||
@@ -209,7 +209,7 @@ DOC;
|
|||||||
*/
|
*/
|
||||||
DOC;
|
DOC;
|
||||||
$factory = DocBlockFactory::createInstance();
|
$factory = DocBlockFactory::createInstance();
|
||||||
$docblock = $factory->create($docCommment);
|
$docblock = $factory->create($docComment);
|
||||||
|
|
||||||
self::assertEquals(
|
self::assertEquals(
|
||||||
[
|
[
|
||||||
@@ -231,7 +231,7 @@ DOC;
|
|||||||
|
|
||||||
public function testInvalidTypeParamResultsInInvalidTag(): void
|
public function testInvalidTypeParamResultsInInvalidTag(): void
|
||||||
{
|
{
|
||||||
$docCommment = '
|
$docComment = '
|
||||||
/**
|
/**
|
||||||
* This is an example of a summary.
|
* This is an example of a summary.
|
||||||
*
|
*
|
||||||
@@ -239,7 +239,7 @@ DOC;
|
|||||||
*/
|
*/
|
||||||
';
|
';
|
||||||
$factory = DocBlockFactory::createInstance();
|
$factory = DocBlockFactory::createInstance();
|
||||||
$docblock = $factory->create($docCommment);
|
$docblock = $factory->create($docComment);
|
||||||
|
|
||||||
self::assertEquals(
|
self::assertEquals(
|
||||||
[
|
[
|
||||||
@@ -257,14 +257,14 @@ DOC;
|
|||||||
|
|
||||||
public function testConstantReferenceTypes(): void
|
public function testConstantReferenceTypes(): void
|
||||||
{
|
{
|
||||||
$docCommment = <<<DOC
|
$docComment = <<<DOC
|
||||||
/**
|
/**
|
||||||
* @return self::STATUS_*
|
* @return self::STATUS_*
|
||||||
*/
|
*/
|
||||||
DOC;
|
DOC;
|
||||||
|
|
||||||
$factory = DocBlockFactory::createInstance();
|
$factory = DocBlockFactory::createInstance();
|
||||||
$docblock = $factory->create($docCommment);
|
$docblock = $factory->create($docComment);
|
||||||
|
|
||||||
self::assertEquals(
|
self::assertEquals(
|
||||||
[
|
[
|
||||||
@@ -276,7 +276,7 @@ DOC;
|
|||||||
|
|
||||||
public function testRegressionWordpressDocblocks(): void
|
public function testRegressionWordpressDocblocks(): void
|
||||||
{
|
{
|
||||||
$docCommment = <<<DOC
|
$docComment = <<<DOC
|
||||||
/**
|
/**
|
||||||
* Install a package.
|
* Install a package.
|
||||||
*
|
*
|
||||||
@@ -311,7 +311,7 @@ DOC;
|
|||||||
DOC;
|
DOC;
|
||||||
|
|
||||||
$factory = DocBlockFactory::createInstance();
|
$factory = DocBlockFactory::createInstance();
|
||||||
$docblock = $factory->create($docCommment);
|
$docblock = $factory->create($docComment);
|
||||||
|
|
||||||
self::assertEquals(
|
self::assertEquals(
|
||||||
new DocBlock(
|
new DocBlock(
|
||||||
|
|||||||
@@ -505,7 +505,7 @@ class StandardTagFactoryTest extends TestCase
|
|||||||
'tag',
|
'tag',
|
||||||
'@tag some text',
|
'@tag some text',
|
||||||
],
|
],
|
||||||
'tag body starting with sqare brackets is allowed' => [
|
'tag body starting with square brackets is allowed' => [
|
||||||
'@tag [is valid]',
|
'@tag [is valid]',
|
||||||
'tag',
|
'tag',
|
||||||
'@tag [is valid]',
|
'@tag [is valid]',
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ class AuthorTest extends TestCase
|
|||||||
* @covers ::__construct
|
* @covers ::__construct
|
||||||
* @covers ::__toString
|
* @covers ::__toString
|
||||||
*/
|
*/
|
||||||
public function testStringRepresentationWithEmtpyEmail(): void
|
public function testStringRepresentationWithEmptyEmail(): void
|
||||||
{
|
{
|
||||||
$fixture = new Author('Mike van Riel', '');
|
$fixture = new Author('Mike van Riel', '');
|
||||||
|
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ class ExampleTest extends TestCase
|
|||||||
* @covers ::getStartingLine
|
* @covers ::getStartingLine
|
||||||
* @covers ::getDescription
|
* @covers ::getDescription
|
||||||
*/
|
*/
|
||||||
public function testAllowOmitingLineCount(): void
|
public function testAllowOmittingLineCount(): void
|
||||||
{
|
{
|
||||||
$tag = Example::create('"example1.php" 10 some text');
|
$tag = Example::create('"example1.php" 10 some text');
|
||||||
$this->assertEquals('example1.php', $tag->getFilePath());
|
$this->assertEquals('example1.php', $tag->getFilePath());
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ class VarTest extends TestCase
|
|||||||
*
|
*
|
||||||
* @covers \phpDocumentor\Reflection\DocBlock\Tags\BaseTag::render
|
* @covers \phpDocumentor\Reflection\DocBlock\Tags\BaseTag::render
|
||||||
*/
|
*/
|
||||||
public function testIfVariableNameIsOmmitedIfEmpty(): void
|
public function testIfVariableNameIsOmittedIfEmpty(): void
|
||||||
{
|
{
|
||||||
$fixture = new Var_('', null, null);
|
$fixture = new Var_('', null, null);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user