There should be a way to associate bugs with analysis tasks
[WebKit-https.git] / Websites / perf.webkit.org / public / include / json-header.php
index 8da4a76..0fef7a1 100644 (file)
@@ -53,9 +53,9 @@ function camel_case_words_separated_by_underscore($name) {
     return implode('', array_map('ucfirst', explode('_', $name)));
 }
 
-function require_format($key, $value, $pattern) {
+function require_format($name, $value, $pattern) {
     if (!preg_match($pattern, $value))
-        exit_with_error('Invalid' . camel_case_words_separated_by_underscore($key), array('value' => $value));
+        exit_with_error('Invalid' . $name, array('value' => $value));
 }
 
 function require_existence_of($array, $list_of_arguments, $prefix = '') {