Skip to content

Commit c7b35e0

Browse files
committed
Remove return-by-ref
1 parent 53f9c7a commit c7b35e0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Text/LanguageDetect.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ public function detect($sample, $limit = 0)
712712
$sample_obj->setPadStart(!$this->_perl_compatible);
713713
$sample_obj->analyze();
714714

715-
$trigram_freqs =& $sample_obj->getTrigramRanks();
715+
$trigram_freqs = $sample_obj->getTrigramRanks();
716716
$trigram_count = count($trigram_freqs);
717717

718718
if ($trigram_count == 0) {
@@ -723,7 +723,7 @@ public function detect($sample, $limit = 0)
723723

724724
// use unicode block detection to narrow down the possibilities
725725
if ($this->_use_unicode_narrowing) {
726-
$blocks =& $sample_obj->getUnicodeBlocks();
726+
$blocks = $sample_obj->getUnicodeBlocks();
727727

728728
if (is_array($blocks)) {
729729
$present_blocks = array_keys($blocks);

Text/LanguageDetect/Parser.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ function setUnicodeSkipSymbols($bool = true)
180180
* @access public
181181
* @return array trigram ranks in the text sample
182182
*/
183-
function &getTrigramRanks()
183+
function getTrigramRanks()
184184
{
185185
return $this->_trigram_ranks;
186186
}
@@ -193,7 +193,7 @@ function &getTrigramRanks()
193193
* @access public
194194
* @return array trigram freqencies in the text sample
195195
*/
196-
function &getTrigramFreqs()
196+
function getTrigramFreqs()
197197
{
198198
return $this->_trigram;
199199
}
@@ -204,7 +204,7 @@ function &getTrigramFreqs()
204204
* @access public
205205
* @return array unicode blocks in the text sample
206206
*/
207-
function &getUnicodeBlocks()
207+
function getUnicodeBlocks()
208208
{
209209
return $this->_unicode_blocks;
210210
}

0 commit comments

Comments
 (0)