Trailing whitespace cleanup.

This commit is contained in:
Justin Hileman
2010-04-06 01:11:27 -04:00
parent 1ede993bb3
commit 05767e3b74
5 changed files with 10 additions and 10 deletions
+4 -4
View File
@@ -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;
}
+2 -2
View File
@@ -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.";
}
+1 -1
View File
@@ -4,6 +4,6 @@ class DoubleSection extends Mustache {
public function t() {
return true;
}
public $two = "second";
}
+2 -2
View File
@@ -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.";
}