Total Complexity | 3 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
10 | class LineAndOffset |
||
11 | { |
||
12 | /** |
||
13 | * When spellcheckers gives the offset position of a misspelled word from the whole text's first character, |
||
14 | * this helps finding the offset position from line's first character instead. |
||
15 | * |
||
16 | * @param string $text Chunk of text from which the line and offset are computed |
||
17 | * @param int $offsetFromFirstCharacter Offset position from the text's first character |
||
18 | * |
||
19 | * @return array<int,int> Line number as the first element and offset from beginning of line as second element |
||
20 | */ |
||
21 | public static function findFromFirstCharacterOffset(string $text, int $offsetFromFirstCharacter): array |
||
42 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.