Commit ebf19c3d authored by Taddeus Kroes's avatar Taddeus Kroes

Some linguistic improvements.

parent 44d840f5
...@@ -12,7 +12,7 @@ Unit tests ...@@ -12,7 +12,7 @@ Unit tests
---------- ----------
Unit tests are in the 'tests/' directory. PHPUnit is used to run tests. The Unit tests are in the 'tests/' directory. PHPUnit is used to run tests. The
PHP extension Xdebug needs to be installed in order to generate a code PHP extension Xdebug needs to be installed in order to generate a code
coverage report. To run unit tests, simply run 'phpunit' in the root coverage report. To run all unit tests, simply run 'phpunit' in the root
directory. directory.
------------- -------------
......
...@@ -144,7 +144,7 @@ class Template extends Node { ...@@ -144,7 +144,7 @@ class Template extends Node {
/** /**
* Get the path to the template file (including one of the include paths). * Get the path to the template file (including one of the include paths).
* *
* @return string the path to the template file. * @return string The path to the template file.
*/ */
function get_path() { function get_path() {
return $this->path; return $this->path;
...@@ -164,7 +164,6 @@ class Template extends Node { ...@@ -164,7 +164,6 @@ class Template extends Node {
while( preg_match('/(.*?)\{([^}]+)}(.*)/s', $after, $matches) ) { while( preg_match('/(.*?)\{([^}]+)}(.*)/s', $after, $matches) ) {
list($before, $brackets_content, $after) = array_slice($matches, 1); list($before, $brackets_content, $after) = array_slice($matches, 1);
$line_count += substr_count($before, "\n"); $line_count += substr_count($before, "\n");
//var_dump(array_slice($matches, 1));
// Everything before the new block belongs to its parent // Everything before the new block belongs to its parent
$current->add('html')->set('content', $before); $current->add('html')->set('content', $before);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment