mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 18:13:13 +00:00
Remove final from DescriptionFactory; making an interface is overkill
This commit is contained in:
committed by
Mike van Riel
parent
21e6a9679a
commit
e586a50170
@@ -14,7 +14,7 @@ namespace phpDocumentor\Reflection\DocBlock;
|
|||||||
|
|
||||||
use phpDocumentor\Reflection\Types\Context;
|
use phpDocumentor\Reflection\Types\Context;
|
||||||
|
|
||||||
final class DescriptionFactory
|
class DescriptionFactory
|
||||||
{
|
{
|
||||||
/** @var TagFactory */
|
/** @var TagFactory */
|
||||||
private $tagFactory;
|
private $tagFactory;
|
||||||
@@ -100,7 +100,7 @@ final class DescriptionFactory
|
|||||||
$tagCount = 0;
|
$tagCount = 0;
|
||||||
$tags = [];
|
$tags = [];
|
||||||
for ($i = 1; $i < $count; $i += 2) {
|
for ($i = 1; $i < $count; $i += 2) {
|
||||||
$tokens[$i] = ++$tagCount;
|
$tokens[$i] = '%' . ++$tagCount . '$s';
|
||||||
$tags[] = $this->tagFactory->create($tokens[$i], $context);
|
$tags[] = $this->tagFactory->create($tokens[$i], $context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user