GB_Meta::update_cache
Update the metadata cache for the specified objects.
Signature
public function update_cache(string
$meta_type,
int|array
$object_ids )
Parameters
$meta_type
— string
Type of object metadata is for (e.g., comment, post, or user)$object_ids
— object
array or comma delimited list of object IDs to update cache for
Returns
- mixed
- Metadata cache for the specified objects, or false on failure.
Violations
PHPMessDetector
Line | Rule | Message |
---|---|---|
836 - 901 | CyclomaticComplexity | The method update_cache() has a Cyclomatic Complexity of 16. The configured cyclomatic complexity threshold is 10. |
836 - 901 | NPathComplexity | The method update_cache() has an NPath complexity of 2376. The configured NPath complexity threshold is 200. |
Checkstyle
Line | Column | Severity | Message |
---|---|---|---|
836 | 12 | error | Method name "GB_Meta::update_cache" is not in camel caps format |
836 | 12 | error | Visibility must be declared on method "update_cache" |
861 | 13 | error | Inline control structures are not allowed |
863 | 13 | error | Expected 1 space after ELSE keyword; newline found |
863 | 13 | error | Inline control structures are not allowed |
867 | 9 | error | Inline control structures are not allowed |
872 | 144 | warning | Line exceeds 120 characters; contains 144 characters |
884 | 17 | error | Inline control structures are not allowed |
886 | 17 | error | Inline control structures are not allowed |
895 | 13 | error | Inline control structures are not allowed |