Browse Source

Code style fixes.

Justin Hileman 9 years ago
parent
commit
b2b282dfef

+ 1 - 1
bin/build_bootstrap.php

@@ -78,7 +78,7 @@ class SymfonyClassCollectionLoader
 {
     private static $loaded;
 
-    const HEADER = <<<EOS
+    const HEADER = <<<'EOS'
 <?php
 
 /*

+ 1 - 1
test/Mustache/Test/EngineTest.php

@@ -317,7 +317,7 @@ class Mustache_Test_EngineTest extends Mustache_Test_FunctionalTestCase
         list($name, $mustache) = $this->getLoggedMustache(Mustache_Logger::DEBUG);
         $mustache->render('{{ foo }}{{> bar }}', array('foo' => 'FOO'));
         $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);
     }
 

+ 1 - 1
test/Mustache/Test/FiveThree/Functional/FiltersTest.php

@@ -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));
     }
 
-    const CHAINED_SECTION_FILTERS_TPL = <<<EOS
+    const CHAINED_SECTION_FILTERS_TPL = <<<'EOS'
 {{% FILTERS }}
 {{# word | echo | with_index }}
 {{ key }}: {{ value }}

+ 6 - 6
test/Mustache/Test/FiveThree/Functional/PartialLambdaIndentTest.php

@@ -17,18 +17,18 @@ class Mustache_Test_FiveThree_Functional_PartialLambdaIndentTest extends PHPUnit
 {
     public function testLambdasInsidePartialsAreIndentedProperly()
     {
-        $src = <<<EOS
+        $src = <<<'EOS'
 <fieldset>
   {{> input }}
 </fieldset>
 
 EOS;
-        $partial = <<<EOS
+        $partial = <<<'EOS'
 <input placeholder="{{# _t }}Enter your name{{/ _t }}">
 
 EOS;
 
-        $expected = <<<EOS
+        $expected = <<<'EOS'
 <fieldset>
   <input placeholder="ENTER YOUR NAME">
 </fieldset>
@@ -47,18 +47,18 @@ EOS;
 
     public function testLambdaInterpolationsInsidePartialsAreIndentedProperly()
     {
-        $src = <<<EOS
+        $src = <<<'EOS'
 <fieldset>
   {{> input }}
 </fieldset>
 
 EOS;
-        $partial = <<<EOS
+        $partial = <<<'EOS'
 <input placeholder="{{ placeholder }}">
 
 EOS;
 
-        $expected = <<<EOS
+        $expected = <<<'EOS'
 <fieldset>
   <input placeholder="Enter your name">
 </fieldset>

+ 1 - 0
test/Mustache/Test/Functional/CallTest.php

@@ -32,6 +32,7 @@ class Mustache_Test_Functional_CallTest extends PHPUnit_Framework_TestCase
 class Mustache_Test_Functional_ClassWithCall
 {
     public $name;
+
     public function __call($method, $args)
     {
         return 'unknown value';

+ 1 - 1
test/fixtures/examples/simple/Simple.php

@@ -11,4 +11,4 @@ class Simple
     }
 
     public $in_ca = true;
-};
+}