You are here

public function SiteAuditCheckBestPracticesFolderStructure::getResultWarn in Site Audit 8.2

Implements \SiteAudit\Check\Abstract\getResultWarn().

Overrides SiteAuditCheckAbstract::getResultWarn

File

Check/BestPractices/FolderStructure.php, line 46
Contains \SiteAudit\Check\BestPractices\FolderStructure.

Class

SiteAuditCheckBestPracticesFolderStructure
Class SiteAuditCheckBestPracticesFolderStructure.

Code

public function getResultWarn() {
  if (!$this->registry['contrib'] && !$this->registry['custom']) {
    return dt('Neither modules/contrib nor modules/custom directories are present!');
  }
  if (!$this->registry['contrib']) {
    return dt('modules/contrib directory is not present!');
  }
  if (!$this->registry['custom']) {
    return dt('modules/custom directory is not present!');
  }
}