Code Duplication    Length = 9-9 lines in 2 locations

eZ/Publish/Core/Persistence/Cache/Adapter/Tests/InMemoryCacheAdapterTest.php 1 location

@@ 52-60 (lines=9) @@
49
        );
50
51
        $this->cacheItemsClosure = \Closure::bind(
52
            function ($key, $value, $isHit, $defaultLifetime = 0) {
53
                $item = new CacheItem();
54
                $item->key = $key;
55
                $item->value = $value;
56
                $item->isHit = $isHit;
57
                $item->defaultLifetime = $defaultLifetime;
58
59
                return $item;
60
            },
61
            null,
62
            CacheItem::class
63
        );

eZ/Publish/Core/Persistence/Cache/Tests/AbstractBaseHandlerTest.php 1 location

@@ 93-101 (lines=9) @@
90
        );
91
92
        $this->cacheItemsClosure = \Closure::bind(
93
            function ($key, $value, $isHit, $defaultLifetime = 0) {
94
                $item = new CacheItem();
95
                $item->key = $key;
96
                $item->value = $value;
97
                $item->isHit = $isHit;
98
                $item->defaultLifetime = $defaultLifetime;
99
100
                return $item;
101
            },
102
            null,
103
            CacheItem::class
104
        );