Permalink
Browse files

MDL-54987 charts: fix style issues

  • Loading branch information...
danpoltawski committed Jul 25, 2016
1 parent 32917a9 commit ce323331f1d27452459f9032990781d421ab0ca3
@@ -129,7 +129,7 @@ public function get_stepsize() {
*
* @return array
*/
public function jsonSerialize() {
public function jsonSerialize() { // @codingStandardsIgnoreLine (CONTRIB-6469).
return [
'label' => $this->label,
'labels' => $this->labels,
View
@@ -38,11 +38,11 @@ class chart_bar extends chart_base {
protected $horizontal = false;
/**
* Add the horizontal to the parent and return the serialized data.
*
* @return array
*/
public function jsonSerialize() {
* Add the horizontal to the parent and return the serialized data.
*
* @return array
*/
public function jsonSerialize() { // @codingStandardsIgnoreLine (CONTRIB-6469).
$data = parent::jsonSerialize();
$data['horizontal'] = $this->get_horizontal();
return $data;
@@ -75,7 +75,7 @@ public function add_series(chart_series $serie) {
*
* @return array
*/
public function jsonSerialize() {
public function jsonSerialize() { // @codingStandardsIgnoreLine (CONTRIB-6469).
return [
'type' => $this->get_type(),
'series' => $this->series,
@@ -42,7 +42,7 @@ class chart_line extends chart_base {
*
* @return array
*/
public function jsonSerialize() {
public function jsonSerialize() { // @codingStandardsIgnoreLine (CONTRIB-6469).
$data = parent::jsonSerialize();
$data['smooth'] = $this->get_smooth();
return $data;
@@ -174,7 +174,7 @@ public function has_colored_values() {
*
* @return array
*/
public function jsonSerialize() {
public function jsonSerialize() { // @codingStandardsIgnoreLine (CONTRIB-6469).
$data = [
'label' => $this->label,
'labels' => $this->labels,
@@ -145,7 +145,10 @@ public function get_bands_count_and_width_provider() {
/**
* Test bands.
*
* @dataProvider get_bands_count_and_width_provider
* @param int $grade grade
* @param array $expected
*/
public function test_get_bands_count_and_width($grade, $expected) {
$this->resetAfterTest(true);

0 comments on commit ce32333

Please sign in to comment.