Code Duplication    Length = 3-3 lines in 2 locations

src/Collectors/Data/CpuUsage.php 1 location

@@ 57-59 (lines=3) @@
54
55
    public function validate()
56
    {
57
        if (!is_numeric($this->data)) {
58
            throw new \LogicException('Duration must be a numeric ' . json_encode($this->data) . ' given');
59
        }
60
    }
61
62
    /**

src/Collectors/Data/Duration.php 1 location

@@ 33-35 (lines=3) @@
30
31
    public function validate()
32
    {
33
        if (!is_numeric($this->data)) {
34
            throw new \LogicException('Duration must be a number ' . json_encode($this->data) . ' given');
35
        }
36
    }
37
38
    /**