Skip to content
8 changes: 6 additions & 2 deletions src/OpenMage/ComposerPlugin/Copy/Plugins/TinyMce.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,19 @@ public function processComposerInstall(): void

$package = $this->getComposerPackage();
if (!$package instanceof BasePackage) {
$this->removedTinyMceLicenseFiles();
return;
}

$version = $package->getVersion();
switch ((int) $version[0]) {
$versionParts = explode('.', $version);
$versionMain = (int) $versionParts[0];

switch ($versionMain) {
case 6:
$this->removedTinyMceLicenseFiles();
break;
case 7:
default:
$this->addTinyMceLicenseFile();
$this->addTinyMceLicenseNote();
break;
Expand Down