From 415e642351c5db3eefbc64c6eb0c58e5d1a1a3e6 Mon Sep 17 00:00:00 2001 From: Chris Gray Date: Fri, 17 Jan 2014 00:46:39 -0600 Subject: [PATCH] Fixed to conform to coding standards --- src/Handlebars/Context.php | 2 +- src/Handlebars/Template.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Handlebars/Context.php b/src/Handlebars/Context.php index 80f6a19..b364c24 100755 --- a/src/Handlebars/Context.php +++ b/src/Handlebars/Context.php @@ -226,7 +226,7 @@ class Context } elseif ($variableName == '@key') { $current = $this->lastKey(); } elseif ($variableName[0] == "'" || $variableName[0] == '"') { - if ($variableName[0] == substr($variableName, -1) && strlen($variableName) > 2){ + if ($variableName[0] == substr($variableName, -1) && strlen($variableName) > 2) { $current = substr($variableName, 1, strlen($variableName) -2); } else { throw new \RuntimeException("Malformed string: ".$variableName); diff --git a/src/Handlebars/Template.php b/src/Handlebars/Template.php index c204383..eb19fca 100755 --- a/src/Handlebars/Template.php +++ b/src/Handlebars/Template.php @@ -424,11 +424,12 @@ class Template /** * Break an argument string into an array of strings * - * @param string $string Argument String as passed to a helper + * @param string $string Argument String as passed to a helper * * @return array the argument list as an array */ - public function parseArguments($string){ + public function parseArguments($string) + { $parts = array(); preg_match_all('#(?