Skip to content

Commit ab08abd

Browse files
authored
Merge pull request #436 from WordPress/fix/phpcs
PHPCS: Use a period at the end
2 parents 95c9d08 + f172db4 commit ab08abd

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

admin/load.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ function perflab_admin_pointer( $hook_suffix ) {
385385
add_action( 'admin_enqueue_scripts', 'perflab_admin_pointer' );
386386

387387
/**
388-
* Renders the Admin Pointer
388+
* Renders the Admin Pointer.
389389
*
390390
* Handles the rendering of the admin pointer.
391391
*

modules/images/dominant-color/class-dominant-color-image-editor-gd.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
/**
1313
* WordPress Image Editor Class for Image Manipulation through GD
14-
* with dominant color detection
14+
* with dominant color detection.
1515
*
1616
* @since 1.2.0
1717
*

modules/images/dominant-color/class-dominant-color-image-editor-imagick.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
/**
1313
* WordPress Image Editor Class for Image Manipulation through Imagick
14-
* with dominant color detection
14+
* with dominant color detection.
1515
*
1616
* @since 1.2.0
1717
*

modules/images/dominant-color/load.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function dominant_color_metadata( $metadata, $attachment_id ) {
3434
add_filter( 'wp_generate_attachment_metadata', 'dominant_color_metadata', 10, 2 );
3535

3636
/**
37-
* Filter various image attributes to add the dominant color to the image
37+
* Filters various image attributes to add the dominant color to the image.
3838
*
3939
* @since 1.2.0
4040
*
@@ -145,9 +145,9 @@ function dominant_color_img_tag_add_dominant_color( $filtered_image, $context, $
145145
*
146146
* @since 1.2.0
147147
*
148-
* @param string $content the content to filter.
149-
* @param string $context the context of the content.
150-
* @return string content
148+
* @param string $content The content to filter.
149+
* @param string $context The context of the content.
150+
* @return string The updated $content.
151151
*/
152152
function dominant_color_filter_content_tags( $content, $context = null ) {
153153
if ( null === $context ) {

modules/images/webp-uploads/helper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function webp_uploads_get_upload_image_mime_transforms() {
6464
* @param string $mime The target mime in which the image should be created.
6565
* @param string|null $destination_file_name The path where the file would be stored, including the extension. If null, `generate_filename` is used to create the destination file name.
6666
*
67-
* @return array|WP_Error An array with the file and filesize if the image was created correctly otherwise a WP_Error
67+
* @return array|WP_Error An array with the file and filesize if the image was created correctly, otherwise a WP_Error.
6868
*/
6969
function webp_uploads_generate_additional_image_source( $attachment_id, $image_size, array $size_data, $mime, $destination_file_name = null ) {
7070
/**
@@ -80,7 +80,7 @@ function webp_uploads_generate_additional_image_source( $attachment_id, $image_s
8080
* @param string $image_size The size name that would be used to create this image, out of the registered subsizes.
8181
* @param array $size_data An array with the dimensions of the image: height, width and crop {'height'=>int, 'width'=>int, 'crop'}.
8282
* @param string $mime The target mime in which the image should be created.
83-
* @return array|null|WP_Error An array with the file and filesize if the image was created correctly otherwise a WP_Error
83+
* @return array|null|WP_Error array|null|WP_Error An array with the file and filesize if the image was created correctly, otherwise a WP_Error.
8484
*/
8585
$image = apply_filters( 'webp_uploads_pre_generate_additional_image_source', null, $attachment_id, $image_size, $size_data, $mime );
8686
if ( is_wp_error( $image ) ) {

modules/images/webp-uploads/load.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ function webp_uploads_update_image_references( $content ) {
497497
* for the specified image sizes, the *.webp references are stored inside of each size.
498498
*
499499
* @since 1.0.0
500-
* @since 1.3.0 Remove `webp_uploads_prefer_smaller_image_file` filter
500+
* @since 1.3.0 Remove `webp_uploads_prefer_smaller_image_file` filter.
501501
*
502502
* @param string $original_image An <img> tag where the urls would be updated.
503503
* @param string $context The context where this is function is being used.

0 commit comments

Comments
 (0)