Add few spaces around concatenations

This commit is contained in:
Dariusz Rumiński
2014-05-15 09:32:57 +02:00
parent 01d03d91df
commit d2f8944798
2 changed files with 8 additions and 8 deletions
+5 -5
View File
@@ -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
View File
@@ -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';