Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
51 | public function getHeaders() |
||
52 | { |
||
53 | $headers = parent::getHeaders(); |
||
54 | |||
55 | if (!$this->getFile()) { |
||
56 | throw new RuntimeException('Missing file'); |
||
57 | } |
||
58 | |||
59 | $headers[] = sprintf( |
||
60 | 'Content-Range: %d-%d/%d', |
||
61 | $this->from, |
||
62 | $this->to, |
||
63 | $this->length |
||
64 | ); |
||
65 | |||
66 | return $headers; |
||
67 | } |
||
69 |