X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=mdref%2FFile.php;h=4afd3b430559a16b804945f1e14aa0eb6b4dadf2;hb=80ea76521e2ccbbfac1ac0f33f91af1739ead561;hp=0ac3da26f1ac3f43d50a00c3aeb2e200ed60ec79;hpb=6478b415c59070f70ed860f3a592377eef9783b1;p=mdref%2Fmdref diff --git a/mdref/File.php b/mdref/File.php index 0ac3da2..4afd3b4 100644 --- a/mdref/File.php +++ b/mdref/File.php @@ -10,7 +10,7 @@ class File { * @var resource */ private $fd; - + /** * Open the file * @param string $path @@ -18,7 +18,7 @@ class File { public function __construct($path) { $this->fd = fopen($path, "rb"); } - + /** * Read the title of the refentry * @return string @@ -28,7 +28,7 @@ class File { return fgets($this->fd); } } - + /** * Read the description of the refentry * @return string @@ -40,7 +40,7 @@ class File { return fgets($this->fd); } } - + /** * Read the first subsection of a global refentry * @return string @@ -49,7 +49,7 @@ class File { $intro = ""; if (0 === fseek($this->fd, 0, SEEK_SET)) { $header = false; - + while (!feof($this->fd)) { if (false === ($line = fgets($this->fd))) { break;