Code Duplication    Length = 9-9 lines in 2 locations

src/OptimizedJsonRepository.php 2 locations

@@ 111-119 (lines=9) @@
108
            $reference = reset($reference);
109
        }
110
111
        if ($this->isFilesystemReference($reference)) {
112
            $reference = Path::makeAbsolute($reference, $this->baseDirectory);
113
114
            // Ignore non-existing files. Not sure this is the right
115
            // thing to do.
116
            if (!file_exists($reference)) {
117
                return array();
118
            }
119
        }
120
121
        return array($path => $reference);
122
    }
@@ 161-169 (lines=9) @@
158
                    $reference = reset($reference);
159
                }
160
161
                if ($this->isFilesystemReference($reference)) {
162
                    $reference = Path::makeAbsolute($reference, $this->baseDirectory);
163
164
                    // Ignore non-existing files. Not sure this is the right
165
                    // thing to do.
166
                    if (!file_exists($reference)) {
167
                        continue;
168
                    }
169
                }
170
171
                $result[$path] = $reference;
172