Skip to content

Commit

Permalink
MDL-54987 charts: fix method name to match coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Jul 25, 2016
1 parent ce32333 commit 7eb7101
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/classes/chart_base.php
Expand Up @@ -237,7 +237,7 @@ public function set_title($title) {
* @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;
}

Expand All @@ -250,7 +250,7 @@ public function set_xaxis(chart_axis $axis, $index = 0) {
* @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;
}

Expand All @@ -266,7 +266,7 @@ public function set_yaxis(chart_axis $axis, $index = 0) {
* @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])) {
Expand Down

0 comments on commit 7eb7101

Please sign in to comment.