From 05767e3b74a67a9a204040939cb531752225da34 Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Tue, 6 Apr 2010 01:11:27 -0400 Subject: [PATCH] Trailing whitespace cleanup. --- Mustache.php | 2 +- examples/complex/complex.php | 8 ++++---- examples/delimiters/Delimiters.php | 4 ++-- examples/double_section/DoubleSection.php | 2 +- examples/sections/Sections.php | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Mustache.php b/Mustache.php index d8d42f6..2133df5 100644 --- a/Mustache.php +++ b/Mustache.php @@ -24,7 +24,7 @@ class Mustache { // Override charset passed to htmlentities() and htmlspecialchars(). Defaults to UTF-8. protected $charset = 'UTF-8'; - + protected $tagRegEx; protected $template = ''; diff --git a/examples/complex/complex.php b/examples/complex/complex.php index ca32ed7..0631279 100644 --- a/examples/complex/complex.php +++ b/examples/complex/complex.php @@ -2,22 +2,22 @@ class Complex extends Mustache { public $header = 'Colors'; - + public $item = array( array('name' => 'red', 'current' => true, 'url' => '#Red'), array('name' => 'green', 'current' => false, 'url' => '#Green'), array('name' => 'blue', 'current' => false, 'url' => '#Blue'), ); - + public function isLink() { // Exploit the fact that the current iteration item is at the top of the context stack. return $this->getVariable('current', $this->context) != true; } - + public function notEmpty() { return !($this->isEmpty()); } - + public function isEmpty() { return count($this->item) === 0; } diff --git a/examples/delimiters/Delimiters.php b/examples/delimiters/Delimiters.php index 74ab583..be372fa 100644 --- a/examples/delimiters/Delimiters.php +++ b/examples/delimiters/Delimiters.php @@ -2,13 +2,13 @@ class Delimiters extends Mustache { public $start = "It worked the first time."; - + public function middle() { return array( array('item' => "And it worked the second time."), array('item' => "As well as the third."), ); } - + public $final = "Then, surprisingly, it worked the final time."; } \ No newline at end of file diff --git a/examples/double_section/DoubleSection.php b/examples/double_section/DoubleSection.php index 8aa1ac6..f9d3dbb 100644 --- a/examples/double_section/DoubleSection.php +++ b/examples/double_section/DoubleSection.php @@ -4,6 +4,6 @@ class DoubleSection extends Mustache { public function t() { return true; } - + public $two = "second"; } \ No newline at end of file diff --git a/examples/sections/Sections.php b/examples/sections/Sections.php index baa61d7..fb78354 100644 --- a/examples/sections/Sections.php +++ b/examples/sections/Sections.php @@ -2,13 +2,13 @@ class Sections extends Mustache { public $start = "It worked the first time."; - + public function middle() { return array( array('item' => "And it worked the second time."), array('item' => "As well as the third."), ); } - + public $final = "Then, surprisingly, it worked the final time."; } \ No newline at end of file