spelling, small cleanups
This commit is contained in:
@@ -70,7 +70,7 @@ abstract class Formatter {
|
||||
|
||||
/**
|
||||
* Output the content for the given data
|
||||
* @param $array data
|
||||
* @param array $data
|
||||
*/
|
||||
abstract public function render($data);
|
||||
}
|
||||
@@ -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'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user