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.

AppendIterator::append()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 4
Bugs 1 Features 1
Metric Value
c 4
b 1
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
/**
4
 * Derived by Guzzle's AppendIterator https://github.com/guzzle/iterator/blob/master/AppendIterator.php
5
 * credit goes to the original authors.
6
 */
7
namespace Pipes\Iterator;
8
9
/**
10
 * AppendIterator that is not affected by https://bugs.php.net/bug.php?id=49104.
11
 */
12
class AppendIterator extends \AppendIterator
13
{
14
    /**
15
     * Works around the bug in which PHP calls rewind() and next() when appending.
16
     *
17
     * @param \Traversable $iterator Iterator to append
18
     */
19
    public function append(\Iterator $iterator)
20
    {
21
        $this->getArrayIterator()->append($iterator);
0 ignored issues
show
Bug introduced by
The method append cannot be called on $this->getArrayIterator() (of type null).

Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.

Loading history...
22
    }
23
}
24