Bolt\Configuration\LowlevelChecks::removeCheck PHP Метод

removeCheck() публичный Метод

Remove a check from the list causing it to be skipped.
public removeCheck ( string $check )
$check string
    public function removeCheck($check)
    {
        if (in_array($check, $this->checks)) {
            $this->checks = array_diff($this->checks, [$check]);
        }
    }

Usage Example

Пример #1
0
 protected function getCleanChecker()
 {
     $config = new Standard(TEST_ROOT);
     $check = new LowlevelChecks($config);
     $check->removeCheck('cache');
     $check->configChecks = [];
     return $check;
 }