Skip to content

Commit 8a193c9

Browse files
committed
Document generateLinesEqual()
1 parent 73f6776 commit 8a193c9

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

Diff for: lib/jblond/Diff/Renderer/SubRendererInterface.php

+14-11
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
*
1010
* PHP version 7.2 or greater
1111
*
12-
* @package jblond\Diff\Renderer\Html
13-
* @author Ferry Cools <[email protected]>
12+
* @package jblond\Diff\Renderer\Html
13+
* @author Ferry Cools <[email protected]>
1414
* @copyright (c) 2020 Ferry Cools
15-
* @license New BSD License http://www.opensource.org/licenses/bsd-license.php
16-
* @version 2.3.0
17-
* @link https://github.com/JBlond/php-diff
15+
* @license New BSD License http://www.opensource.org/licenses/bsd-license.php
16+
* @version 2.3.0
17+
* @link https://github.com/JBlond/php-diff
1818
*/
1919
interface SubRendererInterface
2020
{
@@ -35,7 +35,7 @@ public function generateDiffHeader(): string;
3535
/**
3636
* Generate a string representation of the start of a block.
3737
*
38-
* @param array $changes Contains the op-codes about the changes between two blocks of text.
38+
* @param array $changes Contains the op-codes about the changes between two blocks of text.
3939
*
4040
* @return string Start of the block.
4141
*/
@@ -51,7 +51,10 @@ public function generateSkippedLines(): string;
5151
/**
5252
* Generate a string representation of lines without differences between both versions.
5353
*
54-
* @param array $changes Contains the op-codes about the changes between two blocks of text.
54+
* Note: Depending on the options, lines can be marked as being equal, while the contents actually differ.
55+
* (E.g. ignoreWhitespace and ignoreCase)
56+
*
57+
* @param array $changes Contains the op-codes about the changes between two blocks of text.
5558
*
5659
* @return string Text with no difference.
5760
*/
@@ -60,7 +63,7 @@ public function generateLinesEqual(array $changes): string;
6063
/**
6164
* Generate a string representation of lines that are added to the 2nd version.
6265
*
63-
* @param array $changes Contains the op-codes about the changes between two blocks of text.
66+
* @param array $changes Contains the op-codes about the changes between two blocks of text.
6467
*
6568
* @return string Added text.
6669
*/
@@ -69,7 +72,7 @@ public function generateLinesInsert(array $changes): string;
6972
/**
7073
* Generate a string representation of lines that are removed from the 2nd version.
7174
*
72-
* @param array $changes Contains the op-codes about the changes between two blocks of text.
75+
* @param array $changes Contains the op-codes about the changes between two blocks of text.
7376
*
7477
* @return string Removed text.
7578
*/
@@ -78,7 +81,7 @@ public function generateLinesDelete(array $changes): string;
7881
/**
7982
* Generate a string representation of lines that are partially modified.
8083
*
81-
* @param array $changes Contains the op-codes about the changes between two blocks of text.
84+
* @param array $changes Contains the op-codes about the changes between two blocks of text.
8285
*
8386
* @return string Modified text.
8487
*/
@@ -87,7 +90,7 @@ public function generateLinesReplace(array $changes): string;
8790
/**
8891
* Generate a string representation of the end of a block.
8992
*
90-
* @param array $changes Contains the op-codes about the changes between two blocks of text.
93+
* @param array $changes Contains the op-codes about the changes between two blocks of text.
9194
*
9295
* @return string End of the block.
9396
*/

0 commit comments

Comments
 (0)