mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-28 04:30:08 +02:00
Fixed some inspection issues
This commit is contained in:
parent
33475dca66
commit
42e604245c
85 changed files with 272 additions and 291 deletions
|
@ -30,8 +30,9 @@ use Symfony\Component\PropertyInfo\Type;
|
|||
|
||||
class EntityFilterHelper
|
||||
{
|
||||
public function __construct(private NodesListBuilder $nodesListBuilder,
|
||||
private EntityManagerInterface $entityManager)
|
||||
public function __construct(
|
||||
private readonly NodesListBuilder $nodesListBuilder,
|
||||
private readonly EntityManagerInterface $entityManager)
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -86,7 +87,7 @@ class EntityFilterHelper
|
|||
|
||||
$description = [];
|
||||
foreach ($properties as $property => $strategy) {
|
||||
$description["$property"] = [
|
||||
$description[(string)$property] = [
|
||||
'property' => $property,
|
||||
'type' => Type::BUILTIN_TYPE_STRING,
|
||||
'required' => false,
|
||||
|
|
|
@ -62,7 +62,7 @@ final class LikeFilter extends AbstractFilter
|
|||
|
||||
$description = [];
|
||||
foreach ($this->properties as $property => $strategy) {
|
||||
$description["$property"] = [
|
||||
$description[(string)$property] = [
|
||||
'property' => $property,
|
||||
'type' => Type::BUILTIN_TYPE_STRING,
|
||||
'required' => false,
|
||||
|
|
|
@ -62,8 +62,6 @@ final class HandleAttachmentsUploadsProcessor implements ProcessorInterface
|
|||
$this->attachmentSubmitHandler->handleUpload($data, $upload);
|
||||
}
|
||||
|
||||
$result = $this->persistProcessor->process($data, $operation, $uriVariables, $context);
|
||||
|
||||
return $result;
|
||||
return $this->persistProcessor->process($data, $operation, $uriVariables, $context);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue