Passed
Push — master ( 2afdeb...b846a2 )
by Nikolaos
06:23 queued 03:51
created

Close   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 3 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
/**
15
 * Class Close
16
 */
17
class Close extends AbstractHelper
18
{
19
    /**
20
     * Produce a `</...>` tag.
21
     *
22
     * @param string $tag
23
     * @param bool   $raw
24
     *
25
     * @return string
26
     */
27 1
    public function __invoke(string $tag, bool $raw = false): string
28
    {
29 1
        return $this->close($tag, $raw);
30
    }
31
}
32