Skip to content

Commit

Permalink
fix phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
ixarlie committed Jan 12, 2024
1 parent be9da1b commit 312caef
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/Configuration/Annotation/Embedded.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ class Embedded

/**
* @param string|array $content
* @param Exclusion|null $exclusion
*/
public function __construct(array $values = [], $content = null, ?string $type = null, ?string $xmlElementName = null, ?Exclusion $exclusion = null)
{
Expand Down
1 change: 0 additions & 1 deletion src/Configuration/Metadata/Driver/AnnotationDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace Hateoas\Configuration\Metadata\Driver;

use Doctrine\Common\Annotations\Reader as AnnotationsReader;

use Hateoas\Configuration\Provider\RelationProviderInterface;
use JMS\Serializer\Expression\CompilableExpressionEvaluatorInterface;
use JMS\Serializer\Type\ParserInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ private function parseExclusion(Annotation\Exclusion $exclusion): Exclusion
{
return new Exclusion(
$exclusion->groups,
null !== $exclusion->sinceVersion ? (string)$exclusion->sinceVersion : null,
null !== $exclusion->untilVersion ? (string)$exclusion->untilVersion : null,
null !== $exclusion->maxDepth ? (int)$exclusion->maxDepth : null,
null !== $exclusion->sinceVersion ? (string) $exclusion->sinceVersion : null,
null !== $exclusion->untilVersion ? (string) $exclusion->untilVersion : null,
null !== $exclusion->maxDepth ? (int) $exclusion->maxDepth : null,
$this->checkExpression($exclusion->excludeIf)
);
}
Expand Down
3 changes: 2 additions & 1 deletion tests/Hateoas/Tests/Fixtures/UserPhpAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
sinceVersion: '1.1',
untilVersion: '2.3',
maxDepth: 43,
excludeIf: 'bar')
excludeIf: 'bar'
)
),
exclusion: new Hateoas\Exclusion(
groups: ['group1', 'group2'],
Expand Down

0 comments on commit 312caef

Please sign in to comment.