| Conditions | 6 | 
| Paths | 1 | 
| Total Lines | 10 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 42 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 47 | public static function create(array $data)  | 
            ||
| 48 |     { | 
            ||
| 49 | return new self(  | 
            ||
| 50 | isset($data['id']) ? $data['id'] : null,  | 
            ||
| 51 | isset($data['event']) ? $data['event'] : null,  | 
            ||
| 52 | isset($data['total_count']) ? $data['total_count'] : null,  | 
            ||
| 53 | isset($data['tags']) ? $data['tags'] : null,  | 
            ||
| 54 | isset($data['created_at']) ? new \DateTime($data['created_at']) : null  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 55 | );  | 
            ||
| 56 | }  | 
            ||
| 57 | |||
| 114 | 
Unless you are absolutely sure that the expression can never be null because of other conditions, we strongly recommend to add an additional type check to your code: