| Conditions | 4 |
| Paths | 4 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 4.074 |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | 2 | public function __toString() |
|
| 39 | { |
||
| 40 | 2 | if ($this->type == 'TEXT_PLAIN') { |
|
| 41 | 1 | return $this->messageData->msg->text; |
|
| 42 | 1 | } elseif ($this->type == 'RICH_CONTENT') { |
|
| 43 | return 'RICH_CONTENT'; |
||
| 44 | } else { |
||
| 45 | 1 | return isset($this->attributes['text']) ? $this->attributes['text'] : ''; |
|
| 46 | } |
||
| 49 |
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.