cleanup, cs
This commit is contained in:
@@ -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'.");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user