Skip to content

Commit 6a25bb3

Browse files
committed
cs: fixes
1 parent 9d7f2c4 commit 6a25bb3

File tree

9 files changed

+14
-14
lines changed

9 files changed

+14
-14
lines changed

.gitignore

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
*.log
22
/.php-cs-fixer.php
33
/.php-cs-fixer.cache
4-
/.phpunit.result.cache
4+
.phpunit.result.cache
55
/.phpunit.cache/
66
/build/
7-
/composer.lock
7+
composer.lock
88
/composer.phar
99
/phpstan.neon
1010
/phpunit.xml
@@ -16,3 +16,4 @@
1616
/tests/Metadata/Extractor/Adapter/*.yaml
1717
/vendor/
1818
/Dockerfile
19+

src/Api/CompositeIdentifierParser.php

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* Normalizes a composite identifier.
1818
*
1919
* @author Antoine Bluchet <[email protected]>
20+
*
2021
* @deprecated
2122
*/
2223
final class CompositeIdentifierParser

src/ApiResource/Error.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313

1414
namespace ApiPlatform\ApiResource;
1515

16-
use ApiPlatform\Exception\ProblemExceptionInterface;
1716
use ApiPlatform\Metadata\ApiProperty;
1817
use ApiPlatform\Metadata\ErrorResource;
1918
use ApiPlatform\Metadata\Exception\HttpExceptionInterface;
19+
use ApiPlatform\Metadata\Exception\ProblemExceptionInterface;
2020
use ApiPlatform\Metadata\Get;
2121
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface as SymfonyHttpExceptionInterface;
2222
use Symfony\Component\Serializer\Annotation\Groups;

src/Exception/ProblemExceptionInterface.php renamed to src/Metadata/Exception/ProblemExceptionInterface.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@
1111

1212
declare(strict_types=1);
1313

14-
namespace ApiPlatform\Exception;
14+
namespace ApiPlatform\Metadata\Exception;
1515

16+
/**
17+
* Implements the Problem Error specification.
18+
*/
1619
interface ProblemExceptionInterface
1720
{
1821
public function getType(): string;

src/Metadata/IriConverterInterface.php

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
use ApiPlatform\Metadata\Exception\ItemNotFoundException;
1818
use ApiPlatform\Metadata\Exception\RuntimeException;
1919

20-
2120
/**
2221
* Converts item and resources to IRI and vice versa.
2322
*

src/Metadata/Util/CompositeIdentifierParser.php

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* Normalizes a composite identifier.
1818
*
1919
* @internal
20+
*
2021
* @author Antoine Bluchet <[email protected]>
2122
*/
2223
final class CompositeIdentifierParser

src/Serializer/Tests/Fixtures/ApiResource/SecuredDummy.php

-5
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ class SecuredDummy
101101

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

115113
/**
116114
* A dummy that anyone can access. There is no ApiProperty security, and the security on RelatedSecuredDummy shouldn't be run.
117-
*
118-
* @var mixed
119115
*/
120116
protected $publicRelatedSecuredDummy;
121117

@@ -180,5 +176,4 @@ public function setOwner(string $owner): void
180176
{
181177
$this->owner = $owner;
182178
}
183-
184179
}

src/State/UriVariablesResolverTrait.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313

1414
namespace ApiPlatform\State;
1515

16-
use ApiPlatform\Metadata\Util\CompositeIdentifierParser;
17-
use ApiPlatform\Metadata\UriVariablesConverterInterface;
1816
use ApiPlatform\Metadata\Exception\InvalidIdentifierException;
1917
use ApiPlatform\Metadata\HttpOperation;
18+
use ApiPlatform\Metadata\UriVariablesConverterInterface;
19+
use ApiPlatform\Metadata\Util\CompositeIdentifierParser;
2020

2121
trait UriVariablesResolverTrait
2222
{

src/Symfony/Validator/Exception/ValidationException.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313

1414
namespace ApiPlatform\Symfony\Validator\Exception;
1515

16-
use ApiPlatform\Api\CompositeIdentifierParser;
17-
use ApiPlatform\Exception\ProblemExceptionInterface;
1816
use ApiPlatform\Metadata\ErrorResource;
17+
use ApiPlatform\Metadata\Exception\ProblemExceptionInterface;
1918
use ApiPlatform\Metadata\Get;
19+
use ApiPlatform\Metadata\Util\CompositeIdentifierParser;
2020
use ApiPlatform\Validator\Exception\ValidationException as BaseValidationException;
2121
use Symfony\Component\Serializer\Annotation\Groups;
2222
use Symfony\Component\Serializer\Annotation\SerializedName;

0 commit comments

Comments
 (0)