Skip to content

Commit

Permalink
cs: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed Aug 11, 2023
1 parent e7b6588 commit 325a56f
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/Api/CompositeIdentifierParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* Normalizes a composite identifier.
*
* @author Antoine Bluchet <[email protected]>
*
* @deprecated
*/
final class CompositeIdentifierParser
Expand Down
1 change: 0 additions & 1 deletion src/Metadata/IriConverterInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
use ApiPlatform\Metadata\Exception\ItemNotFoundException;
use ApiPlatform\Metadata\Exception\RuntimeException;


/**
* Converts item and resources to IRI and vice versa.
*
Expand Down
1 change: 1 addition & 0 deletions src/Metadata/Util/CompositeIdentifierParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* Normalizes a composite identifier.
*
* @internal
*
* @author Antoine Bluchet <[email protected]>
*/
final class CompositeIdentifierParser
Expand Down
5 changes: 0 additions & 5 deletions src/Serializer/Tests/Fixtures/ApiResource/SecuredDummy.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ class SecuredDummy

/**
* A dummy that only users can access. The security on RelatedSecuredDummy shouldn't be run.
*
* @var mixed
*/
#[ApiProperty(security: "is_granted('ROLE_USER')")]
protected $relatedSecuredDummy;
Expand All @@ -114,8 +112,6 @@ class SecuredDummy

/**
* A dummy that anyone can access. There is no ApiProperty security, and the security on RelatedSecuredDummy shouldn't be run.
*
* @var mixed
*/
protected $publicRelatedSecuredDummy;

Expand Down Expand Up @@ -180,5 +176,4 @@ public function setOwner(string $owner): void
{
$this->owner = $owner;
}

}
4 changes: 2 additions & 2 deletions src/State/UriVariablesResolverTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@

namespace ApiPlatform\State;

use ApiPlatform\Metadata\Util\CompositeIdentifierParser;
use ApiPlatform\Metadata\UriVariablesConverterInterface;
use ApiPlatform\Metadata\Exception\InvalidIdentifierException;
use ApiPlatform\Metadata\HttpOperation;
use ApiPlatform\Metadata\UriVariablesConverterInterface;
use ApiPlatform\Metadata\Util\CompositeIdentifierParser;

trait UriVariablesResolverTrait
{
Expand Down

0 comments on commit 325a56f

Please sign in to comment.