Completed
Push — master ( b741a0...9cc28b )
by Joel
06:30
created

TarStream   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getSize() 0 4 1
1
<?php
2
3
namespace Docker\Stream;
4
5
use GuzzleHttp\Psr7\Stream;
6
7
/**
8
 * This class avoid a bug in PHP where fstat return a size of 0 for process stream
9
 */
10
class TarStream extends Stream
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15
    public function getSize()
16
    {
17
        return null;
18
    }
19
}
20