Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | class TasksRepository |
||
16 | { |
||
17 | protected $task; |
||
18 | /** |
||
19 | * TasksRepository constructor. |
||
20 | * @param Tasks $task |
||
21 | */ |
||
22 | function __construct(Tasks $task) |
||
23 | { |
||
24 | $this->task = $task; |
||
25 | } |
||
26 | /** |
||
27 | * @return mixed |
||
28 | */ |
||
29 | public function allTask(){ |
||
30 | return $this->task->where('user_id', auth()->id())->orderBy('created_at', 'desc')->get()->groupBy(function($data){ |
||
|
|||
31 | return Carbon::parse($data->created_at)->format('d.m.Y'); |
||
32 | }); |
||
33 | } |
||
34 | /** |
||
35 | * @param Tasks $c_task |
||
36 | */ |
||
37 | public function mark(Tasks $c_task){ |
||
41 | } |
||
42 | } |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.