Element   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 28.57%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
dl 0
loc 20
ccs 2
cts 7
cp 0.2857
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 7 1
1
<?php
2
3
/**
4
 * This file is part of the Phalcon Framework.
5
 *
6
 * For the full copyright and license information, please view the LICENSE.md
7
 * file that was distributed with this source code.
8
 */
9
10
declare(strict_types=1);
11
12
namespace Phalcon\Html\Helper;
13
14
use Phalcon\Html\Exception;
15
16
/**
17
 * Class Element
18
 */
19
class Element extends AbstractHelper
20
{
21
    /**
22
     * Produce a tag.
23
     *
24
     * @param string $tag
25
     * @param string $text
26
     * @param array  $attributes
27
     * @param bool   $raw
28
     *
29
     * @return string
30
     * @throws Exception
31
     */
32 1
    public function __invoke(
33
        string $tag,
34
        string $text,
35
        array $attributes = [],
36
        bool $raw = false
37
    ): string {
38 1
        return $this->renderFullElement($tag, $text, $attributes, $raw);
39
    }
40
}
41