barracudanetworks/ArchiveStream-php

View on GitHub
src/ZipArchive.php

Summary

Maintainability
A
3 hrs
Test Coverage

Method add_cdr_file has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function add_cdr_file(array $args)
    {
        list($name, $opt, $meth, $crc, $zlen, $len, $ofs, $genb, $file_attribute) = $args;

        // convert the 64 bit ints to 2 32bit ints
Severity: Minor
Found in src/ZipArchive.php - About 1 hr to fix

    Method add_stream_file_header has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        protected function add_stream_file_header($name, $size, array $opt, $meth)
        {
            // strip leading slashes from file name
            // (fixes bug in windows archive viewer)
            $name = preg_replace('/^\\/+/', '', $name);
    Severity: Minor
    Found in src/ZipArchive.php - About 1 hr to fix

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

          private function add_to_cdr($name, array $opt, $meth, $crc, $zlen, $len, $rec_len, $genb = 0, $fattr = 0x20)
      Severity: Major
      Found in src/ZipArchive.php - About 1 hr to fix

        Missing file doc comment
        Open

        namespace Barracuda\ArchiveStream;
        Severity: Minor
        Found in src/ZipArchive.php by phpcodesniffer

        There are no issues that match your filters.

        Category
        Status