BookStackApp/BookStack

View on GitHub
app/Uploads/ImageRepo.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method saveNew has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public function saveNew(UploadedFile $uploadFile, string $type, int $uploadedTo = 0, int $resizeWidth = null, int $resizeHeight = null, bool $keepRatio = true): Image
Severity: Minor
Found in app/Uploads/ImageRepo.php - About 45 mins to fix

    Method getPaginatedByType has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            string $type,
            int $page = 0,
            int $pageSize = 24,
            int $uploadedTo = null,
            string $search = null,
    Severity: Minor
    Found in app/Uploads/ImageRepo.php - About 45 mins to fix

      Method getEntityFiltered has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              string $type,
              ?string $filterType,
              int $page,
              int $pageSize,
              int $uploadedTo,
      Severity: Minor
      Found in app/Uploads/ImageRepo.php - About 45 mins to fix

        There are no issues that match your filters.

        Category
        Status