src/Utility/LinkScanner.php
protected function _createLockFile()
    {
        is_true_or_fail(!$this->getConfig('lockFile') || !file_exists($this->lockFile), __d(
            'link-scanner',
            'Lock file `{0}` already exists, maybe a scan is already in progress. If not, remove it manually',
            $this->lockFile
        ), RuntimeException::class);

        return $this->getConfig('lockFile') ? new File($this->lockFile, true) !== false : true;
    }
protected function _createLockFile()
    {
        is_true_or_fail(!$this->getConfig('lockFile') || !file_exists($this->lockFile), __d(
            'link-scanner',
            'Lock file `{0}` already exists, maybe a scan is already in progress. If not, remove it manually',
            $this->lockFile
        ), RuntimeException::class);

        return $this->getConfig('lockFile') ? new File($this->lockFile, true) !== false : true;
    }
protected function _createLockFile ( ) { is_true_or_fail ( ! $ this -> getConfig ( 'lockFile' ) || ! file_exists ( $ this -> lockFile ) , __d ( 'link-scanner' , 'Lock file `{0}` already exists, maybe a scan is already in progress. If not, remove it manually' , $ this -> lockFile ) , RuntimeException :: class ) ; return $ this -> getConfig ( 'lockFile' ) ? new File ( $ this -> lockFile , true ) !== false : true ; }
Internal method to create a lock file
@return bool
@throws RuntimeException
@uses $lockFile
Internal method to create a lock file