Sfoglia il codice sorgente

Clean up comment code block style.

Justin Hileman 11 anni fa
parent
commit
d534b168a0
2 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 2 2
      src/Mustache/Engine.php
  2. 1 1
      src/Mustache/Loader/InlineLoader.php

+ 2 - 2
src/Mustache/Engine.php

@@ -79,12 +79,12 @@ class Mustache_Engine
      *         // An array of 'helpers'. Helpers can be global variables or objects, closures (e.g. for higher order
      *         // sections), or any other valid Mustache context value. They will be prepended to the context stack,
      *         // so they will be available in any template loaded by this Mustache instance.
-     *         'helpers' => array('i18n' => function($text) {
+     *         'helpers' => array('i18n' => function ($text) {
      *             // do something translatey here...
      *         }),
      *
      *         // An 'escape' callback, responsible for escaping double-mustache variables.
-     *         'escape' => function($value) {
+     *         'escape' => function ($value) {
      *             return htmlspecialchars($buffer, ENT_COMPAT, 'UTF-8');
      *         },
      *

+ 1 - 1
src/Mustache/Loader/InlineLoader.php

@@ -35,7 +35,7 @@
  *         'mustache.loader' => new Mustache_Loader_InlineLoader(__FILE__, __COMPILER_HALT_OFFSET__)
  *     ));
  *
- *     $app->get('/{name}', function($name) use ($app) {
+ *     $app->get('/{name}', function ($name) use ($app) {
  *         return $app['mustache']->render('hello', compact('name'));
  *     })
  *     ->value('name', 'world');