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