GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Branch develop (05114b)
by Sébastien
05:38 queued 03:11
created

testPruneFiltersCollectionInPlace()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 23
Code Lines 15

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 15
nc 1
nop 0
dl 0
loc 23
rs 9.0856
c 0
b 0
f 0
1
<?php
2
/**
3
 * Novactive Collection.
4
 *
5
 * @author    Luke Visinoni <[email protected], [email protected]>
6
 * @author    Sébastien Morel <[email protected], [email protected]>
7
 * @copyright 2017 Novactive
8
 * @license   MIT
9
 */
10
11
namespace Novactive\Tests;
12
13
use Novactive\Collection\Factory;
14
15
/**
16
 * Class PruneCollectionTest.
17
 */
18
class PruneCollectionTest extends UnitTestCase
19
{
20
    public function testPruneFiltersCollectionInPlace()
21
    {
22
        $coll = Factory::create($this->fixtures['names']);
23
        $this->assertCount(10, $coll);
24
        $this->assertSame(
25
            $coll,
26
            $coll->prune(
27
                function ($value, $key) {
28
                    return $key % 2 == 0;
29
                }
30
            )
31
        );
32
        $this->assertCount(5, $coll);
33
        $this->assertSame(
34
            $coll,
35
            $coll->prune(
36
                function ($value, $key) {
0 ignored issues
show
Unused Code introduced by
The parameter $key is not used and could be removed.

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

Loading history...
37
                    return strlen($value) >= 6;
38
                }
39
            )
40
        );
41
        $this->assertCount(3, $coll);
42
    }
43
}
44