Skip to content

Commit

Permalink
update code style
Browse files Browse the repository at this point in the history
  • Loading branch information
alekitto committed Jul 14, 2021
1 parent efa8c86 commit 632d79e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion lib/Factory/AbstractMetadataFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ protected function dispatchClassMetadataLoadedEvent(ClassMetadataInterface $clas
* @param string|object $value
*
* @return string|bool
*
* @phpstan-return class-string|bool
*/
private function getClass($value)
Expand Down
4 changes: 1 addition & 3 deletions lib/Factory/MetadataFactoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,16 @@ interface MetadataFactoryInterface
* name, the same metadata instance is returned.
*
* @param object|string $value
* @phpstan-param object|class-string $value
*
* @throws InvalidArgumentException
*
* @phpstan-param object|class-string $value
*/
public function getMetadataFor($value): ClassMetadataInterface;

/**
* Checks if class has metadata.
*
* @param object|string $value
*
* @phpstan-param object|class-string $value
*/
public function hasMetadataFor($value): bool;
Expand Down
4 changes: 2 additions & 2 deletions lib/Loader/Processor/Annotation/Processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Kcs\Metadata\Loader\Processor\Annotation;

use Attribute;
use Doctrine\Common\Annotations\Annotation\Required;
use TypeError;

Expand All @@ -16,7 +17,7 @@
* @Annotation()
* @Target({"CLASS"})
*/
// [\Attribute] // phpcs:ignore SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFullyQualifiedName
#[Attribute]
class Processor
{
/**
Expand All @@ -27,7 +28,6 @@ class Processor

/**
* @param string|array $annotation Doctrine annotations would pass an array with all data.
*
* @phpstan-param class-string|array $annotation
*/
public function __construct($annotation = [])
Expand Down
1 change: 0 additions & 1 deletion lib/Loader/Processor/ProcessorFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ public function getProcessor($class): ?ProcessorInterface
* Create a CompositeProcessor instance.
*
* @param string[] $processors
*
* @phpstan-param class-string[] $processors
*/
private function createComposite(array $processors): CompositeProcessor
Expand Down

0 comments on commit 632d79e

Please sign in to comment.