Html   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A generateTags() 0 12 1
1
<?php
2
3
namespace SocialLinks\Metas;
4
5
class Html extends MetaBase implements MetaInterface
6
{
7
    protected static $characterLimits = array(
8
        'title' => 55,
9
        'description' => 155,
10
    );
11
12
    /**
13
     * {@inheritdoc}
14
     */
15
    protected function generateTags()
16
    {
17
        $this->addMetas($this->page->get(array(
18
            'title',
19
            'text' => 'description',
20
        )));
21
22
        $this->addLinks($this->page->get(array(
23
            'image' => 'image_src',
24
            'url' => 'canonical',
25
        )));
26
    }
27
}
28