| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 45 | function clear_cache_timber() { |
||
| 46 | $clear = TimberCommand::clear_cache_timber(); |
||
| 47 | $message = 'Failed to clear timber cache'; |
||
| 48 | if ($clear){ |
||
| 49 | $message = "Cleared contents of Timber's Cache"; |
||
| 50 | WP_CLI::success($message); |
||
| 51 | } else { |
||
| 52 | WP_CLI::warning($message); |
||
| 53 | } |
||
| 54 | return $message; |
||
| 55 | } |
||
| 56 | |||
| 58 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.