Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php namespace App\Http\Controllers\Backend; |
||
13 | public function index(Request $request) |
||
14 | { |
||
15 | if ($request->wantsJson()) { |
||
16 | |||
17 | $query = ExceptionService::getModel(); |
||
18 | |||
19 | $datatables = \DataTables::of($query)->addColumn('action', function ($query) { |
||
20 | $deleteLink = \Form::deleteajax('/admin/general-setting/'. $query->id, 'Delete', '', array('class'=>'btn btn-default btn-sm btn-danger')); |
||
21 | $links = '<a href="/admin/general-setting/'.$query->id.'/edit" class="btn btn-default btn-sm btn-success"><i class="entypo-pencil"></i>Edit</a> '.$deleteLink; |
||
22 | |||
23 | return $links; |
||
24 | }); |
||
25 | |||
26 | return $datatables->make(true); |
||
27 | |||
28 | } else { |
||
29 | return view('backend.error.index')->with('error', ExceptionService::selectAll()); |
||
30 | } |
||
33 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths