Skip to content

Commit

Permalink
Document generateLinesEqual()
Browse files Browse the repository at this point in the history
  • Loading branch information
DigiLive authored and DigiLive committed Nov 19, 2020
1 parent 73f6776 commit 8a193c9
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions lib/jblond/Diff/Renderer/SubRendererInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
*
* PHP version 7.2 or greater
*
* @package jblond\Diff\Renderer\Html
* @author Ferry Cools <[email protected]>
* @package jblond\Diff\Renderer\Html
* @author Ferry Cools <[email protected]>
* @copyright (c) 2020 Ferry Cools
* @license New BSD License http://www.opensource.org/licenses/bsd-license.php
* @version 2.3.0
* @link https://github.com/JBlond/php-diff
* @license New BSD License http://www.opensource.org/licenses/bsd-license.php
* @version 2.3.0
* @link https://github.com/JBlond/php-diff
*/
interface SubRendererInterface
{
Expand All @@ -35,7 +35,7 @@ public function generateDiffHeader(): string;
/**
* Generate a string representation of the start of a block.
*
* @param array $changes Contains the op-codes about the changes between two blocks of text.
* @param array $changes Contains the op-codes about the changes between two blocks of text.
*
* @return string Start of the block.
*/
Expand All @@ -51,7 +51,10 @@ public function generateSkippedLines(): string;
/**
* Generate a string representation of lines without differences between both versions.
*
* @param array $changes Contains the op-codes about the changes between two blocks of text.
* Note: Depending on the options, lines can be marked as being equal, while the contents actually differ.
* (E.g. ignoreWhitespace and ignoreCase)
*
* @param array $changes Contains the op-codes about the changes between two blocks of text.
*
* @return string Text with no difference.
*/
Expand All @@ -60,7 +63,7 @@ public function generateLinesEqual(array $changes): string;
/**
* Generate a string representation of lines that are added to the 2nd version.
*
* @param array $changes Contains the op-codes about the changes between two blocks of text.
* @param array $changes Contains the op-codes about the changes between two blocks of text.
*
* @return string Added text.
*/
Expand All @@ -69,7 +72,7 @@ public function generateLinesInsert(array $changes): string;
/**
* Generate a string representation of lines that are removed from the 2nd version.
*
* @param array $changes Contains the op-codes about the changes between two blocks of text.
* @param array $changes Contains the op-codes about the changes between two blocks of text.
*
* @return string Removed text.
*/
Expand All @@ -78,7 +81,7 @@ public function generateLinesDelete(array $changes): string;
/**
* Generate a string representation of lines that are partially modified.
*
* @param array $changes Contains the op-codes about the changes between two blocks of text.
* @param array $changes Contains the op-codes about the changes between two blocks of text.
*
* @return string Modified text.
*/
Expand All @@ -87,7 +90,7 @@ public function generateLinesReplace(array $changes): string;
/**
* Generate a string representation of the end of a block.
*
* @param array $changes Contains the op-codes about the changes between two blocks of text.
* @param array $changes Contains the op-codes about the changes between two blocks of text.
*
* @return string End of the block.
*/
Expand Down

0 comments on commit 8a193c9

Please sign in to comment.