MDL-54987 charts: fix style issues

This commit is contained in:
Dan Poltawski
2016-07-25 11:21:31 +01:00
parent 32917a9561
commit ce323331f1
6 changed files with 12 additions and 9 deletions
+1 -1
View File
@@ -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,
+5 -5
View File
@@ -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;
+1 -1
View File
@@ -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,
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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);