| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 4 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 58 | 15 | public function fields() |
|
| 59 | { |
||
| 60 | $fields = [ |
||
| 61 | 'comment' => [ |
||
| 62 | 15 | 'type' => 'textarea', |
|
| 63 | 15 | 'help' => '<a href="http://daringfireball.net/projects/markdown/basics/" target="_blank">Format with Markdown</a>', |
|
| 64 | 15 | ], |
|
| 65 | 15 | ]; |
|
| 66 | |||
| 67 | // Only for adding new comment |
||
| 68 | 15 | if (!$this->isEditing()) { |
|
| 69 | 15 | $fields += $this->projectUploadFields('upload', $this->project, \Auth::user()); |
|
| 70 | 15 | } |
|
| 71 | |||
| 72 | 15 | return $fields; |
|
| 73 | } |
||
| 74 | |||
| 95 |