9
9
*
10
10
* PHP version 7.2 or greater
11
11
*
12
- * @package jblond\Diff\Renderer\Html
13
- * @author Ferry Cools <[email protected] >
12
+ * @package jblond\Diff\Renderer\Html
13
+ * @author Ferry Cools <[email protected] >
14
14
* @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
18
18
*/
19
19
interface SubRendererInterface
20
20
{
@@ -35,7 +35,7 @@ public function generateDiffHeader(): string;
35
35
/**
36
36
* Generate a string representation of the start of a block.
37
37
*
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.
39
39
*
40
40
* @return string Start of the block.
41
41
*/
@@ -51,7 +51,10 @@ public function generateSkippedLines(): string;
51
51
/**
52
52
* Generate a string representation of lines without differences between both versions.
53
53
*
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.
55
58
*
56
59
* @return string Text with no difference.
57
60
*/
@@ -60,7 +63,7 @@ public function generateLinesEqual(array $changes): string;
60
63
/**
61
64
* Generate a string representation of lines that are added to the 2nd version.
62
65
*
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.
64
67
*
65
68
* @return string Added text.
66
69
*/
@@ -69,7 +72,7 @@ public function generateLinesInsert(array $changes): string;
69
72
/**
70
73
* Generate a string representation of lines that are removed from the 2nd version.
71
74
*
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.
73
76
*
74
77
* @return string Removed text.
75
78
*/
@@ -78,7 +81,7 @@ public function generateLinesDelete(array $changes): string;
78
81
/**
79
82
* Generate a string representation of lines that are partially modified.
80
83
*
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.
82
85
*
83
86
* @return string Modified text.
84
87
*/
@@ -87,7 +90,7 @@ public function generateLinesReplace(array $changes): string;
87
90
/**
88
91
* Generate a string representation of the end of a block.
89
92
*
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.
91
94
*
92
95
* @return string End of the block.
93
96
*/
0 commit comments