Skip to content

Commit c0826fd

Browse files
change docblocks
1 parent 8e11b25 commit c0826fd

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/class-tiny-settings.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,8 @@ public function get_preserve_enabled( $name ) {
359359
/**
360360
* Retrieves the preserve options for the original image
361361
*
362-
* @param string - size name
363-
* @return false|array<string> false if size is not original, otherwise array of preserved keys
362+
* @param string $size_name Name of the size
363+
* @return array<string>|false false if size is not original, otherwise array of preserved keys
364364
*/
365365
public function get_preserve_options( $size_name ) {
366366
if ( ! Tiny_Image::is_original( $size_name ) ) {

test/helpers/wordpress.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ public function createImage($file_size, $path, $name)
284284

285285
/**
286286
* Creates images on the virtual disk for testing
287-
* @param null|array $sizes Array of size => bytes to create, file will be named $name-$size.png
287+
* @param null|array $sizes Array of size name (array key) => bytes to create; each file will be named "$name-<size name>.png"
288288
* @param int $original_size Bytes of image
289289
* @param string $path Path to image
290290
* @param string $name Name of the image
@@ -322,7 +322,7 @@ public function createImagesFromJSON($virtual_images)
322322
*
323323
* @param string $path directory of the file in UPLOAD_DIR
324324
* @param string $name name of the file without extension
325-
* @return array object containing metadata
325+
* @return array metadata array
326326
*/
327327
public function getTestMetadata($path = '14/01', $name = 'test')
328328
{

0 commit comments

Comments
 (0)