public function SiteAuditCheckAbstract::getExecPath in Site Audit 8.2
Returns the path of the executable.
Checks for a third-party vendor executable within the site_audit installation. Returns empty string if the executable is not found.
Return value
string Path of executable or empty string if executable not found
5 calls to SiteAuditCheckAbstract::getExecPath()
- SiteAuditCheckCodebasePhpCodeSniffer::calculateScore in Check/
Codebase/ PhpCodeSniffer.php - Implements \SiteAudit\Check\Abstract\calculateScore().
- SiteAuditCheckCodebasePhpCopyPasteDetection::calculateScore in Check/
Codebase/ PhpCopyPasteDetection.php - Implements \SiteAudit\Check\Abstract\calculateScore().
- SiteAuditCheckCodebasePhpDeadCodeDetection::calculateScore in Check/
Codebase/ PhpDeadCodeDetection.php - Implements \SiteAudit\Check\Abstract\calculateScore().
- SiteAuditCheckCodebasePhpLOC::calculateScore in Check/
Codebase/ PhpLOC.php - Implements \SiteAudit\Check\Abstract\calculateScore().
- SiteAuditCheckCodebasePhpMessDetection::calculateScore in Check/
Codebase/ PhpMessDetection.php - Implements \SiteAudit\Check\Abstract\calculateScore().
File
- Check/
Abstract.php, line 358 - Contains \SiteAudit\Check\Abstract.
Class
- SiteAuditCheckAbstract
- Class SiteAuditCheckAbstract.
Code
public function getExecPath($name) {
// Get the path of executable.
if (is_file(SITE_AUDIT_BASE_PATH . '/vendor/bin/' . $name)) {
return SITE_AUDIT_BASE_PATH . '/vendor/bin/' . $name;
}
return '';
}