66
77use Jfcherng \Diff \Renderer \AbstractRenderer ;
88use Jfcherng \Diff \Renderer \Html \LineRenderer \AbstractLineRenderer ;
9+ use Jfcherng \Diff \Renderer \RendererConstant ;
910use Jfcherng \Diff \SequenceMatcher ;
1011use Jfcherng \Diff \Utility \LineRendererFactory ;
1112use Jfcherng \Utility \MbString ;
@@ -92,7 +93,11 @@ public function getChanges(): array
9293 ) {
9394 $ lines = \array_slice ($ a , $ i1 , ($ i2 - $ i1 ));
9495 $ lines = $ this ->formatLines ($ lines );
95- $ lines = \str_replace (static ::HTML_CLOSURES , static ::HTML_CLOSURES_DEL , $ lines );
96+ $ lines = \str_replace (
97+ RendererConstant::HTML_CLOSURES ,
98+ RendererConstant::HTML_CLOSURES_DEL ,
99+ $ lines
100+ );
96101 $ blocks [$ lastBlock ]['base ' ]['lines ' ] += $ lines ;
97102 }
98103
@@ -102,7 +107,11 @@ public function getChanges(): array
102107 ) {
103108 $ lines = \array_slice ($ b , $ j1 , ($ j2 - $ j1 ));
104109 $ lines = $ this ->formatLines ($ lines );
105- $ lines = \str_replace (static ::HTML_CLOSURES , static ::HTML_CLOSURES_INS , $ lines );
110+ $ lines = \str_replace (
111+ RendererConstant::HTML_CLOSURES ,
112+ RendererConstant::HTML_CLOSURES_INS ,
113+ $ lines
114+ );
106115 $ blocks [$ lastBlock ]['changed ' ]['lines ' ] += $ lines ;
107116 }
108117 }
@@ -184,7 +193,7 @@ protected function formatLines(array $lines): array
184193
185194 // glue all lines into a single string to get rid of multiple function calls later
186195 // unnecessary, but should improve performance if there are many lines
187- $ string = \implode (static ::IMPLODE_DELIMITER , $ lines );
196+ $ string = \implode (RendererConstant ::IMPLODE_DELIMITER , $ lines );
188197
189198 $ string = $ this ->expandTabs ($ string );
190199 $ string = $ this ->htmlSafe ($ string );
@@ -194,7 +203,7 @@ protected function formatLines(array $lines): array
194203 }
195204
196205 // split the string back to lines
197- return \explode (static ::IMPLODE_DELIMITER , $ string );
206+ return \explode (RendererConstant ::IMPLODE_DELIMITER , $ string );
198207 }
199208
200209 /**
0 commit comments