Code Duplication    Length = 7-8 lines in 3 locations

src/authentication/Oauth2ServiceAccountStrategy.php 1 location

@@ 45-52 (lines=8) @@
42
     * @param Cache               $cache
43
     * @param JwtFactoryInterface $jwtFactory
44
     */
45
    public function __construct(ClientInterface $clientInterface, Cache $cache, JwtFactoryInterface $jwtFactory)
46
    {
47
        $this->cache = $cache;
48
        $this->client = $clientInterface;
49
        $this->jwtFactory = $jwtFactory;
50
51
        $this->cacheEnabled = $cache instanceof Cache;
52
    }
53
54
    /**
55
     * @param bool|true $cache

src/service/UserList.php 1 location

@@ 64-71 (lines=8) @@
61
     * @param Cache|null $cache
62
     * @param $clientCustomerId
63
     */
64
    public function __construct(ClientInterface $client, TwigCompiler $twigCompiler, Cache $cache = null, $clientCustomerId)
65
    {
66
        $this->client = $client;
67
        $this->cache = $cache;
68
        $this->twigCompiler = $twigCompiler;
69
        $this->cacheEnabled = $cache instanceof Cache;
70
        $this->clientCustomerId = $clientCustomerId;
71
    }
72
73
74
    /**

src/service/UserListClientService.php 1 location

@@ 57-63 (lines=7) @@
54
     * @param TwigCompiler $twigCompiler
55
     * @param string $clientCustomerId
56
     */
57
    public function __construct($client, Cache $cache = null, TwigCompiler $twigCompiler, $clientCustomerId)
58
    {
59
        $this->client = $client;
60
        $this->cache = $cache;
61
        $this->twigCompiler = $twigCompiler;
62
        $this->clientCustomerId = $clientCustomerId;
63
    }
64
65
    /**
66
     * @param UserListClient $client