Merge pull request #202 from spiasecki/feature/code_cleaning
Few code cleaning
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
*/
|
||||
class Mustache_Autoloader
|
||||
{
|
||||
|
||||
private $baseDir;
|
||||
|
||||
/**
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
*/
|
||||
class Mustache_Compiler
|
||||
{
|
||||
|
||||
private $sections;
|
||||
private $source;
|
||||
private $indentNextLine;
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
*/
|
||||
interface Mustache_Loader
|
||||
{
|
||||
|
||||
/**
|
||||
* Load a Template by name.
|
||||
*
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
*/
|
||||
interface Mustache_Loader_MutableLoader
|
||||
{
|
||||
|
||||
/**
|
||||
* Set an associative array of Template sources for this loader.
|
||||
*
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
*/
|
||||
class Mustache_Loader_StringLoader implements Mustache_Loader
|
||||
{
|
||||
|
||||
/**
|
||||
* Load a Template by source.
|
||||
*
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
*/
|
||||
abstract class Mustache_Template
|
||||
{
|
||||
|
||||
/**
|
||||
* @var Mustache_Engine
|
||||
*/
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
*/
|
||||
class Mustache_Tokenizer
|
||||
{
|
||||
|
||||
// Finite state machine states
|
||||
const IN_TEXT = 0;
|
||||
const IN_TAG_TYPE = 1;
|
||||
|
||||
@@ -17,7 +17,7 @@ class Mustache_Test_Cache_FilesystemCacheTest extends Mustache_Test_FunctionalTe
|
||||
public function testCacheGetNone()
|
||||
{
|
||||
$key = 'some key';
|
||||
$cache = new Mustache_Cache_FilesystemCache(self::$tempDir);;
|
||||
$cache = new Mustache_Cache_FilesystemCache(self::$tempDir);
|
||||
$loaded = $cache->load($key);
|
||||
|
||||
$this->assertFalse($loaded);
|
||||
@@ -27,7 +27,7 @@ class Mustache_Test_Cache_FilesystemCacheTest extends Mustache_Test_FunctionalTe
|
||||
{
|
||||
$key = 'some key';
|
||||
$value = '<?php /* some value */';
|
||||
$cache = new Mustache_Cache_FilesystemCache(self::$tempDir);;
|
||||
$cache = new Mustache_Cache_FilesystemCache(self::$tempDir);
|
||||
$cache->cache($key, $value);
|
||||
$loaded = $cache->load($key);
|
||||
|
||||
|
||||
@@ -42,12 +42,12 @@ EOS;
|
||||
|
||||
$tpl = $m->loadTemplate($src);
|
||||
|
||||
$data = new Mustache_Test_Functional_ClassWithLambda();
|
||||
$data = new Mustache_Test_FiveThree_Functional_ClassWithLambda();
|
||||
$this->assertEquals($expected, $tpl->render($data));
|
||||
}
|
||||
}
|
||||
|
||||
class Mustache_Test_Functional_ClassWithLambda
|
||||
class Mustache_Test_FiveThree_Functional_ClassWithLambda
|
||||
{
|
||||
public function _t()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user