File tree Expand file tree Collapse file tree 1 file changed +15
-16
lines changed
lib/jblond/Diff/Renderer/Text Expand file tree Collapse file tree 1 file changed +15
-16
lines changed Original file line number Diff line number Diff line change @@ -53,22 +53,21 @@ public function render(): string
53
53
"\n " ,
54
54
$ this ->diff ->getArrayRange ($ this ->diff ->getOld (), $ i1 , $ i2 )
55
55
) . "\n" ;
56
- } else {
57
- if ($ tag == 'replace ' || $ tag == 'delete ' ) {
58
- $ diff .= '- ' .
59
- implode (
60
- "\n- " ,
61
- $ this ->diff ->getArrayRange ($ this ->diff ->getOld (), $ i1 , $ i2 )
62
- ) . "\n" ;
63
- }
64
-
65
- if ($ tag == 'replace ' || $ tag == 'insert ' ) {
66
- $ diff .= '+ ' .
67
- implode (
68
- "\n+ " ,
69
- $ this ->diff ->getArrayRange ($ this ->diff ->getNew (), $ j1 , $ j2 )
70
- ) . "\n" ;
71
- }
56
+ continue ;
57
+ }
58
+ if ($ tag == 'replace ' || $ tag == 'delete ' ) {
59
+ $ diff .= '- ' .
60
+ implode (
61
+ "\n- " ,
62
+ $ this ->diff ->getArrayRange ($ this ->diff ->getOld (), $ i1 , $ i2 )
63
+ ) . "\n" ;
64
+ }
65
+ if ($ tag == 'replace ' || $ tag == 'insert ' ) {
66
+ $ diff .= '+ ' .
67
+ implode (
68
+ "\n+ " ,
69
+ $ this ->diff ->getArrayRange ($ this ->diff ->getNew (), $ j1 , $ j2 )
70
+ ) . "\n" ;
72
71
}
73
72
}
74
73
}
You can’t perform that action at this time.
0 commit comments