Skip to content

Commit f1d7fdc

Browse files
committed
clean up
1 parent c8efb81 commit f1d7fdc

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
}
99
],
1010
"type": "library",
11-
"description": "A comprehensive library for generating differences between two hashable objects (strings or arrays).",
11+
"description": "A comprehensive library for generating differences between two hash able objects (strings or arrays).",
1212
"keywords": [
1313
"php",
1414
"diff"

lib/Diff.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ class Diff
8383
*
8484
* @param array $a Array containing the lines of the first string to compare.
8585
* @param array $b Array containing the lines for the second string to compare.
86+
* @param array $options Array for the options
8687
*/
8788
public function __construct($a, $b, $options=array())
8889
{

lib/Diff/Renderer/Html/Array.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ protected function formatLines($lines)
235235
function fixSpaces($matches)
236236
{
237237
$buffer = '';
238+
$count = 0;
238239
foreach($matches as $spaces){
239240
$count = strlen($spaces);
240241
if($count == 0) {

lib/Diff/SequenceMatcher.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ class Diff_SequenceMatcher
6767
*/
6868
private $b2j = array();
6969

70+
private $juncDict = array();
71+
7072
private $options = array();
7173

7274
private $defaultOptions = array(
@@ -83,6 +85,7 @@ class Diff_SequenceMatcher
8385
* @param string|array $a A string or array containing the lines to compare against.
8486
* @param string|array $b A string or array containing the lines to compare.
8587
* @param string|array $junkCallback Either an array or string that references a callback function (if there is one) to determine 'junk' characters.
88+
* @param array $options
8689
*/
8790
public function __construct($a, $b, $junkCallback=null, $options)
8891
{
@@ -207,6 +210,7 @@ private function chainB()
207210
* Checks if a particular character is in the junk dictionary
208211
* for the list of junk characters.
209212
*
213+
* @param string $b
210214
* @return boolean $b True if the character is considered junk. False if not.
211215
*/
212216
private function isBJunk($b)

0 commit comments

Comments
 (0)