public function runningAsConfiguredUser($useRunningUser = true)
    {
        if (!$this->getShowUserCronMessage()) {
            return true;
        }

        $getUserMethod = ($useRunningUser) ? 'getRunningUser' : 'getLastRunUser';

        return ($this->{$getUserMethod}() === $this->getConfiguredUser());
    }
public function runningAsConfiguredUser($useRunningUser = true)
    {
        if (!$this->getShowUserCronMessage()) {
            return true;
        }

        $getUserMethod = ($useRunningUser) ? 'getRunningUser' : 'getLastRunUser';

        return ($this->{$getUserMethod}() === $this->getConfiguredUser());
    }
public function runningAsConfiguredUser ( $ useRunningUser = true ) { if ( ! $ this -> getShowUserCronMessage ( ) ) { return true ; } $ getUserMethod = ( $ useRunningUser ) ? 'getRunningUser' : 'getLastRunUser' ; return ( $ this -> { $ getUserMethod } ( ) === $ this -> getConfiguredUser ( ) ) ; }
Check the configuration value for which user the cron should be run as, and check if it matches the actual user.
Skip if the warning should be ignored.
@param  bool $useRunningUser If true, use the user running the web server, otherwise use the last run user from
core_variable storage
@return bool
Check the configuration value for which user the cron should be run as and check if it matches the actual user . Skip if the warning should be ignored .