<?php

// Upload types
define('MX_UPLOAD_TYPE_IMAGE', 'image');
define('MX_UPLOAD_TYPE_DOCUMENT', 'document');
define('MX_UPLOAD_TYPE_AUDIO', 'audio');
define('MX_UPLOAD_TYPE_VIDEO', 'video');

// modules
define('MODULESEARCH', 'Mconsole');
define('BOOTSTRAPFILE', 'bootstrap.php');

<?php

$defines = [
    // Upload types
    'MX_UPLOAD_TYPE_IMAGE' => 'image',
    'MX_UPLOAD_TYPE_DOCUMENT' => 'document',
    'MX_UPLOAD_TYPE_AUDIO' => 'audio',
    'MX_UPLOAD_TYPE_VIDEO' => 'video',
    
    // modules
    'MODULESEARCH' => 'Mconsole',
    'BOOTSTRAPFILE' => 'bootstrap.php',
];

foreach ($defines as $key => $value) {
    if (!defined($key)) {
        define($key, $value);
    }
}

Check if defined for unit tests
Check if defined for unit tests
