Code Duplication    Length = 12-12 lines in 2 locations

src/JsonRepository.php 1 location

@@ 302-313 (lines=12) @@
299
    /**
300
     * {@inheritdoc}
301
     */
302
    protected function getReferencesForGlob($glob, $flags = 0)
303
    {
304
        if (!Glob::isDynamic($glob)) {
305
            return $this->getReferencesForPath($glob);
306
        }
307
308
        return $this->getReferencesForRegex(
309
            Glob::getBasePath($glob),
310
            Glob::toRegEx($glob),
311
            $flags
312
        );
313
    }
314
315
    /**
316
     * {@inheritdoc}

src/OptimizedJsonRepository.php 1 location

@@ 127-138 (lines=12) @@
124
    /**
125
     * {@inheritdoc}
126
     */
127
    protected function getReferencesForGlob($glob, $flags = 0)
128
    {
129
        if (!Glob::isDynamic($glob)) {
130
            return $this->getReferencesForPath($glob);
131
        }
132
133
        return $this->getReferencesForRegex(
134
            Glob::getStaticPrefix($glob),
135
            Glob::toRegEx($glob),
136
            $flags
137
        );
138
    }
139
140
    /**
141
     * {@inheritdoc}