Code Duplication    Length = 7-7 lines in 2 locations

src/Http/Controllers/WorkflowTransitionController.php 1 location

@@ 62-68 (lines=7) @@
59
        //
60
    }
61
62
    public function edit($id)
63
    {
64
        $transition = WorkflowTransition::where('id',$id)->first();
65
        $states = WorkflowState::all();
66
67
        return view('workflow.transitionedit',['transition' => $transition, 'states' => $states]);
68
    }
69
70
    public function update(Request $request, $id)
71
    {

src/Traits/WorkflowTransitionTrait.php 1 location

@@ 57-63 (lines=7) @@
54
    	return redirect()->route('transition')->with('message', 'Add data success');
55
    }    
56
57
    public static function transitionEdit($id)
58
    {
59
        $transition = WorkflowTransition::where('id',$id)->first();
60
        $states = WorkflowState::all();
61
62
        return view('workflow::workflow.transitionedit',['transition' => $transition, 'states' => $states]);
63
    }
64
65
    public static function transitionUpdate($request = array(), $id)
66
    {