nordsoftware/lumen-file-manager

View on GitHub

Showing 8 of 14 total issues

File has 25 functions (exceeds 20 allowed). Consider refactoring.
Open

class File implements FileContract
{
    /**
     * @ORM\Id
     * @ORM\GeneratedValue
Severity: Minor
Found in src/Doctrine/ORM/File.php - About 2 hrs to fix

    File has 25 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class File implements FileContract
    {
    
        /**
         * @var \MongoId
    Severity: Minor
    Found in src/Doctrine/ODM/File.php - About 2 hrs to fix

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

          public function saveFile(FileInfo $info, array $options = [])
          {
              if (!isset($options['name'])) {
                  $filename        = $this->getFilenameFromFileInfo($info);
                  $options['name'] = substr($filename, 0, (strrpos($filename, '.')));
      Severity: Minor
      Found in src/FileManager.php - About 1 hr to fix

        Method __construct has 9 arguments (exceeds 4 allowed). Consider refactoring.
        Open

                $id,
                $name,
                $extension,
                $path,
                $mimeType,
        Severity: Major
        Found in src/Doctrine/ODM/File.php - About 1 hr to fix

          Method createFile has 9 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              public function createFile($id, $name, $extension, $path, $mimeType, $byteSize, $data, $disk, Carbon $savedAt)
          Severity: Major
          Found in src/Eloquent/FileFactory.php - About 1 hr to fix

            Method createFile has 9 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                public function createFile($id, $name, $extension, $path, $mimeType, $byteSize, $data, $disk, Carbon $savedAt)
            Severity: Major
            Found in src/Doctrine/FileFactory.php - About 1 hr to fix

              Method __construct has 9 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                      $id,
                      $name,
                      $extension,
                      $path,
                      $mimeType,
              Severity: Major
              Found in src/Doctrine/ORM/File.php - About 1 hr to fix

                Method createFile has 9 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    public function createFile($id, $name, $extension, $path, $mimeType, $byteSize, $data, $disk, Carbon $savedAt);
                Severity: Major
                Found in src/Contracts/FileFactory.php - About 1 hr to fix
                  Severity
                  Category
                  Status
                  Source
                  Language