source/php/Display.php
public function fillMissingParams($module, $moduleSettings)
    {
        // Set class properties if needed
        if (empty($module->slug)) {
            foreach ($moduleSettings as $key => $value) {
                $module->$key = $value;
            }

            $module->isLegacy = true;
        }

        return $module;
    }
public function fillMissingParams($module, $moduleSettings)
    {
        // Set class properties if needed
        if (empty($module->slug)) {
            foreach ($moduleSettings as $key => $value) {
                $module->$key = $value;
            }

            $module->isLegacy = true;
        }

        return $module;
    }
public function fillMissingParams ( $ module , $ moduleSettings ) { // Set class properties if needed if ( empty ( $ module -> slug ) ) { foreach ( $ moduleSettings as $ key => $ value ) { $ module -> $ key = $ value ; } $ module -> isLegacy = true ; } return $ module ; }
Fills module object with missing params if needed
@param  object $module
@param  array $moduleSettings
@return object
Fills module object with missing params if needed