Code Duplication    Length = 11-15 lines in 2 locations

includes/vendor/composer/ClassLoader.php 2 locations

@@ 111-125 (lines=15) @@
108
     */
109
    public function add($prefix, $paths, $prepend = false)
110
    {
111
        if (!$prefix) {
112
            if ($prepend) {
113
                $this->fallbackDirsPsr0 = array_merge(
114
                    (array) $paths,
115
                    $this->fallbackDirsPsr0
116
                );
117
            } else {
118
                $this->fallbackDirsPsr0 = array_merge(
119
                    $this->fallbackDirsPsr0,
120
                    (array) $paths
121
                );
122
            }
123
124
            return;
125
        }
126
127
        $first = $prefix[0];
128
        if (!isset($this->prefixesPsr0[$first][$prefix])) {
@@ 160-170 (lines=11) @@
157
    {
158
        if (!$prefix) {
159
            // Register directories for the root namespace.
160
            if ($prepend) {
161
                $this->fallbackDirsPsr4 = array_merge(
162
                    (array) $paths,
163
                    $this->fallbackDirsPsr4
164
                );
165
            } else {
166
                $this->fallbackDirsPsr4 = array_merge(
167
                    $this->fallbackDirsPsr4,
168
                    (array) $paths
169
                );
170
            }
171
        } elseif (!isset($this->prefixDirsPsr4[$prefix])) {
172
            // Register directories for a new namespace.
173
            $length = strlen($prefix);