Skip to content

Commit

Permalink
cs: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed Aug 14, 2023
1 parent 90d2034 commit c658407
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
*.log
/.php-cs-fixer.php
/.php-cs-fixer.cache
/.phpunit.result.cache
.phpunit.result.cache
/.phpunit.cache/
/build/
/composer.lock
composer.lock
/composer.phar
/phpstan.neon
/phpunit.xml
Expand All @@ -16,3 +16,4 @@
/tests/Metadata/Extractor/Adapter/*.yaml
/vendor/
/Dockerfile

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
2 changes: 1 addition & 1 deletion src/ApiResource/Error.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@

namespace ApiPlatform\ApiResource;

use ApiPlatform\Exception\ProblemExceptionInterface;
use ApiPlatform\Metadata\ApiProperty;
use ApiPlatform\Metadata\ErrorResource;
use ApiPlatform\Metadata\Exception\HttpExceptionInterface;
use ApiPlatform\Metadata\Exception\ProblemExceptionInterface;
use ApiPlatform\Metadata\Get;
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface as SymfonyHttpExceptionInterface;
use Symfony\Component\Serializer\Annotation\Groups;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@

declare(strict_types=1);

namespace ApiPlatform\Exception;
namespace ApiPlatform\Metadata\Exception;

/**
* Implements the Problem Error specification.
*/
interface ProblemExceptionInterface
{
public function getType(): string;
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
4 changes: 2 additions & 2 deletions src/Symfony/Validator/Exception/ValidationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@

namespace ApiPlatform\Symfony\Validator\Exception;

use ApiPlatform\Api\CompositeIdentifierParser;
use ApiPlatform\Exception\ProblemExceptionInterface;
use ApiPlatform\Metadata\ErrorResource;
use ApiPlatform\Metadata\Exception\ProblemExceptionInterface;
use ApiPlatform\Metadata\Get;
use ApiPlatform\Metadata\Util\CompositeIdentifierParser;
use ApiPlatform\Validator\Exception\ValidationException as BaseValidationException;
use Symfony\Component\Serializer\Annotation\Groups;
use Symfony\Component\Serializer\Annotation\SerializedName;
Expand Down

0 comments on commit c658407

Please sign in to comment.