Skip to content

Commit aed07d6

Browse files
authored
Merge pull request #4 from verement/master
Rewrite namespace before module ID
2 parents 4524d16 + f819f70 commit aed07d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rewrite-module-id.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@
5050

5151
// Replace in files
5252
$fileContent = file_get_contents($file);
53+
$fileContent = str_replace($oldNamespace, $newNamespace, $fileContent);
5354
$fileContent = str_replace($oldModuleId, $newModuleId, $fileContent);
5455
$fileContent = str_replace(ucfirst($oldModuleId), ucfirst($newModuleId), $fileContent);
5556
$fileContent = str_replace(dashesToCamelCase($oldModuleId), dashesToCamelCase($newModuleId), $fileContent);
5657
$fileContent = str_replace(ucfirst(dashesToCamelCase($oldModuleId)), ucfirst(dashesToCamelCase($newModuleId)), $fileContent);
57-
$fileContent = str_replace($oldNamespace, $newNamespace, $fileContent);
5858
file_put_contents($file, $fileContent);
5959
print "Searched&replaced in: " . $file . "\n";
6060

0 commit comments

Comments
 (0)