| Conditions | 7 | 
| Paths | 4 | 
| Total Lines | 20 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 13 | 
| CRAP Score | 7 | 
| Changes | 0 | ||
| 1 | <?php | ||
| 37 | 3 | private function isConstraintsPropertyValid($aConstraints) | |
| 38 |     { | ||
| 39 | 3 | if (!is_array($aConstraints) && !is_null($aConstraints)) | |
| 40 | 3 |         { | |
| 41 | 2 | return false; | |
| 42 | } | ||
| 43 | |||
| 44 | 3 | if (!empty($aConstraints)) | |
| 45 | 3 |         { | |
| 46 | 2 | foreach ($aConstraints as $_aConstraint) | |
| 47 |             { | ||
| 48 | 2 | if (!is_array($_aConstraint) || count($_aConstraint) != 3) | |
| 49 | 2 |                 { | |
| 50 | 1 | return false; | |
| 51 | } | ||
| 52 | 1 | } | |
| 53 | 1 | } | |
| 54 | |||
| 55 | 2 | return true; | |
| 56 | } | ||
| 57 | } |