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 = 10-11 lines in 2 locations

spec/Backend/ChainCacheSpec.php 1 location

@@ 123-133 (lines=11) @@
120
        $this->flush()->shouldReturn(true);
121
    }
122
123
    function it_can_retrieve_the_time_to_live(Cache $cacheOne, Cache $cacheTwo)
124
    {
125
        $cacheOne->getTimeToLive('foo')->willReturn(null);
126
        $cacheTwo->getTimeToLive('foo')->willReturn(100);
127
128
        $cacheOne->getTimeToLive('bar')->willReturn(null);
129
        $cacheTwo->getTimeToLive('bar')->willReturn(null);
130
131
        $this->getTimeToLive('foo')->shouldReturn(100);
132
        $this->getTimeToLive('bar')->shouldReturn(null);
133
    }
134
}
135

spec/Backend/RedisCacheSpec.php 1 location

@@ 115-124 (lines=10) @@
112
        $this->deleteItems(['foo', 'bar'])->shouldReturn(true);
113
    }
114
115
    function it_can_get_the_time_to_live(Redis $redis)
116
    {
117
        $redis->ttl('foo')->willReturn(false);
118
        $redis->ttl('bar')->willReturn(-1);
119
        $redis->ttl('foobar')->willReturn(15);
120
121
        $this->getTimeToLive('foo')->shouldReturn(null);
122
        $this->getTimeToLive('bar')->shouldReturn(null);
123
        $this->getTimeToLive('foobar')->shouldReturn(15);
124
    }
125
}
126