Add few spaces around concatenations
This commit is contained in:
@@ -20,13 +20,13 @@
|
|||||||
* containing all Mustache library classes. This file can then be included in
|
* containing all Mustache library classes. This file can then be included in
|
||||||
* your project, rather than requiring the Mustache Autoloader.
|
* your project, rather than requiring the Mustache Autoloader.
|
||||||
*/
|
*/
|
||||||
$baseDir = realpath(dirname(__FILE__).'/..');
|
$baseDir = realpath(dirname(__FILE__) . '/..');
|
||||||
|
|
||||||
require $baseDir.'/src/Mustache/Autoloader.php';
|
require $baseDir . '/src/Mustache/Autoloader.php';
|
||||||
Mustache_Autoloader::register();
|
Mustache_Autoloader::register();
|
||||||
|
|
||||||
// delete the old file
|
// delete the old file
|
||||||
$file = $baseDir.'/mustache.php';
|
$file = $baseDir . '/mustache.php';
|
||||||
if (file_exists($file)) {
|
if (file_exists($file)) {
|
||||||
unlink($file);
|
unlink($file);
|
||||||
}
|
}
|
||||||
@@ -121,9 +121,9 @@ EOS;
|
|||||||
$content .= preg_replace(array('/^\s*<\?php/', '/\?>\s*$/'), '', file_get_contents($r->getFileName()));
|
$content .= preg_replace(array('/^\s*<\?php/', '/\?>\s*$/'), '', file_get_contents($r->getFileName()));
|
||||||
}
|
}
|
||||||
|
|
||||||
$cache = $cacheDir.'/'.$name.$extension;
|
$cache = $cacheDir . '/' . $name . $extension;
|
||||||
$header = sprintf(self::HEADER, strftime('%Y'));
|
$header = sprintf(self::HEADER, strftime('%Y'));
|
||||||
self::writeCacheFile($cache, $header . substr(self::stripComments('<?php '.$content), 5));
|
self::writeCacheFile($cache, $header . substr(self::stripComments('<?php ' . $content), 5));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
+3
-3
@@ -9,8 +9,8 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require dirname(__FILE__).'/../src/Mustache/Autoloader.php';
|
require dirname(__FILE__) . '/../src/Mustache/Autoloader.php';
|
||||||
Mustache_Autoloader::register();
|
Mustache_Autoloader::register();
|
||||||
Mustache_Autoloader::register(dirname(__FILE__).'/../test');
|
Mustache_Autoloader::register(dirname(__FILE__) . '/../test');
|
||||||
|
|
||||||
require dirname(__FILE__).'/../vendor/yaml/lib/sfYamlParser.php';
|
require dirname(__FILE__) . '/../vendor/yaml/lib/sfYamlParser.php';
|
||||||
|
|||||||
Reference in New Issue
Block a user