Code Duplication    Length = 10-10 lines in 2 locations

htdocs/class/libraries/vendor/ircmaxell/random-lib/test/Unit/RandomLib/Source/AbstractSourceTest.php 1 location

@@ 36-45 (lines=10) @@
33
        return new Strength(Strength::VERYLOW);
34
    }
35
36
    public static function provideGenerate()
37
    {
38
        $data = array();
39
        for ($i = 0; $i < 100; $i += 5) {
40
            $not = $i > 0 ? str_repeat(chr(0), $i) : chr(0);
41
            $data[] = array($i, $not);
42
        }
43
44
        return $data;
45
    }
46
47
    public function testGetStrength()
48
    {

htdocs/class/libraries/vendor/ircmaxell/random-lib/test/Unit/RandomLib/Source/SodiumTest.php 1 location

@@ 17-26 (lines=10) @@
14
15
class SodiumTest extends \PHPUnit_Framework_TestCase
16
{
17
    public static function provideGenerate()
18
    {
19
        $data = array();
20
        for ($i = 1; $i < 100; $i += 5) {
21
            $not = str_repeat(chr(0), $i);
22
            $data[] = array($i, $not);
23
        }
24
25
        return $data;
26
    }
27
28
    
29
    public function testGetStrength()