wip
This commit is contained in:
1 parent
3010d34353
commit
adcac05883
4 files changed
+9
-9
No files matched your search
@@ -30,6 +30,11 @@ class ChartMovingAverageEvent extends ChartWidget
|
|||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getDescription(): ?string
|
||||||
|
{
|
||||||
|
return 'Moving Average';
|
||||||
|
}
|
||||||
|
|
||||||
protected function getType(): string
|
protected function getType(): string
|
||||||
{
|
{
|
||||||
return 'line';
|
return 'line';
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class ChartMovingAveragePlayer extends ChartWidget
|
|||||||
|
|
||||||
public function getDescription(): ?string
|
public function getDescription(): ?string
|
||||||
{
|
{
|
||||||
return 'Player Moving Average';
|
return 'Moving Average';
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getData(): array
|
protected function getData(): array
|
||||||
@@ -43,7 +43,7 @@ class ChartMovingAveragePlayer extends ChartWidget
|
|||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->heading = HelperStatisticType::get($this->filters);
|
$this->heading = 'Player '.HelperStatisticType::get($this->filters);
|
||||||
|
|
||||||
$data = LoadPlayer::load($this->filters);
|
$data = LoadPlayer::load($this->filters);
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ class ChartPunctualEvent extends ChartWidget
|
|||||||
$data = LoadEvents::load($this->filters);
|
$data = LoadEvents::load($this->filters);
|
||||||
|
|
||||||
if (isset($data['description'])) {
|
if (isset($data['description'])) {
|
||||||
$this->description = 'Punctual '.$data['description'];
|
$this->description = $data['description'];
|
||||||
}
|
}
|
||||||
|
|
||||||
return $data;
|
return $data;
|
||||||
|
|||||||
@@ -31,18 +31,13 @@ class ChartPunctualPlayer extends ChartWidget
|
|||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
public function getDescription(): ?string
|
|
||||||
{
|
|
||||||
return 'Player Punctual';
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function getData(): array
|
protected function getData(): array
|
||||||
{
|
{
|
||||||
if ($this->filters['statistic_type'] == 'crn') {
|
if ($this->filters['statistic_type'] == 'crn') {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->heading = HelperStatisticType::get($this->filters);
|
$this->heading = 'Player '.HelperStatisticType::get($this->filters);
|
||||||
|
|
||||||
$data = LoadPlayer::load($this->filters);
|
$data = LoadPlayer::load($this->filters);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user