chore: code cleanup
This commit is contained in:
@@ -8,7 +8,6 @@ use App\Repository\Traits\QueryHelperTrait;
|
||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
||||
use Doctrine\ORM\Query;
|
||||
use Doctrine\Persistence\ManagerRegistry;
|
||||
use setasign\Fpdi\PdfParser\CrossReference\AbstractReader;
|
||||
|
||||
/**
|
||||
* @extends ServiceEntityRepository<Upload>
|
||||
@@ -38,7 +37,6 @@ class UploadRepository extends ServiceEntityRepository
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
public function getGlobal(): array
|
||||
{
|
||||
return $this
|
||||
@@ -70,7 +68,7 @@ class UploadRepository extends ServiceEntityRepository
|
||||
];
|
||||
|
||||
foreach ($documents as $document) {
|
||||
/** @var Upload $document */
|
||||
/* @var Upload $document */
|
||||
$data[] = [
|
||||
'value' => $document->getId(),
|
||||
'text' => $document->getDisplayName() ?? $document->getOriginalFilename(),
|
||||
@@ -82,7 +80,7 @@ class UploadRepository extends ServiceEntityRepository
|
||||
|
||||
public function getBatchDownloadListQuery(
|
||||
string $type = Upload::TYPE_INVOICE,
|
||||
string $status = Upload::STATUS_PAID
|
||||
string $status = Upload::STATUS_PAID,
|
||||
): Query {
|
||||
$qb = $this->createQueryBuilder('upload');
|
||||
|
||||
@@ -108,7 +106,7 @@ class UploadRepository extends ServiceEntityRepository
|
||||
|
||||
public function getBatchDownloadList(
|
||||
string $type = Upload::TYPE_INVOICE,
|
||||
string $status = Upload::STATUS_PAID
|
||||
string $status = Upload::STATUS_PAID,
|
||||
): array {
|
||||
return $this
|
||||
->getBatchDownloadListQuery($type, $status)
|
||||
|
||||
Reference in New Issue
Block a user