Total Complexity | 3 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
6 | class DiffStart extends DiffLineHandle |
||
7 | { |
||
8 | public function handle(string $line) |
||
9 | { |
||
10 | $foundVariables = sscanf( |
||
11 | $line, |
||
12 | '@@ -%d,%d +%d,%d @@' |
||
13 | ); |
||
14 | |||
15 | $newFrom = $foundVariables[2]; |
||
16 | |||
17 | $this->diffFileState->setCurrentPosition($newFrom - 1); |
||
18 | } |
||
19 | |||
20 | public function isValid(string $line): bool |
||
23 | } |
||
24 | } |
||
25 |