Skip to content

Commit

Permalink
Minor improvement on modiFyMatch for Analisys
Browse files Browse the repository at this point in the history
  • Loading branch information
Ostico committed Sep 21, 2018
1 parent 1fbd940 commit 1b9af89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Features/Microsoft.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public function modifyMatches( Array $matches ){
* Microsoft send alt-trans with the same source of the real source, MyMemory identify these matches as 100% because of src == src
* We force these matches to be 99
*/
if( $property[ 'value' ] < 100 && (int)str_replace( "%", "", $match[ 'match' ] ) >= 100 ){
if( (int)str_replace( "%", "", $property[ 'value' ] ) < 100 && (int)str_replace( "%", "", $match[ 'match' ] ) >= 100 ){
$matches[ $pos ][ 'match' ] = '99%';
}

Expand Down

0 comments on commit 1b9af89

Please sign in to comment.