Skip to content

Commit

Permalink
Removed prefixDirs fixing as they aren't used with authoritative clas…
Browse files Browse the repository at this point in the history
…smap
  • Loading branch information
marekdedic committed Apr 29, 2024
1 parent 6fb5cad commit cd25ac0
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,23 +51,12 @@ gulp.task(
contents = contents.map((line) => {
if (/^\s*\);$/g.exec(line)) {
mode = 'none';
} else if (
/^\s*public static \$prefixDirsPsr4 = array \($/.exec(
line
)
) {
mode = 'prefixDirs';
} else if (
/^\s*public static \$classMap = array \($/.exec(
line
)
) {
mode = 'classMap';
} else if (mode === 'prefixDirs') {
line = line.replace(
/^(\s*)'([^']*)\\\\' => $/,
"$1'Sgdg\\\\Vendor\\\\$2\\\\' => "
);
} else if (mode === 'classMap') {
line = line.replace(
/^(\s*)'([^']*)' =>/,
Expand Down

0 comments on commit cd25ac0

Please sign in to comment.