Shorten   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A url() 0 4 1
1
<?php
2
3
namespace Vinelab\UrlShortener;
4
5
use Vinelab\UrlShortener\Base\Handler;
6
use Vinelab\UrlShortener\Contracts\ShortenInterface;
7
8
/**
9
 * Class Shorten is the API (entry point) to the public functionality of the package.
10
 *
11
 * @category API
12
 *
13
 * @author   Mahmoud Zalt <[email protected]>
14
 */
15
class Shorten extends Handler implements ShortenInterface
16
{
17
    /**
18
     * {@inheritdoc}
19
     */
20
    public function url($url)
21
    {
22
        return $this->getDriver()->shorten($url);
23
    }
24
}
25