| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function transformResource(Proxy $proxy) |
||
| 32 | { |
||
| 33 | return [ |
||
| 34 | 'id' => $proxy->id, |
||
| 35 | 'alias' => $proxy->alias, |
||
|
|
|||
| 36 | 'ip_address' => $proxy->ip_address, |
||
| 37 | 'port' => $proxy->port, |
||
| 38 | 'username' => $proxy->username, |
||
| 39 | 'password' => $proxy->password, |
||
| 40 | 'type' => $proxy->type, |
||
| 41 | 'online' => $proxy->online, |
||
| 42 | 'monitor' => $proxy->monitor, |
||
| 43 | 'anonimity_level' => $proxy->anonimity_level, |
||
| 44 | 'last_alive_at' => $proxy->last_alive_at, |
||
| 45 | 'last_checked_at' => $proxy->last_checked_at, |
||
| 46 | 'created_at' => $proxy->created_at, |
||
| 47 | 'updated_at' => $proxy->updated_at, |
||
| 48 | ]; |
||
| 51 |
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.