| Conditions | 4 | 
| Paths | 4 | 
| Total Lines | 8 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 5 | 
| CRAP Score | 4 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 24 | 2 | public function getTextAttribute()  | 
            |
| 25 | 	{ | 
            ||
| 26 | 2 | 		if ($this->type == 'TEXT_PLAIN') { | 
            |
| 
                                                                                                    
                        
                         | 
                |||
| 27 | 1 | return $this->messageData->msg->text;  | 
            |
| 28 | 1 | 		} elseif ($this->type == 'RICH_CONTENT') { | 
            |
| 29 | return 'RICH_CONTENT'; // @codeCoverageIgnore  | 
            ||
| 30 | 		} else { | 
            ||
| 31 | 1 | return isset($this->attributes['text']) ? $this->attributes['text'] : '';  | 
            |
| 32 | }  | 
            ||
| 59 | 
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.