| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 72.72% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class TechTipCommentsController extends Controller |
||
| 13 | { |
||
| 14 | 8 | public function __construct() |
|
| 15 | { |
||
| 16 | 8 | $this->middleware('auth'); |
|
| 17 | 8 | } |
|
| 18 | |||
| 19 | // Add a new Tech Tip Comment |
||
| 20 | 2 | public function store(TechTipNewCommentRequest $request) |
|
| 21 | { |
||
| 22 | 2 | (new SetTechTipComments)->createTipComment($request); |
|
| 23 | 2 | return response()->json(['success' => true]); |
|
| 24 | } |
||
| 25 | |||
| 26 | // Retrieve the comments for a tech tip |
||
| 27 | 2 | public function show($id) |
|
| 30 | } |
||
| 31 | |||
| 32 | // Delete a comment |
||
| 33 | public function destroy($id) |
||
| 37 | } |
||
| 38 | } |
||
| 39 |