Skip to content

Commit 758e7fb

Browse files
committed
Removed unused method
Removed extractExcerptTerm method that was not used anymore.
1 parent 62dbff0 commit 758e7fb

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/Corpus/TextCorpus.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -149,23 +149,6 @@ public function concordancePositions(string $text, string $needle, int $contextL
149149
return $positions;
150150
}
151151

152-
/**
153-
* Mark the neddle and get its context
154-
*
155-
* @return String
156-
*/
157-
private function extractExcerptTerm(int $needlePos, int $needleLength, String $text, int $contextLength, bool $mark = false)
158-
{
159-
//marking the term
160-
$text = ($mark) ? Text::markString($text, $needlePos, $needleLength, ['{{','}}']) : $text;
161-
$needleLength = ($mark) ? $needleLength+4 : $needleLength;
162-
163-
//extracts the excerpt
164-
$text = Text::getExcerpt($text, $needlePos, $needleLength, $contextLength);
165-
166-
return utf8_encode($text);
167-
}
168-
169152
/**
170153
* Get percentage of times the needle shows up in the text
171154
* @param string $needle

0 commit comments

Comments
 (0)