Total Complexity | 2 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class BlogCategoryForm extends Form |
||
12 | { |
||
13 | /** |
||
14 | * The category to update. |
||
15 | * |
||
16 | * @var BlogCategory|null |
||
17 | */ |
||
18 | public ?BlogCategory $blogCategory = null; |
||
19 | |||
20 | /** |
||
21 | * The title of the category. |
||
22 | * |
||
23 | * @var string|null |
||
24 | */ |
||
25 | #[Validate('required|min:5')] |
||
26 | public ?string $title = null; |
||
27 | |||
28 | /** |
||
29 | * The description of the category. |
||
30 | * |
||
31 | * @var string|null |
||
32 | */ |
||
33 | #[Validate('required|min:10')] |
||
34 | public ?string $description = null; |
||
35 | |||
36 | /** |
||
37 | * Function to store the model. |
||
38 | * |
||
39 | * @return BlogCategory |
||
40 | */ |
||
41 | public function create(): BlogCategory |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * Function to update the model. |
||
53 | * |
||
54 | * @return BlogCategory |
||
55 | */ |
||
56 | public function update(): BlogCategory |
||
65 |
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.