| Conditions | 5 | 
| Paths | 5 | 
| Total Lines | 20 | 
| Code Lines | 10 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 7 | 
| CRAP Score | 5.675 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 32 | 1 | public static function less(DockerPortMapping $left, DockerPortMapping $right)  | 
            |
| 33 |     { | 
            ||
| 34 | 1 |         if ($left->containerPort != $right->containerPort) { | 
            |
| 35 | return $left->containerPort - $right->containerPort;  | 
            ||
| 36 | }  | 
            ||
| 37 | |||
| 38 | 1 |         if ($left->hostPort != $right->hostPort) { | 
            |
| 39 | return $left->hostPort - $right->hostPort;  | 
            ||
| 40 | }  | 
            ||
| 41 | |||
| 42 | 1 |         if ($left->servicePort != $right->servicePort) { | 
            |
| 43 | 1 | return $left->servicePort - $right->servicePort;  | 
            |
| 44 | }  | 
            ||
| 45 | |||
| 46 | 1 |         if ($left->protocol != $right->protocol) { | 
            |
| 47 | return strcmp($left->protocol, $right->protocol);  | 
            ||
| 48 | }  | 
            ||
| 49 | |||
| 50 | 1 | return strcmp($left->name, $right->name);  | 
            |
| 51 | }  | 
            ||
| 52 | }  | 
            ||
| 53 |