whitespace cleanup.
This commit is contained in:
@@ -21,7 +21,7 @@ class MustacheObjectSectionTest extends PHPUnit_Framework_TestCase {
|
|||||||
|
|
||||||
class Alpha extends Mustache {
|
class Alpha extends Mustache {
|
||||||
public $foo;
|
public $foo;
|
||||||
|
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
$this->foo = new StdClass();
|
$this->foo = new StdClass();
|
||||||
$this->foo->name = 'Foo';
|
$this->foo->name = 'Foo';
|
||||||
@@ -31,17 +31,17 @@ class Alpha extends Mustache {
|
|||||||
|
|
||||||
class Beta extends Mustache {
|
class Beta extends Mustache {
|
||||||
protected $_data = array();
|
protected $_data = array();
|
||||||
|
|
||||||
public function __construct() {
|
public function __construct() {
|
||||||
$this->_data['foo'] = new StdClass();
|
$this->_data['foo'] = new StdClass();
|
||||||
$this->_data['foo']->name = 'Foo';
|
$this->_data['foo']->name = 'Foo';
|
||||||
$this->_data['foo']->number = 1;
|
$this->_data['foo']->number = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __isset($name) {
|
public function __isset($name) {
|
||||||
return array_key_exists($name, $this->_data);
|
return array_key_exists($name, $this->_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __get($name) {
|
public function __get($name) {
|
||||||
return $this->_data[$name];
|
return $this->_data[$name];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user