SettingsRepository A

Total Complexity 64
Dependencies 1
Dependents 22
Total lines 464
Lines of code 209
Logical lines of code 106
Comment lines 128
Methods 33
Properties 3

Methods 33

Method Rating Maintainability Complexity Lines of code
sanitize_settings()
A
51 9 27
save()
S
51 6 26
all()
S
59 4 14
sanitize_heading_levels()
S
62 3 11
sanitize_array()
S
67 3 8
get_instance()
S
71 2 6
get()
S
66 2 8
get_string()
S
74 2 4
get_int()
S
74 2 4
get_array()
S
74 2 4
sanitize_post_types()
S
65 2 9
invalidate_cache()
S
69 2 7
maybe_invalidate_cache()
S
74 2 5
maybe_invalidate_cache_on_delete()
S
74 2 5
remove()
S
69 2 7
_reset_for_tests()
S
71 2 6
__construct()
S
75 1 4
setup_hooks()
S
71 1 5
get_cache_key()
S
80 1 3
get_all()
S
81 1 3
get_bool()
S
79 1 3
set()
S
76 1 4
set_string()
S
79 1 3
set_int()
S
79 1 3
set_bool()
S
79 1 3
set_array()
S
79 1 3
has()
S
75 1 4
has_pending()
S
80 1 3
get_pending()
S
82 1 3
clear_pending()
S
77 1 4
should_autoload()
S
75 1 4
get_defaults()
S
82 1 3
clear_cache()
S
82 1 3