spelling, small cleanups

This commit is contained in:
Gilles Crettenand
2015-06-02 23:14:54 +02:00
parent b587047d17
commit 4f865d1186
8 changed files with 36 additions and 38 deletions

View File

@@ -10,8 +10,8 @@ class Html extends Formatter {
));
}
private function result($data) {
// the format is array('result' => array('funcname' => DATA))
protected function result($data) {
// the format is array('result' => array('function name' => DATA))
// so take the first element of the 'result' array
$func = key($data['result']);
$data = reset($data['result']);
@@ -60,7 +60,7 @@ class Html extends Formatter {
);
}
private function error($data) {
protected function error($data) {
$code = $data['error']['code'];
$name = $data['error']['name'];
$msg = $data['error']['reason'];
@@ -72,7 +72,7 @@ class Html extends Formatter {
);
}
private function failure($data) {
protected function failure($data) {
$code = $data['failure']['code'];
$name = $data['failure']['reason'];