Completed
Push — dev ( 8b58af...5d63f9 )
by Zach
03:45
created

TextLineController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 16
rs 10
wmc 1
lcom 1
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A destroy() 0 6 1
1
<?php
2
3
namespace Larafolio\Http\Controllers;
4
5
use Larafolio\Models\TextLine;
6
7
class TextLineController extends Controller
8
{
9
    /**
10
     * Remove a text line.
11
     *
12
     * @param \Larafolio\Models\TextLine $line Text line to remove.
13
     *
14
     * @return \Illuminate\Http\Response
15
     */
16
    public function destroy(TextLine $line)
17
    {
18
        $deleted = $this->user->removeTextLine($line);
19
20
        return response()->json($deleted);
21
    }
22
}
23