Total Complexity | 3 |
Total Lines | 59 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class UpdatePost extends Component |
||
15 | { |
||
16 | use AuthorizesRequests; |
||
17 | use Toastable; |
||
18 | |||
19 | /** |
||
20 | * The form used to create/update a model. |
||
21 | * |
||
22 | * @var DiscussPostForm |
||
23 | */ |
||
24 | public DiscussPostForm $form; |
||
25 | |||
26 | /** |
||
27 | * Used to show the Edit/Create modal. |
||
28 | * |
||
29 | * @var bool |
||
30 | */ |
||
31 | public bool $showModal = false; |
||
32 | |||
33 | public function render() |
||
34 | { |
||
35 | return view('livewire.discuss.update-post'); |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * When a user click on 'Edit' open the modal and set the content. |
||
40 | * |
||
41 | * @param DiscussPost $discussPost |
||
42 | * |
||
43 | * @return void |
||
44 | */ |
||
45 | #[On('update-post')] |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * Update the post. |
||
59 | * |
||
60 | * @return void |
||
61 | */ |
||
62 | public function update(): void |
||
75 |
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.