Skip to content

Commit 874b98c

Browse files
committed
Improve const phpdoc
Signed-off-by: Jack Cherng <jfcherng@gmail.com>
1 parent 1bf57a4 commit 874b98c

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

src/SequenceMatcher.php

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,20 @@
1313
*/
1414
final class SequenceMatcher
1515
{
16-
const OP_NOP = 0; // no operation
17-
const OP_EQ = 1 << 0; // equal
18-
const OP_DEL = 1 << 1; // delete
19-
const OP_INS = 1 << 2; // insert
20-
const OP_REP = 1 << 3; // replace
16+
/** @var int 0, opcode: no operation */
17+
const OP_NOP = 0;
18+
19+
/** @var int 1, opcode: equal */
20+
const OP_EQ = 1 << 0;
21+
22+
/** @var int 2, opcode: delete */
23+
const OP_DEL = 1 << 1;
24+
25+
/** @var int 4, opcode: insert */
26+
const OP_INS = 1 << 2;
27+
28+
/** @var int 8, opcode: replace */
29+
const OP_REP = 1 << 3;
2130

2231
const OP_INT_TO_STR_MAP = [
2332
self::OP_NOP => 'nop',

0 commit comments

Comments
 (0)