@@ -46,17 +46,12 @@ class SequenceMatcher
46
46
private $ b2j = [];
47
47
48
48
/**
49
- * @var array
50
- */
51
- private $ options = [];
52
-
53
- /**
54
- * @var null|array
49
+ * @var array A list of all of the op-codes for the differences between the compared strings.
55
50
*/
56
51
private $ opCodes ;
57
52
58
53
/**
59
- * @var null| array
54
+ * @var array A nested set of arrays for all of the matching sub-sequences the compared strings.
60
55
*/
61
56
private $ matchingBlocks ;
62
57
@@ -72,9 +67,8 @@ class SequenceMatcher
72
67
];
73
68
74
69
/**
75
- * The constructor. With the sequences being passed, they'll be set for the
76
- * sequence matcher and it will perform a basic cleanup & calculate junk
77
- * elements.
70
+ * The constructor. With the sequences being passed, they'll be set for the sequence matcher and it will perform a
71
+ * basic cleanup & calculate junk elements.
78
72
*
79
73
* @param string|array $old A string or array containing the lines to compare against.
80
74
* @param string|array $new A string or array containing the lines to compare.
@@ -295,11 +289,9 @@ public function getGroupedOpCodes(): array
295
289
}
296
290
297
291
/**
298
- * Return a list of all of the op codes for the differences between the
299
- * two strings.
292
+ * Return a list of all of the op codes for the differences between the two strings.
300
293
*
301
- * The nested array returned contains an array describing the op code
302
- * which includes:
294
+ * The nested array returned contains an array describing the op code which includes:
303
295
* 0 - The type of tag (as described below) for the op code.
304
296
* 1 - The beginning line in the first sequence.
305
297
* 2 - The end line in the first sequence.
@@ -366,12 +358,10 @@ public function getOpCodes(): array
366
358
}
367
359
368
360
/**
369
- * Return a nested set of arrays for all of the matching sub-sequences
370
- * in the strings $a and $b.
361
+ * Return a nested set of arrays for all of the matching sub-sequences in compared strings $a and $b.
371
362
*
372
- * Each block contains the lower constraint of the block in $a, the lower
373
- * constraint of the block in $b and finally the number of lines that the
374
- * block continues for.
363
+ * Each block contains the lower constraint of the block in $a, the lower constraint of the block in $b and finally
364
+ * the number of lines that the block continues for.
375
365
*
376
366
* @return array Nested array of the matching blocks, as described by the function.
377
367
*/
0 commit comments