Skip to content

Commit f0142b5

Browse files
committed
Apply phpcs
1 parent a714c3c commit f0142b5

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

src/Context/Context.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ public function enter(mixed $value, EntryInterface $entry, ?Configuration $overr
158158
* configuration value.
159159
*
160160
* @see Configuration::isObjectAsArray()
161+
*
161162
* @link https://en.wikipedia.org/wiki/Law_of_Demeter
162163
*/
163164
public function isObjectAsArray(): bool
@@ -185,6 +186,7 @@ public function withObjectAsArray(?bool $enabled): Configuration
185186
* configuration value.
186187
*
187188
* @see Configuration::isStrictTypesEnabled()
189+
*
188190
* @link https://en.wikipedia.org/wiki/Law_of_Demeter
189191
*/
190192
public function isStrictTypesEnabled(): bool

src/Mapper.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ public function isNormalizable(mixed $value, #[Language('PHP')] ?string $type =
8989
return $instance->match($value, $this->createNormalizationContext($value));
9090
}
9191

92-
9392
private function createDenormalizationContext(mixed $value): RootContext
9493
{
9594
return RootContext::forDenormalization(

src/Type/Builder/TypeAliasBuilder.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
/**
1414
* @template-covariant TType of TypeInterface = TypeInterface<mixed>
15-
*
1615
* @template-extends NamedTypeBuilder<TType>
1716
*/
1817
class TypeAliasBuilder extends NamedTypeBuilder
@@ -27,8 +26,8 @@ public function __construct(
2726
*/
2827
protected readonly NamedTypeBuilder $delegate,
2928
/**
30-
* @internal Will be used in the future to notify about the
31-
* use of incorrect types.
29+
* @internal will be used in the future to notify about the
30+
* use of incorrect types
3231
*/
3332
protected readonly Reason $reason = Reason::DEFAULT,
3433
) {

src/Type/Repository/LoggableTypeRepository.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ public function getTypeByStatement(TypeStatement $statement): TypeInterface
8989
* @template TArgResult of mixed
9090
*
9191
* @param TypeInterface<TArgResult> $type
92+
*
9293
* @return TypeInterface<TArgResult>
9394
*/
9495
private function unwrap(TypeInterface $type): TypeInterface

src/Type/Repository/TypeDecorator/LoggableType.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ public function match(mixed $value, Context $context): bool
125125
*/
126126
private function matchThroughLogger(LoggerInterface $logger, mixed $value, Context $context): bool
127127
{
128-
129128
$this->logBeforeMatch($logger, $value, $context);
130129

131130
try {
@@ -177,7 +176,6 @@ public function cast(mixed $value, Context $context): mixed
177176

178177
/**
179178
* @return TResult
180-
*
181179
* @throws \Throwable in case of any internal error occurs
182180
*/
183181
private function castThroughLogger(LoggerInterface $logger, mixed $value, Context $context): mixed

0 commit comments

Comments
 (0)