Code Duplication    Length = 8-8 lines in 2 locations

src/Client.php 1 location

@@ 449-456 (lines=8) @@
446
     * Get cache driver instance
447
     * @return FilesystemCache
448
     */
449
    private function cache() : FilesystemCache
450
    {
451
        if (! isset($this->cache)) {
452
            $this->cache = new FilesystemCache('', 0, __DIR__.'/../../cache');
453
        }
454
455
        return $this->cache;
456
    }
457
458
    /**
459
     * Handle dynamic method calls into the method.

src/Console/ApiListCommand.php 1 location

@@ 195-202 (lines=8) @@
192
     * Get cache driver instance
193
     * @return FilesystemCache
194
     */
195
    private function cache() : FilesystemCache
196
    {
197
        if (! isset($this->cache)) {
198
            $this->cache = new FilesystemCache('', 0, __DIR__.'/../../cache');
199
        }
200
201
        return $this->cache;
202
    }
203
}
204