Code Duplication    Length = 12-13 lines in 2 locations

src/OptimizedJsonRepository.php 1 location

@@ 98-109 (lines=12) @@
95
    /**
96
     * {@inheritdoc}
97
     */
98
    protected function getReferencesForGlob($glob, $stopOnFirst = false)
99
    {
100
        if (!Glob::isDynamic($glob)) {
101
            return $this->getReferencesForPath($glob);
102
        }
103
104
        return $this->getReferencesForRegex(
105
            Glob::getStaticPrefix($glob),
106
            Glob::toRegEx($glob),
107
            $stopOnFirst
108
        );
109
    }
110
111
    /**
112
     * {@inheritdoc}

src/JsonRepository.php 1 location

@@ 280-292 (lines=13) @@
277
    /**
278
     * {@inheritdoc}
279
     */
280
    protected function getReferencesForGlob($glob, $stopOnFirst = false, $traverseDirectories = true)
281
    {
282
        if (!Glob::isDynamic($glob)) {
283
            return $this->getReferencesForPath($glob);
284
        }
285
286
        return $this->getReferencesForRegex(
287
            Glob::getBasePath($glob),
288
            Glob::toRegEx($glob),
289
            $stopOnFirst,
290
            $traverseDirectories
291
        );
292
    }
293
294
    /**
295
     * {@inheritdoc}