Completed
Push — master ( a18731...e2e070 )
by
unknown
99:54 queued 47:45
created

WebsiteEventsChartProvider::formatGroup()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 2
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace OroCRM\Bundle\MagentoBundle\Provider;
4
5
/**
6
 * {@inheritdoc}
7
 */
8
class WebsiteEventsChartProvider extends WebsiteChartProvider
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13
    protected function getNumberOfShadeColors($data)
14
    {
15
        return 0;
16
    }
17
18
    /**
19
     * {@inheritdoc}
20
     */
21
    protected function formatGroup(array $row)
22
    {
23
        return $this->getLegendLabel($row['name']);
24
    }
25
26
    /**
27
     * {@inheritdoc}
28
     */
29
    protected function getData(array $customers)
30
    {
31
        return $this->visitEventProvider->getCustomerEventsCountByDate(
32
            $customers,
33
            $this->getEvents()
34
        );
35
    }
36
}
37