cleanup, cs

This commit is contained in:
Yuri Kuznetsov
2024-09-16 09:13:16 +03:00
parent debd0f700e
commit d9fb9b8bd5
2 changed files with 4 additions and 5 deletions
@@ -628,7 +628,7 @@ class Converter
continue;
}
$convertedLink = $this->relationConverter->process($linkName, $linkParams, $entityType, $ormMetadata);
$convertedLink = $this->relationConverter->process($linkName, $linkParams, $entityType);
if ($convertedLink) {
/** @var array<string, mixed> $relationships */
@@ -68,10 +68,9 @@ class RelationConverter
* @param string $name
* @param array<string, mixed> $params
* @param string $entityType
* @param array<string, mixed> $ormMetadata
* @return ?array<string, mixed>
*/
public function process(string $name, array $params, string $entityType, array $ormMetadata): ?array
public function process(string $name, array $params, string $entityType): ?array
{
$foreignEntityType = $params['entity'] ?? null;
$foreignLinkName = $params['foreign'] ?? null;
@@ -93,7 +92,7 @@ class RelationConverter
$foreignLinkType = $foreignParams ? $foreignParams['type'] : null;
if (!$linkType) {
$this->log->warning("Link {$entityType}.{$name} has no type.");
$this->log->warning("Link $entityType.$name has no type.");
return null;
}
@@ -162,7 +161,7 @@ class RelationConverter
return BelongsToParent::class;
}
throw new RuntimeException("Unsupported link type '{$type}'.");
throw new RuntimeException("Unsupported link type '$type'.");
}
/**