rene-s/Seafile-PHP-SDK

View on GitHub
src/Resource/Multi.php

Summary

Maintainability
A
3 hrs
Test Coverage

Method copy has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function copy(
        LibraryType $srcLibrary,
        array       $srcPaths,
        LibraryType $dstLibrary,
        string      $dstDirectoryPath,
Severity: Minor
Found in src/Resource/Multi.php - About 1 hr to fix

    Method delete has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function delete(LibraryType $library, array $paths): bool
        {
            // do not allow empty paths
            if (empty($paths)) {
                return false;
    Severity: Minor
    Found in src/Resource/Multi.php - About 1 hr to fix

      Method copy has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              LibraryType $srcLibrary,
              array       $srcPaths,
              LibraryType $dstLibrary,
              string      $dstDirectoryPath,
              int         $operation = self::OPERATION_COPY
      Severity: Minor
      Found in src/Resource/Multi.php - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status