Utils   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
B noEmptyItems() 0 12 5
1
<?php namespace BinPacking3d;
2
3
class Utils
4
{
5
6
    public static function noEmptyItems(array $items)
7
    {
8
        foreach ($items as $item) {
9
10
            if ($item === null || (is_numeric($item) && $item <= 0)) {
11
12
                return false;
13
            }
14
        }
15
16
        return true;
17
    }
18
19
}
20