Completed
Pull Request — 2.x (#53)
by jake
03:37
created

VoidTag   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

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 any void tag.
14
 *
15
 * @package Aura.Html
16
 *
17
 */
18
class VoidTag extends AbstractHelper
19
{
20
    /**
21
     *
22
     * Returns any kind of void tag with attributes.
23
     *
24
     * @param string $tag The tag to generate.
25
     *
26
     * @param array $attr Attributes for the tag.
27
     *
28
     * @return string
29
     *
30
     */
31 1
    public function __invoke($tag, array $attr = array())
32
    {
33 1
        return $this->void($tag, $attr);
34
    }
35
}
36