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/Akeneo/Bundle/MeasureBundle/Convert/MeasureConverterSpec.php 1 location

@@ 14-23 (lines=10) @@
11
12
class MeasureConverterSpec extends ObjectBehavior
13
{
14
    function let()
15
    {
16
        $filename = realpath(dirname(__FILE__) .'/../Resources/config/measure-test.yml');
17
        if (!file_exists($filename)) {
18
            throw new \Exception(sprintf('Config file "%s" does not exist', $filename));
19
        }
20
21
        $config = Yaml::parse(file_get_contents($filename));
22
        $this->beConstructedWith($config);
23
    }
24
25
    function it_allows_to_define_the_family()
26
    {

spec/Akeneo/Bundle/MeasureBundle/Manager/MeasureManagerSpec.php 1 location

@@ 17-27 (lines=11) @@
14
 */
15
class MeasureManagerSpec extends ObjectBehavior
16
{
17
    function let()
18
    {
19
        $filename = realpath(dirname(__FILE__) .'/../Resources/config/measure-test.yml');
20
        if (!file_exists($filename)) {
21
            throw new \Exception(sprintf('Config file "%s" does not exist', $filename));
22
        }
23
24
        $config = Yaml::parse(file_get_contents($filename));
25
26
        $this->setMeasureConfig($config['measures_config']);
27
    }
28
29
    function it_throws_an_exception_when_try_to_get_symbols_of_unknown_family()
30
    {