use Piwik\Common; $debugMessage = 'Fetching user data'; Common::printDebug($debugMessage);
use Piwik\Common; $params = array('site_id' => 1, 'period' => 'day'); if(empty($params['site_id'])){ $debugMessage = 'Site ID is missing'; Common::printDebug($debugMessage); }This code will check if the `site_id` parameter is missing and if it is, it will print the debug message "Site ID is missing" to the console or error log. In both examples, the `Common` class is imported using the `use` keyword and the `printDebug` method is called using the class name and method name separated by `::`.