Code Duplication    Length = 7-7 lines in 2 locations

DependencyInjection/Compiler/MappingPass.php 1 location

@@ 68-74 (lines=7) @@
65
66
        $documents = [];
67
68
        foreach ($files as $file => $v) {
69
            $documents[] = str_replace(
70
                DIRECTORY_SEPARATOR,
71
                '\\',
72
                substr(strstr($file, $documentsDirectory), strlen($documentsDirectory), -4)
73
            );
74
        }
75
76
        return $documents;
77
    }

Mapping/DocumentFinder.php 1 location

@@ 152-158 (lines=7) @@
149
150
        $documents = [];
151
152
        foreach ($files as $file => $v) {
153
            $documents[] = str_replace(
154
                DIRECTORY_SEPARATOR,
155
                '\\',
156
                substr(strstr($file, $documentsDirectory), strlen($documentsDirectory), -4)
157
            );
158
        }
159
160
        return $documents;
161
    }