Skip to content

Commit

Permalink
style: fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
domtra committed Oct 24, 2024
1 parent de1193f commit e495f92
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions includes/features/class-tests.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@ public static function run_upgrader_tests( $upgrader, $options ) {
}
}

/**
* Prepare plugin for updates.
*
* @param string $plugin Plugin.
*
* @return array
*/
private static function add_plugin( $plugin ) {
$plugin_data = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin );
$new_version = $plugin_data['Version'];
Expand All @@ -103,6 +110,13 @@ private static function add_plugin( $plugin ) {
];
}

/**
* Prepare theme for updates.
*
* @param string $theme Theme.
*
* @return array
*/
private static function add_theme( $theme ) {
$theme_data = wp_get_theme( $theme );
$new_version = $theme_data->get( 'Version' );
Expand All @@ -116,6 +130,13 @@ private static function add_theme( $theme ) {
];
}

/**
* Prepare translation for updates.
*
* @param array $translation Translation.
*
* @return array
*/
private static function add_translation( $translation ) {
$type = $translation['type'];
$slug = $translation['slug'];
Expand Down

0 comments on commit e495f92

Please sign in to comment.