From 7eb71011dd25460bc6e499c43f42484f1fe98bee Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Mon, 25 Jul 2016 11:21:05 +0100 Subject: [PATCH] MDL-54987 charts: fix method name to match coding style --- lib/classes/chart_base.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/classes/chart_base.php b/lib/classes/chart_base.php index 14ff5998f83..74ff7b365da 100644 --- a/lib/classes/chart_base.php +++ b/lib/classes/chart_base.php @@ -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])) {