Code style fixes.

This commit is contained in:
Justin Hileman
2016-05-19 00:06:45 -07:00
parent 051f857197
commit b2b282dfef
6 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ class SymfonyClassCollectionLoader
{ {
private static $loaded; private static $loaded;
const HEADER = <<<EOS const HEADER = <<<'EOS'
<?php <?php
/* /*
+1 -1
View File
@@ -317,7 +317,7 @@ class Mustache_Test_EngineTest extends Mustache_Test_FunctionalTestCase
list($name, $mustache) = $this->getLoggedMustache(Mustache_Logger::DEBUG); list($name, $mustache) = $this->getLoggedMustache(Mustache_Logger::DEBUG);
$mustache->render('{{ foo }}{{> bar }}', array('foo' => 'FOO')); $mustache->render('{{ foo }}{{> bar }}', array('foo' => 'FOO'));
$log = file_get_contents($name); $log = file_get_contents($name);
$this->assertContains('DEBUG: Instantiating template: ', $log); $this->assertContains('DEBUG: Instantiating template: ', $log);
$this->assertContains('WARNING: Partial not found: "bar"', $log); $this->assertContains('WARNING: Partial not found: "bar"', $log);
} }
@@ -77,7 +77,7 @@ class Mustache_Test_FiveThree_Functional_FiltersTest extends PHPUnit_Framework_T
$this->assertEquals('[[2000-01-01 12:01:00]]', $tpl->render($foo)); $this->assertEquals('[[2000-01-01 12:01:00]]', $tpl->render($foo));
} }
const CHAINED_SECTION_FILTERS_TPL = <<<EOS const CHAINED_SECTION_FILTERS_TPL = <<<'EOS'
{{% FILTERS }} {{% FILTERS }}
{{# word | echo | with_index }} {{# word | echo | with_index }}
{{ key }}: {{ value }} {{ key }}: {{ value }}
@@ -17,18 +17,18 @@ class Mustache_Test_FiveThree_Functional_PartialLambdaIndentTest extends PHPUnit
{ {
public function testLambdasInsidePartialsAreIndentedProperly() public function testLambdasInsidePartialsAreIndentedProperly()
{ {
$src = <<<EOS $src = <<<'EOS'
<fieldset> <fieldset>
{{> input }} {{> input }}
</fieldset> </fieldset>
EOS; EOS;
$partial = <<<EOS $partial = <<<'EOS'
<input placeholder="{{# _t }}Enter your name{{/ _t }}"> <input placeholder="{{# _t }}Enter your name{{/ _t }}">
EOS; EOS;
$expected = <<<EOS $expected = <<<'EOS'
<fieldset> <fieldset>
<input placeholder="ENTER YOUR NAME"> <input placeholder="ENTER YOUR NAME">
</fieldset> </fieldset>
@@ -47,18 +47,18 @@ EOS;
public function testLambdaInterpolationsInsidePartialsAreIndentedProperly() public function testLambdaInterpolationsInsidePartialsAreIndentedProperly()
{ {
$src = <<<EOS $src = <<<'EOS'
<fieldset> <fieldset>
{{> input }} {{> input }}
</fieldset> </fieldset>
EOS; EOS;
$partial = <<<EOS $partial = <<<'EOS'
<input placeholder="{{ placeholder }}"> <input placeholder="{{ placeholder }}">
EOS; EOS;
$expected = <<<EOS $expected = <<<'EOS'
<fieldset> <fieldset>
<input placeholder="Enter your name"> <input placeholder="Enter your name">
</fieldset> </fieldset>
@@ -32,6 +32,7 @@ class Mustache_Test_Functional_CallTest extends PHPUnit_Framework_TestCase
class Mustache_Test_Functional_ClassWithCall class Mustache_Test_Functional_ClassWithCall
{ {
public $name; public $name;
public function __call($method, $args) public function __call($method, $args)
{ {
return 'unknown value'; return 'unknown value';
+1 -1
View File
@@ -11,4 +11,4 @@ class Simple
} }
public $in_ca = true; public $in_ca = true;
}; }