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