Completed
Pull Request — 2.x (#43)
by jake
02:49 queued 50s
created

Base   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 0
cbo 1
dl 0
loc 16
ccs 0
cts 2
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 4 1
1
<?php
2
/**
3
 *
4
 * This file is part of Aura for PHP.
5
 *
6
 * @license http://opensource.org/licenses/bsd-license.php BSD
7
 *
8
 */
9
namespace Aura\Html\Helper;
10
11
/**
12
 *
13
 * Helper to generate a `<base ... />` tag.
14
 *
15
 * @package Aura.Html
16
 *
17
 */
18
class Base extends AbstractHelper
19
{
20
    /**
21
     *
22
     * Returns a `<base ... />` tag.
23
     *
24
     * @param string $href The base href.
25
     *
26
     * @return string The `<base ... />` tag.
27
     *
28
     */
29
    public function __invoke($href)
30
    {
31
        return $this->indent(1, $this->void('base', array('href' => $href)));
32
    }
33
}
34