Skip to content

Commit 92d8f53

Browse files
authored
Merge pull request #4673 from soyuka/fix/cs-2
fix: bump cs fixer
2 parents f48902e + d92c45a commit 92d8f53

File tree

45 files changed

+70
-69
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+70
-69
lines changed

src/Api/IdentifiersExtractor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ private function resolveIdentifierValue($identifierValue, string $parameterName)
121121
throw new RuntimeException('No identifier value found, did you forgot to persist the entity?');
122122
}
123123

124-
if (is_scalar($identifierValue)) {
124+
if (\is_scalar($identifierValue)) {
125125
return $identifierValue;
126126
}
127127

@@ -140,7 +140,7 @@ private function resolveIdentifierValue($identifierValue, string $parameterName)
140140
if (1 === \count($relatedLinks)) {
141141
$identifierValue = $this->getIdentifierValue($identifierValue, $relatedResourceClass, current($relatedLinks)->getIdentifiers()[0], $parameterName);
142142

143-
if (is_scalar($identifierValue)) {
143+
if (\is_scalar($identifierValue)) {
144144
return $identifierValue;
145145
}
146146

src/Core/Bridge/Symfony/Routing/CachedRouteNameResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function __construct(CacheItemPoolInterface $cacheItemPool, RouteNameReso
3838
/**
3939
* {@inheritdoc}
4040
*/
41-
public function getRouteName(string $resourceClass, $operationType /*, array $context = []*/): string
41+
public function getRouteName(string $resourceClass, $operationType /* , array $context = [] */): string
4242
{
4343
$context = \func_num_args() > 2 ? func_get_arg(2) : [];
4444
$cacheKey = self::CACHE_KEY_PREFIX.md5(serialize([$resourceClass, $operationType, $context['subresource_resources'] ?? null]));

src/Core/Bridge/Symfony/Routing/RouteNameResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function __construct(RouterInterface $router)
3535
/**
3636
* {@inheritdoc}
3737
*/
38-
public function getRouteName(string $resourceClass, $operationType /*, array $context = [] */): string
38+
public function getRouteName(string $resourceClass, $operationType /* , array $context = [] */): string
3939
{
4040
if (\func_num_args() > 2) {
4141
$context = func_get_arg(2);

src/Core/Bridge/Symfony/Routing/RouteNameResolverInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ interface RouteNameResolverInterface
2929
*
3030
* @throws InvalidArgumentException
3131
*/
32-
public function getRouteName(string $resourceClass, $operationType /*, array $context = [] */): string;
32+
public function getRouteName(string $resourceClass, $operationType /* , array $context = [] */): string;
3333
}

src/Core/Bridge/Symfony/Routing/RouterOperationPathResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function __construct(RouterInterface $router, OperationPathResolverInterf
4141
*
4242
* @throws InvalidArgumentException
4343
*/
44-
public function resolveOperationPath(string $resourceShortName, array $operation, $operationType/*, string $operationName = null*/): string
44+
public function resolveOperationPath(string $resourceShortName, array $operation, $operationType/* , string $operationName = null */): string
4545
{
4646
if (\func_num_args() >= 4) {
4747
$operationName = (string) func_get_arg(3);

src/Core/PathResolver/DashOperationPathResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct()
3333
/**
3434
* {@inheritdoc}
3535
*/
36-
public function resolveOperationPath(string $resourceShortName, array $operation, $operationType/*, string $operationName = null*/): string
36+
public function resolveOperationPath(string $resourceShortName, array $operation, $operationType/* , string $operationName = null */): string
3737
{
3838
if (\func_num_args() >= 4) {
3939
$operationName = func_get_arg(3);

src/Core/PathResolver/UnderscoreOperationPathResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct()
3333
/**
3434
* {@inheritdoc}
3535
*/
36-
public function resolveOperationPath(string $resourceShortName, array $operation, $operationType/*, string $operationName = null*/): string
36+
public function resolveOperationPath(string $resourceShortName, array $operation, $operationType/* , string $operationName = null */): string
3737
{
3838
if (\func_num_args() >= 4) {
3939
$operationName = func_get_arg(3);

src/Doctrine/Common/PropertyHelperTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ protected function isPropertyMapped(string $property, string $resourceClass, boo
4747
/**
4848
* Determines whether the given property is nested.
4949
*/
50-
protected function isPropertyNested(string $property/*, string $resourceClass*/): bool
50+
protected function isPropertyNested(string $property/* , string $resourceClass */): bool
5151
{
5252
if (\func_num_args() > 1) {
5353
$resourceClass = (string) func_get_arg(1);
@@ -84,7 +84,7 @@ protected function isPropertyEmbedded(string $property, string $resourceClass):
8484
* - associations: array of associations according to nesting order
8585
* - field: string holding the actual field (leaf node)
8686
*/
87-
protected function splitPropertyParts(string $property/*, string $resourceClass*/): array
87+
protected function splitPropertyParts(string $property/* , string $resourceClass */): array
8888
{
8989
$resourceClass = null;
9090
$parts = explode('.', $property);

src/Doctrine/EventListener/PurgeHttpCacheListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ private function gatherRelationTags(EntityManagerInterface $em, $entity): void
152152

153153
private function addTagsFor($value): void
154154
{
155-
if (!$value || is_scalar($value)) {
155+
if (!$value || \is_scalar($value)) {
156156
return;
157157
}
158158

@@ -174,7 +174,7 @@ private function addTagsFor($value): void
174174
private function addTagForItem($value): void
175175
{
176176
try {
177-
//TODO: test if this is a resource class
177+
// TODO: test if this is a resource class
178178
$iri = $this->iriConverter->getIriFromItem($value);
179179
$this->tags[$iri] = $iri;
180180
} catch (RuntimeException|InvalidArgumentException $e) {

src/Doctrine/Odm/PropertyHelperTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ trait PropertyHelperTrait
3131
/**
3232
* Splits the given property into parts.
3333
*/
34-
abstract protected function splitPropertyParts(string $property/*, string $resourceClass*/): array;
34+
abstract protected function splitPropertyParts(string $property/* , string $resourceClass */): array;
3535

3636
/**
3737
* Gets class metadata for the given resource.

0 commit comments

Comments
 (0)