MDL-54987 charts: fix style issues
This commit is contained in:
@@ -129,7 +129,7 @@ class chart_axis implements JsonSerializable {
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function jsonSerialize() {
|
||||
public function jsonSerialize() { // @codingStandardsIgnoreLine (CONTRIB-6469).
|
||||
return [
|
||||
'label' => $this->label,
|
||||
'labels' => $this->labels,
|
||||
|
||||
@@ -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 @@ class chart_base implements JsonSerializable, renderable {
|
||||
*
|
||||
* @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 @@ class chart_series implements JsonSerializable {
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function jsonSerialize() {
|
||||
public function jsonSerialize() { // @codingStandardsIgnoreLine (CONTRIB-6469).
|
||||
$data = [
|
||||
'label' => $this->label,
|
||||
'labels' => $this->labels,
|
||||
|
||||
@@ -145,7 +145,10 @@ class quiz_overview_report_testcase extends advanced_testcase {
|
||||
|
||||
/**
|
||||
* 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);
|
||||
|
||||
Reference in New Issue
Block a user