public function FilePermissions::runCli in Security Review 8
Same as run(), but used in CLI context such as Drush.
Return value
\Drupal\security_review\CheckResult The result of running the check.
Overrides Check::runCli
File
- src/
Checks/ FilePermissions.php, line 90
Class
- FilePermissions
- Check that files aren't writeable by the server.
Namespace
Drupal\security_review\ChecksCode
public function runCli() {
if (!$this
->securityReview()
->isServerPosix()) {
return $this
->createResult(CheckResult::INFO);
}
return $this
->run(TRUE);
}