@@ -32,6 +32,7 @@ function tiny_cache_skip_cache() {
3232 *
3333 * @param string $more_link_text
3434 * @param bool $strip_teaser
35+ * @return void
3536 */
3637function the_content_cached ( $ more_link_text = null , $ strip_teaser = false ) {
3738
@@ -50,6 +51,7 @@ function the_content_cached( $more_link_text = null, $strip_teaser = false ) {
5051
5152 // Cache hit.
5253 if ( $ found ) {
54+ /** @var string $cached */
5355 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
5456 print $ cached ;
5557
@@ -81,6 +83,7 @@ function the_content_cached( $more_link_text = null, $strip_teaser = false ) {
8183 *
8284 * @param string $more_link_text
8385 * @param bool $strip_teaser
86+ * @return string
8487 */
8588function get_the_content_cached ( $ more_link_text = null , $ strip_teaser = false ) {
8689
@@ -97,6 +100,7 @@ function get_the_content_cached( $more_link_text = null, $strip_teaser = false )
97100
98101 // Cache hit.
99102 if ( $ found ) {
103+ /** @var string $cached */
100104 return $ cached ;
101105 }
102106
@@ -148,6 +152,7 @@ function tiny_cache_save_the_content( $content ) {
148152 * @param string $slug
149153 * @param string $name
150154 * @param string $version_hash
155+ * @return void
151156 */
152157function get_template_part_cached ( $ slug , $ name = null , $ version_hash = '' ) {
153158
@@ -174,6 +179,7 @@ function get_template_part_cached( $slug, $name = null, $version_hash = '' ) {
174179
175180 // Cache hit.
176181 if ( $ found ) {
182+ /** @var string $cached */
177183 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
178184 print $ cached ;
179185
@@ -199,6 +205,7 @@ function get_template_part_cached( $slug, $name = null, $version_hash = '' ) {
199205 * Delete cached content by ID.
200206 *
201207 * @param int $post_id
208+ * @return void
202209 */
203210function tiny_cache_delete_the_content ( $ post_id ) {
204211
@@ -211,6 +218,7 @@ function tiny_cache_delete_the_content( $post_id ) {
211218 * @param string $new_status
212219 * @param string $old_status
213220 * @param \WP_Post $post
221+ * @return void
214222 */
215223function tiny_cache_post_transition ( $ new_status , $ old_status , $ post ) {
216224
@@ -224,6 +232,8 @@ function tiny_cache_post_transition( $new_status, $old_status, $post ) {
224232
225233/**
226234 * Hook cache delete actions.
235+ *
236+ * @return void
227237 */
228238function tiny_cache_actions () {
229239
0 commit comments