From 75f5ce0e14039b8f2d9c477c99f28c203ff1394a Mon Sep 17 00:00:00 2001 From: DigiLive Date: Thu, 17 Dec 2020 07:38:24 +0100 Subject: [PATCH] Add method `generateLinesIgnore` Currently the line is commented out, because the method is not required until the deprecation period for missing this method is over. --- .../Diff/Renderer/SubRendererInterface.php | 24 +++++++++++++------ 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/lib/jblond/Diff/Renderer/SubRendererInterface.php b/lib/jblond/Diff/Renderer/SubRendererInterface.php index c3a9f74..d4d95f0 100644 --- a/lib/jblond/Diff/Renderer/SubRendererInterface.php +++ b/lib/jblond/Diff/Renderer/SubRendererInterface.php @@ -41,13 +41,6 @@ public function generateDiffHeader(): string; */ public function generateBlockHeader(array $changes): string; - /** - * Generate a string representation of lines that are skipped in the diff view. - * - * @return string Representation of skipped lines. - */ - public function generateSkippedLines(): string; - /** * Generate a string representation of lines without differences between both versions. * @@ -69,6 +62,23 @@ public function generateLinesEqual(array $changes): string; */ public function generateLinesInsert(array $changes): string; + /** + * Generate a string representation of lines that are skipped in the diff view. + * + * @return string Representation of skipped lines. + */ + public function generateSkippedLines(): string; + + /** + * Generate a string representation of lines with ignored differences between both versions. + * + * @param array $changes Contains the op-codes about the changes between two blocks of text. + * + * @return string Text with no difference. + * @todo: Uncomment once deprecation period is over. + */ + // public function generateLinesIgnore(array $changes): string; + /** * Generate a string representation of lines that are removed from the 2nd version. *