Passed
Push — master ( 31fead...1101eb )
by Ruben
02:09
created

Statistics::ABtest()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
1
<?php
2
/**
3
 *
4
 * (c) Ruben Dorado <[email protected]>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
namespace SiteAnalyzer;
10
11
12
/**
13
 * class Statistics
14
 *
15
 * @package   SiteAnalyzer
16
 * @author    Ruben Dorado <[email protected]>
17
 * @copyright 2018 Ruben Dorado
18
 * @license   http://www.opensource.org/licenses/MIT The MIT License
19
 */
20
class Statistics
21
{
22
    
23
    /*
24
     * @param
25
     */
26
    function ABtest($testCounts, $targetCounts, $options)
0 ignored issues
show
Unused Code introduced by
The parameter $targetCounts 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
    function ABtest($testCounts, /** @scrutinizer ignore-unused */ $targetCounts, $options)

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 $options 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
    function ABtest($testCounts, $targetCounts, /** @scrutinizer ignore-unused */ $options)

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...
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
Unused Code introduced by
The parameter $testCounts 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
    function ABtest(/** @scrutinizer ignore-unused */ $testCounts, $targetCounts, $options)

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
        return [];
29
    }
30
    
31
}
32