Zipped   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
dl 0
loc 7
rs 10
c 1
b 0
f 0
ccs 2
cts 2
cp 1
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A processDecode() 0 3 1
1
<?php
2
3
namespace kalanis\RemoteRequest\Protocols\Http\Answer\DecodeStrings;
4
5
6
/**
7
 * Class Zipped
8
 * @package kalanis\RemoteRequest\Protocols\Http\Answer\DecodeStrings
9
 * search and add zipped content first
10
 * Unzip zipped content - Lempel-Ziv coding (LZ77); contains crc32
11
 */
12
class Zipped extends ADecoder
13
{
14
    protected array $contentEncoded = ['gzip', 'x-gzip'];
15
16 1
    public function processDecode(string $content): string
17
    {
18 1
        return strval(gzdecode($content));
19
    }
20
}
21