Passed
Push — master ( 1a6375...8f4058 )
by Petr
08:21 queued 05:12
created

XToString   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 3
c 1
b 0
f 0
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A convert() 0 3 1
1
<?php
2
3
namespace tests\ChecksTests\TraitsTests;
4
5
6
use kalanis\kw_mime\Check\Traits\TToString;
7
use kalanis\kw_mime\MimeException;
8
9
10
class XToString
11
{
12
    use TToString;
13
14
    /**
15
     * @param string $name
16
     * @param string|resource $content
17
     * @throws MimeException
18
     * @return string
19
     */
20
    public function convert(string $name, $content): string
21
    {
22
        return $this->readSourceToString($name, $content);
23
    }
24
}
25