You are here

public function ExecutablePhp::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/ExecutablePhp.php, line 124

Class

ExecutablePhp
Checks if PHP files written to the files directory can be executed.

Namespace

Drupal\security_review\Checks

Code

public function runCli() {
  return $this
    ->run(TRUE);
}