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

Base::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 2
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