Remove final from DescriptionFactory; making an interface is overkill

This commit is contained in:
Mike van Riel
2015-06-13 18:02:05 +02:00
committed by Mike van Riel
parent 21e6a9679a
commit e586a50170
+2 -2
View File
@@ -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);
} }