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.

Code Duplication    Length = 19-19 lines in 2 locations

src/Sequence/Calculator/Numeric/Decrementer.php 1 location

@@ 7-25 (lines=19) @@
4
5
use Ayaml\Sequence\Calculator;
6
7
class Decrementer extends Calculator implements NumericCalculatorInterface
8
{
9
    /**
10
     * @return \Ayaml\ContainerCollection
11
     */
12
    public function byOne()
13
    {
14
        return $this->by(function ($criteria) { return $criteria - 1; });
15
    }
16
17
    /**
18
     * @param $overwriteVal
19
     * @return bool
20
     */
21
    public function isEnd($overwriteVal)
22
    {
23
        return $overwriteVal < $this->end;
24
    }
25
}
26

src/Sequence/Calculator/Numeric/Incrementer.php 1 location

@@ 7-25 (lines=19) @@
4
5
use Ayaml\Sequence\Calculator;
6
7
class Incrementer extends Calculator implements NumericCalculatorInterface
8
{
9
    /**
10
     * @return \Ayaml\ContainerCollection
11
     */
12
    public function byOne()
13
    {
14
        return $this->by(function ($criteria) { return $criteria + 1; });
15
    }
16
17
    /**
18
     * @param $overwriteVal
19
     * @return bool
20
     */
21
    public function isEnd($overwriteVal)
22
    {
23
        return $overwriteVal > $this->end;
24
    }
25
}
26