Code Duplication    Length = 8-8 lines in 2 locations

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

src/Client.php 1 location

@@ 479-486 (lines=8) @@
476
     * Get cache driver instance
477
     * @return FilesystemCache
478
     */
479
    private function cache() : FilesystemCache
480
    {
481
        if (! isset($this->cache)) {
482
            $this->cache = new FilesystemCache('', 0, __DIR__.'/../../cache');
483
        }
484
485
        return $this->cache;
486
    }
487
488
    /**
489
     * Handle dynamic method calls into the method.