protected function validatorSingle($varFile, $strDestination)
    {
        // Move the temporary file
        if (!\Validator::isStringUuid($varFile) && is_file(TL_ROOT . '/' . $varFile)) {
            $varFile = $this->moveTemporaryFile($varFile, $strDestination);
        }

        // Convert uuid to binary format
        if (\Validator::isStringUuid($varFile)) {
            $varFile = \StringUtil::uuidToBin($varFile);
        }

        return $varFile;
    }
protected function validatorSingle($varFile, $strDestination)
    {
        // Move the temporary file
        if (!\Validator::isStringUuid($varFile) && is_file(TL_ROOT . '/' . $varFile)) {
            $varFile = $this->moveTemporaryFile($varFile, $strDestination);
        }

        // Convert uuid to binary format
        if (\Validator::isStringUuid($varFile)) {
            $varFile = \StringUtil::uuidToBin($varFile);
        }

        return $varFile;
    }
protected function validatorSingle ( $ varFile , $ strDestination ) { // Move the temporary file if ( ! \ Validator :: isStringUuid ( $ varFile ) && is_file ( TL_ROOT . '/' . $ varFile ) ) { $ varFile = $ this -> moveTemporaryFile ( $ varFile , $ strDestination ) ; } // Convert uuid to binary format if ( \ Validator :: isStringUuid ( $ varFile ) ) { $ varFile = \ StringUtil :: uuidToBin ( $ varFile ) ; } return $ varFile ; }
Validate a single file.

@param mixed
@param string
@return mixed
Validate a single file .