Completed
Pull Request — develop (#27)
by Chris
02:13
created

MediaSegment   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 13
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A shouldParseNextLine() 0 8 2
1
<?php
2
3
namespace Chrisyue\PhpM3u8\M3u8\Core;
4
5
use Chrisyue\PhpM3u8\M3u8\SequenceAwareTrait;
6
7
/**
8
 * @Annotation
9
 */
10
class MediaSegment extends AbstractAnnotationReadable implements ChildCoreInterface
11
{
12
    use SequenceAwareTrait;
13
14
    protected function shouldParseNextLine($result, $parsedSequence)
15
    {
16
        if ($parsedSequence < 0) {
17
            return false;
18
        }
19
20
        return null === $result->uri;
21
    }
22
}
23