Skip to content

Commit

Permalink
removed to much insertions for another commit
Browse files Browse the repository at this point in the history
  • Loading branch information
siad007 committed Aug 2, 2014
1 parent e836631 commit 2756364
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/phpDocumentor/Descriptor/ServiceProvider.php
Expand Up @@ -4,7 +4,7 @@
*
* PHP Version 5.3
*
* @copyright 2010-2014 Mike van Riel / Naenius (http://www.naenius.com)
* @copyright 2010-2013 Mike van Riel / Naenius (http://www.naenius.com)
* @license http://www.opensource.org/licenses/mit-license.php MIT
* @link http://phpdoc.org
*/
Expand All @@ -24,7 +24,6 @@
use phpDocumentor\Descriptor\Builder\Reflector\PropertyAssembler;
use phpDocumentor\Descriptor\Builder\Reflector\Tags\AuthorAssembler;
use phpDocumentor\Descriptor\Builder\Reflector\Tags\DeprecatedAssembler;
use phpDocumentor\Descriptor\Builder\Reflector\Tags\ExampleAssembler;
use phpDocumentor\Descriptor\Builder\Reflector\Tags\GenericTagAssembler;
use phpDocumentor\Descriptor\Builder\Reflector\Tags\LinkAssembler;
use phpDocumentor\Descriptor\Builder\Reflector\Tags\MethodAssembler as MethodTagAssembler;
Expand Down Expand Up @@ -53,7 +52,6 @@
use phpDocumentor\Reflection\ConstantReflector;
use phpDocumentor\Reflection\DocBlock\Tag\AuthorTag;
use phpDocumentor\Reflection\DocBlock\Tag\DeprecatedTag;
use phpDocumentor\Reflection\DocBlock\Tag\ExampleTag;
use phpDocumentor\Reflection\DocBlock\Tag\LinkTag;
use phpDocumentor\Reflection\DocBlock\Tag\MethodTag;
use phpDocumentor\Reflection\DocBlock\Tag\ParamTag;
Expand Down Expand Up @@ -129,7 +127,6 @@ public function attachAssemblersToFactory(AssemblerFactory $factory)

$authorMatcher = function ($criteria) { return $criteria instanceof AuthorTag; };
$deprecatedMatcher = function ($criteria) { return $criteria instanceof DeprecatedTag; };
$exampleMatcher = function ($criteria) { return $criteria instanceof ExampleTag; };
$linkMatcher = function ($criteria) { return $criteria instanceof LinkTag; };
$methodTagMatcher = function ($criteria) { return $criteria instanceof MethodTag; };
$propertyTagMatcher = function ($criteria) { return $criteria instanceof PropertyTag; };
Expand Down Expand Up @@ -160,7 +157,6 @@ public function attachAssemblersToFactory(AssemblerFactory $factory)

$factory->register($authorMatcher, new AuthorAssembler());
$factory->register($deprecatedMatcher, new DeprecatedAssembler());
$factory->register($exampleMatcher, new ExampleAssembler());
$factory->register($linkMatcher, new LinkAssembler());
$factory->register($methodTagMatcher, new MethodTagAssembler());
$factory->register($propertyTagMatcher, new PropertyTagAssembler());
Expand Down Expand Up @@ -197,11 +193,10 @@ public function attachFiltersToManager(Filter $filterManager, Application $app)
);

foreach ($filtersOnAllDescriptors as $filter) {
$filterManager->attach('phpDocumentor\Descriptor\ClassDescriptor', $filter);
$filterManager->attach('phpDocumentor\Descriptor\ConstantDescriptor', $filter);
$filterManager->attach('phpDocumentor\Descriptor\FunctionDescriptor', $filter);
$filterManager->attach('phpDocumentor\Descriptor\InterfaceDescriptor', $filter);
$filterManager->attach('phpDocumentor\Descriptor\TraitDescriptor', $filter);
$filterManager->attach('phpDocumentor\Descriptor\ConstantDescriptor', $filter);
$filterManager->attach('phpDocumentor\Descriptor\FunctionDescriptor', $filter);
$filterManager->attach('phpDocumentor\Descriptor\PropertyDescriptor', $filter);
$filterManager->attach('phpDocumentor\Descriptor\MethodDescriptor', $filter);
}
Expand All @@ -223,7 +218,9 @@ public function attachValidators(Validator $validator)
{
/** @var ClassMetadata $fileMetadata */
$fileMetadata = $validator->getMetadataFor('phpDocumentor\Descriptor\FileDescriptor');
$validator->getMetadataFor('phpDocumentor\Descriptor\ConstantDescriptor');
/** @var ClassMetadata $constantMetadata */

$constantMetadata = $validator->getMetadataFor('phpDocumentor\Descriptor\ConstantDescriptor');
/** @var ClassMetadata $functionMetadata */
$functionMetadata = $validator->getMetadataFor('phpDocumentor\Descriptor\FunctionDescriptor');
/** @var ClassMetadata $classMetadata */
Expand All @@ -250,7 +247,6 @@ public function attachValidators(Validator $validator)

$functionMetadata->addConstraint(new phpDocAssert\Functions\IsParamTypeNotAnIdeDefault());
$methodMetadata->addConstraint(new phpDocAssert\Functions\IsParamTypeNotAnIdeDefault());

$functionMetadata->addConstraint(new phpDocAssert\Functions\AreAllArgumentsValid());
$methodMetadata->addConstraint(new phpDocAssert\Functions\AreAllArgumentsValid());

Expand Down

0 comments on commit 2756364

Please sign in to comment.