Completed
Pull Request — master (#10)
by Akpé Aurelle Emmanuel Moïse
02:01
created

distance   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 5
eloc 1
dl 0
loc 24
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A hamming() 0 2 1
A dice() 0 2 1
A levenshtein() 0 2 1
A jaroWinkler() 0 2 1
A levenshteinDamerau() 0 2 1
1
<?php
2
3
/**
4
*
5
* @Name : similar-text
6
* @Programmer : Akpé Aurelle Emmanuel Moïse Zinsou
7
* @Date : 2019-04-01
8
* @Released under : https://github.com/manuwhat/similar-text/blob/master/LICENSE
9
* @Repository : https://github.com/manuwhat/similar
10
*
11
**/
12
13
14
namespace EZAMA{
15
    class distance extends similar_text
16
    {
17
        public static function jaroWinkler($a, $b, $round=2)
0 ignored issues
show
Unused Code introduced by
The parameter $a is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

17
        public static function jaroWinkler(/** @scrutinizer ignore-unused */ $a, $b, $round=2)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $b is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

17
        public static function jaroWinkler($a, /** @scrutinizer ignore-unused */ $b, $round=2)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $round is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

17
        public static function jaroWinkler($a, $b, /** @scrutinizer ignore-unused */ $round=2)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
18
        {
19
        }
20
        
21
22
        public static function hamming($a, $b)
0 ignored issues
show
Unused Code introduced by
The parameter $a is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

22
        public static function hamming(/** @scrutinizer ignore-unused */ $a, $b)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $b is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

22
        public static function hamming($a, /** @scrutinizer ignore-unused */ $b)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
23
        {
24
        }
25
        
26
        public static function dice($a, $b, $round=2)
0 ignored issues
show
Unused Code introduced by
The parameter $b is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

26
        public static function dice($a, /** @scrutinizer ignore-unused */ $b, $round=2)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $a is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

26
        public static function dice(/** @scrutinizer ignore-unused */ $a, $b, $round=2)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $round is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

26
        public static function dice($a, $b, /** @scrutinizer ignore-unused */ $round=2)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
27
        {
28
        }
29
        
30
       
31
        
32
        public static function levenshtein($a, $b)
0 ignored issues
show
Unused Code introduced by
The parameter $b is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

32
        public static function levenshtein($a, /** @scrutinizer ignore-unused */ $b)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $a is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

32
        public static function levenshtein(/** @scrutinizer ignore-unused */ $a, $b)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
33
        {
34
        }
35
        
36
        
37
        public static function levenshteinDamerau($a, $b)
0 ignored issues
show
Unused Code introduced by
The parameter $b is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

37
        public static function levenshteinDamerau($a, /** @scrutinizer ignore-unused */ $b)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $a is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

37
        public static function levenshteinDamerau(/** @scrutinizer ignore-unused */ $a, $b)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
38
        {
39
        }
40
    }
41
    
42
    
43
}
44