src/Models/Variants/HardDisk.php
public function checkDisk($fixErrors = false, $vigorousIndexCheck = true, $skipFolderCycle = true, $forceDismount = false, $recoverBadSectors = false, $runAtBootup = false)
    {
        $result = $this->variant->chkdsk($fixErrors, $vigorousIndexCheck, $skipFolderCycle, $forceDismount, $recoverBadSectors, $runAtBootup);

        switch($result) {
            case 0:
                return true;
            case 1:
                return true;
        }

        return false;
    }
public function checkDisk($fixErrors = false, $vigorousIndexCheck = true, $skipFolderCycle = true, $forceDismount = false, $recoverBadSectors = false, $runAtBootup = false)
    {
        $result = $this->variant->chkdsk($fixErrors, $vigorousIndexCheck, $skipFolderCycle, $forceDismount, $recoverBadSectors, $runAtBootup);

        switch($result) {
            case 0:
                return true;
            case 1:
                return true;
        }

        return false;
    }
public function checkDisk ( $ fixErrors = false , $ vigorousIndexCheck = true , $ skipFolderCycle = true , $ forceDismount = false , $ recoverBadSectors = false , $ runAtBootup = false ) { $ result = $ this -> variant -> chkdsk ( $ fixErrors , $ vigorousIndexCheck , $ skipFolderCycle , $ forceDismount , $ recoverBadSectors , $ runAtBootup ) ; switch ( $ result ) { case 0 : return true ; case 1 : return true ; } return false ; }
Invokes the Chkdsk operation on the current volume.

@param bool|false $fixErrors If true, errors found on the disk are fixed. The default is false.
@param bool|true  $vigorousIndexCheck If true, a vigorous check of index entries is performed. The default is true.
@param bool|true  $skipFolderCycle If true, the folder cycle checking should be skipped. The default is true.
@param bool|false $forceDismount If true, the volume is dismounted before checking. The default is false.
@param bool|false $recoverBadSectors If true, the bad sectors are located and the readable information is recovered. The default is false.
@param bool|false $runAtBootup If true, the Chkdsk operation is performed at the next boot up. The default is false.

@return bool
Invokes the Chkdsk operation on the current volume .