Skip to content

Commit 18553ee

Browse files
committed
Add missing access private tags
1 parent 31fc8ac commit 18553ee

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

plugins/image-prioritizer/class-image-prioritizer-video-tag-visitor.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
* Image Prioritizer: Image_Prioritizer_Video_Tag_Visitor class
1818
*
1919
* @since 0.2.0
20-
*
2120
* @access private
2221
*/
2322
final class Image_Prioritizer_Video_Tag_Visitor extends Image_Prioritizer_Tag_Visitor {

plugins/image-prioritizer/helper.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* Initializes Image Prioritizer when Optimization Detective has loaded.
1515
*
1616
* @since 0.2.0
17+
* @access private
1718
*
1819
* @param string $optimization_detective_version Current version of the optimization detective plugin.
1920
*/
@@ -52,6 +53,7 @@ static function (): void {
5253
* See {@see 'wp_head'}.
5354
*
5455
* @since 0.1.0
56+
* @access private
5557
*/
5658
function image_prioritizer_render_generator_meta_tag(): void {
5759
// Use the plugin slug as it is immutable.
@@ -62,6 +64,7 @@ function image_prioritizer_render_generator_meta_tag(): void {
6264
* Registers tag visitors.
6365
*
6466
* @since 0.1.0
67+
* @access private
6568
*
6669
* @param OD_Tag_Visitor_Registry $registry Tag visitor registry.
6770
*/
@@ -81,6 +84,7 @@ function image_prioritizer_register_tag_visitors( OD_Tag_Visitor_Registry $regis
8184
* Filters the list of Optimization Detective extension module URLs to include the extension for Image Prioritizer.
8285
*
8386
* @since n.e.x.t
87+
* @access private
8488
*
8589
* @param string[]|mixed $extension_module_urls Extension module URLs.
8690
* @return string[] Extension module URLs.
@@ -97,6 +101,7 @@ function image_prioritizer_filter_extension_module_urls( $extension_module_urls
97101
* Filters additional properties for the element item schema for Optimization Detective.
98102
*
99103
* @since n.e.x.t
104+
* @access private
100105
*
101106
* @param array<string, array{type: string}> $additional_properties Additional properties.
102107
* @return array<string, array{type: string}> Additional properties.
@@ -141,6 +146,7 @@ function image_prioritizer_add_element_item_schema_properties( array $additional
141146
* Validates URL for a background image.
142147
*
143148
* @since n.e.x.t
149+
* @access private
144150
*
145151
* @param string $url Background image URL.
146152
* @return true|WP_Error Validity.
@@ -238,7 +244,8 @@ static function ( $host ) {
238244
* This removes the lcpElementExternalBackgroundImage from the URL Metric prior to it being stored if the background
239245
* image URL is not valid. Removal of the property is preferable to
240246
*
241-
* @since n.e.x.t
247+
* @since n.e.x.t
248+
* @access private
242249
*
243250
* @param bool|WP_Error|mixed $validity Validity. Valid if true or a WP_Error without any errors, or invalid otherwise.
244251
* @param OD_Strict_URL_Metric $url_metric URL Metric, already validated against the JSON Schema.
@@ -273,6 +280,7 @@ function image_prioritizer_filter_store_url_metric_validity( $validity, OD_Stric
273280
* Gets the path to a script or stylesheet.
274281
*
275282
* @since n.e.x.t
283+
* @access private
276284
*
277285
* @param string $src_path Source path, relative to plugin root.
278286
* @param string|null $min_path Minified path. If not supplied, then '.min' is injected before the file extension in the source path.
@@ -319,6 +327,7 @@ function image_prioritizer_get_asset_path( string $src_path, ?string $min_path =
319327
* Handles 'autoplay' and 'preload' attributes accordingly.
320328
*
321329
* @since 0.2.0
330+
* @access private
322331
*
323332
* @return string Lazy load script.
324333
*/
@@ -333,6 +342,7 @@ function image_prioritizer_get_video_lazy_load_script(): string {
333342
* Load the background image when it approaches the viewport using an IntersectionObserver.
334343
*
335344
* @since n.e.x.t
345+
* @access private
336346
*
337347
* @return string Lazy load script.
338348
*/
@@ -345,6 +355,7 @@ function image_prioritizer_get_lazy_load_bg_image_script(): string {
345355
* Gets the stylesheet to lazy-load background images.
346356
*
347357
* @since n.e.x.t
358+
* @access private
348359
*
349360
* @return string Lazy load stylesheet.
350361
*/

0 commit comments

Comments
 (0)