Code Duplication    Length = 7-7 lines in 2 locations

src/Reader/ApiCfpReader.php 1 location

@@ 49-55 (lines=7) @@
46
        $this->baseUri = str_Replace('/cfp', '', $baseUri);
47
48
        $this->bearerToken = $bearerToken;
49
        if (null === $client) {
50
            $client = new Client([
51
                'headers' => [
52
                    'Accept' => 'application/json',
53
                ]
54
            ]);
55
        }
56
        $this->client = $client;
57
    }
58

src/Writer/ApiCfpWriter.php 1 location

@@ 56-62 (lines=7) @@
53
    {
54
        $this->baseUri     = $baseUri;
55
        $this->bearerToken = $bearerToken;
56
        if (null === $client) {
57
            $client = new Client([
58
                'headers' => [
59
                    'Accept' => 'application/json',
60
                ],
61
            ]);
62
        }
63
        $this->client = $client;
64
        $this->output = new NullOutput();
65
        $this->filter = new FilterList();