ShellExec::exec()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 1
1
<?php
2
3
namespace Tohidhabiby\HtmlToImage;
4
5
class ShellExec
6
{
7
    /**
8
     * @param string $string
9
     * @return string|null
10
     */
11
    public function exec(string $string)
12
    {
13
        exec($string, $output, $returnVar);
14
15
        return empty($output) && empty($returnVar);
16
    }
17
}
18