detain/myadmin-parallels-licensing

View on GitHub

Showing 1 of 7 total issues

Method deactivate_parallels_by_key has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function deactivate_parallels_by_key($key)
{
    myadmin_log('licenses', 'info', "Parallels Deactivation ({$key})", __LINE__, __FILE__);
    $parallels = new \Detain\Parallels\Parallels();
    $status = json_decode(file_get_contents(__DIR__.'/../../../../include/config/plesk.json'), true);
Severity: Minor
Found in src/parallels.inc.php - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language