Sensei_Course_Structure D

Total Complexity 158
Dependencies 8
Dependents 7
Total lines 1,017
Lines of code 569
Logical lines of code 289
Comment lines 317
Methods 28
Properties 2

Methods 28

Method Rating Maintainability Complexity Lines of code
sanitize_item()
C
35 26 82
save_module()
A
43 13 49
sort_structure()
A
51 12 26
flatten_structure()
A
49 11 32
get()
A
49 11 28
save()
A
45 10 41
validate_item_structure()
A
49 9 33
sanitize_structure()
A
49 7 34
update_module()
S
53 7 24
try_get_existing_module_by_slug_or_title_for_author()
S
51 6 28
save_module_order()
S
59 6 14
update_lesson()
S
55 5 19
prepare_module()
S
54 4 20
save_lesson()
S
60 4 14
create_quiz()
S
55 2 20
create_lesson()
S
55 2 20
get_first_incomplete_lesson_id()
S
65 3 9
clear_lesson_associations()
S
63 3 10
create_module()
S
62 2 11
get_existing_module()
S
66 2 8
get_lesson_content_markup()
S
69 2 7
get_modules()
S
69 2 7
get_module_lessons()
S
73 2 4
get_module_slug()
S
69 2 6
instance()
S
70 2 6
prepare_lesson()
S
63 1 10
__construct()
S
81 1 3
filter_no_cache_where()
S
75 1 4