ShellExec   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A exec() 0 6 2
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