MDL-54987 charts: fix method name to match coding style

This commit is contained in:
Dan Poltawski
2016-07-25 11:21:37 +01:00
parent ce323331f1
commit 7eb71011dd
+3 -3
View File
@@ -237,7 +237,7 @@ class chart_base implements JsonSerializable, renderable {
* @param int $index The index of the axis.
*/
public function set_xaxis(chart_axis $axis, $index = 0) {
$this->validateAxis('x', $axis, $index);
$this->validate_axis('x', $axis, $index);
return $this->xaxes[$index] = $axis;
}
@@ -250,7 +250,7 @@ class chart_base implements JsonSerializable, renderable {
* @param int $index The index of the axis.
*/
public function set_yaxis(chart_axis $axis, $index = 0) {
$this->validateAxis('y', $axis, $index);
$this->validate_axis('y', $axis, $index);
return $this->yaxes[$index] = $axis;
}
@@ -266,7 +266,7 @@ class chart_base implements JsonSerializable, renderable {
* @param chart_axis $axis The axis to validate.
* @param index $index The index of the axis.
*/
protected function validateAxis($xy, chart_axis $axis, $index = 0) {
protected function validate_axis($xy, chart_axis $axis, $index = 0) {
if ($index > 0) {
$axes = $xy == 'x' ? $this->xaxes : $this->yaxes;
if (!isset($axes[$index - 1])) {