Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
58 | 11 | 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 | 11 | ], |
|
65 | ]; |
||
66 | |||
67 | // Only for adding new comment |
||
68 | 11 | if (!$this->isEditing()) { |
|
69 | 11 | $fields += $this->projectUploadFields('upload', $this->project, \Auth::user()); |
|
70 | } |
||
71 | |||
72 | 11 | return $fields; |
|
73 | } |
||
74 | |||
95 |