| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | private function transformArticle($object) |
||
| 22 | { |
||
| 23 | $post = new Post(); |
||
| 24 | $post->title = $object->title; |
||
| 25 | $post->content = $object->content; |
||
| 26 | $author = app(UserService::class)->findByName($object->user_id); |
||
| 27 | $post->user_id = $author->id; |
||
| 28 | $post->created_at = $object->time; |
||
| 29 | $post->priority = $object->importance; |
||
| 30 | $post->save(); |
||
| 31 | } |
||
| 33 |