Mailru   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 19
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A shareUrl() 0 11 1
1
<?php
2
3
namespace SocialLinks\Providers;
4
5
/**
6
 * MailRu and Odnoklassniki are different social networks, but they share an owner and parts of API.
7
 */
8
class Mailru extends Odnoklassniki
9
{
10
    protected $countField = 'share_mm';
11
12
    /**
13
     * {@inheritdoc}
14
     */
15
    public function shareUrl()
16
    {
17
        return $this->buildUrl('http://connect.mail.ru/share',
18
            array(
19
                'url',
20
                'title',
21
                'text' => 'description',
22
                'image' => 'imageurl',
23
            )
24
        );
25
    }
26
}
27