| @@ -74,9 +74,9 @@ | ||
| 74 | 74 | if ( \current_theme_supports( 'title-tag' ) ) { |
| 75 | 75 | return; |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | - \add_action( 'template_redirect', [ $this, 'force_rewrite_output_buffer' ], 99999 ); | |
| 78 | + \add_action( 'template_redirect', [ $this, 'force_rewrite_output_buffer' ], 99_999 ); | |
| 79 | 79 | \add_action( 'wp_footer', [ $this, 'flush_cache' ], -1 ); |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | /** |
| @@ -113,8 +113,10 @@ | ||
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | /** |
| 116 | 116 | * Starts the output buffer so it can later be fixed by flush_cache(). |
| 117 | + * | |
| 118 | + * @return void | |
| 117 | 119 | */ |
| 118 | 120 | public function force_rewrite_output_buffer() { |
| 119 | 121 | $this->ob_started = true; |
| 120 | 122 | $this->start_output_buffering(); |
| @@ -158,8 +160,10 @@ | ||
| 158 | 160 | /** |
| 159 | 161 | * Starts the output buffering. |
| 160 | 162 | * |
| 161 | 163 | * @codeCoverageIgnore |
| 164 | + * | |
| 165 | + * @return void | |
| 162 | 166 | */ |
| 163 | 167 | protected function start_output_buffering() { |
| 164 | 168 | \ob_start(); |
| 165 | 169 | } |
| @@ -168,9 +172,9 @@ | ||
| 168 | 172 | * Retrieves the buffered output. |
| 169 | 173 | * |
| 170 | 174 | * @codeCoverageIgnore |
| 171 | 175 | * |
| 172 | - * @return false|string The buffered output. | |
| 176 | + * @return string|false The buffered output. | |
| 173 | 177 | */ |
| 174 | 178 | protected function get_buffered_output() { |
| 175 | 179 | return \ob_get_clean(); |
| 176 | 180 | } |