From 6d8aabab2347feabdd804b609dcd4513f09f78d4 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 11 Feb 2022 09:21:19 +0000 Subject: composer libs minor version updates --- vendor/bin/html-to-markdown | 118 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 117 insertions(+), 1 deletion(-) mode change 120000 => 100755 vendor/bin/html-to-markdown (limited to 'vendor/bin/html-to-markdown') diff --git a/vendor/bin/html-to-markdown b/vendor/bin/html-to-markdown deleted file mode 120000 index 6f8d9d2b1..000000000 --- a/vendor/bin/html-to-markdown +++ /dev/null @@ -1 +0,0 @@ -../league/html-to-markdown/bin/html-to-markdown \ No newline at end of file diff --git a/vendor/bin/html-to-markdown b/vendor/bin/html-to-markdown new file mode 100755 index 000000000..51fec89d8 --- /dev/null +++ b/vendor/bin/html-to-markdown @@ -0,0 +1,117 @@ +#!/usr/bin/env php +realpath = realpath($opened_path) ?: $opened_path; + $opened_path = $this->realpath; + $this->handle = fopen($this->realpath, $mode); + $this->position = 0; + + return (bool) $this->handle; + } + + public function stream_read($count) + { + $data = fread($this->handle, $count); + + if ($this->position === 0) { + $data = preg_replace('{^#!.*\r?\n}', '', $data); + } + + $this->position += strlen($data); + + return $data; + } + + public function stream_cast($castAs) + { + return $this->handle; + } + + public function stream_close() + { + fclose($this->handle); + } + + public function stream_lock($operation) + { + return $operation ? flock($this->handle, $operation) : true; + } + + public function stream_seek($offset, $whence) + { + if (0 === fseek($this->handle, $offset, $whence)) { + $this->position = ftell($this->handle); + return true; + } + + return false; + } + + public function stream_tell() + { + return $this->position; + } + + public function stream_eof() + { + return feof($this->handle); + } + + public function stream_stat() + { + return array(); + } + + public function stream_set_option($option, $arg1, $arg2) + { + return true; + } + + public function url_stat($path, $flags) + { + $path = substr($path, 17); + if (file_exists($path)) { + return stat($path); + } + + return false; + } + } + } + + if (function_exists('stream_wrapper_register') && stream_wrapper_register('phpvfscomposer', 'Composer\BinProxyWrapper')) { + include("phpvfscomposer://" . __DIR__ . '/..'.'/league/html-to-markdown/bin/html-to-markdown'); + exit(0); + } +} + +include __DIR__ . '/..'.'/league/html-to-markdown/bin/html-to-markdown'; -- cgit v1.2.3