From 58f2401d4d39e891e36cca00d26a152443e442c3 Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Sat, 30 Jul 2016 22:58:58 -0700 Subject: [PATCH] Minor code style fixes. --- test/bootstrap.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/test/bootstrap.php b/test/bootstrap.php index 7d8adc7..0c3c631 100644 --- a/test/bootstrap.php +++ b/test/bootstrap.php @@ -9,7 +9,6 @@ * file that was distributed with this source code. */ - require dirname(__FILE__) . '/../src/Mustache/Autoloader.php'; Mustache_Autoloader::register(); Mustache_Autoloader::register(dirname(__FILE__) . '/../test'); @@ -17,17 +16,18 @@ Mustache_Autoloader::register(dirname(__FILE__) . '/../test'); require dirname(__FILE__) . '/../vendor/yaml/lib/sfYamlParser.php'; /** - * Minimal stream wrapper to test protocol-based access to templates + * Minimal stream wrapper to test protocol-based access to templates. */ class TestStream { private $filehandle; /** - * Always returns false + * Always returns false. * * @param string $path - * @param int $flags + * @param int $flags + * * @return array */ public function url_stat($path, $flags) @@ -36,16 +36,18 @@ class TestStream } /** - * Open the file + * Open the file. * * @param string $path * @param string $mode + * * @return bool */ public function stream_open($path, $mode) { $path = preg_replace('-^test://-', '', $path); $this->filehandle = fopen($path, $mode); + return $this->filehandle !== false; } @@ -59,6 +61,7 @@ class TestStream /** * @param int $count + * * @return string */ public function stream_read($count)