From afb78ae980cc378d95e86300af405f4fa8388f08 Mon Sep 17 00:00:00 2001 From: scribu Date: Tue, 1 Oct 2013 16:36:55 +0300 Subject: [PATCH] whitespace fixes --- php/commands/plugin.php | 2 +- php/commands/post.php | 2 +- php/commands/term.php | 6 +++--- php/commands/theme.php | 2 +- php/utils.php | 8 ++++---- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/php/commands/plugin.php b/php/commands/plugin.php index 1ca6670e..1f1605ac 100644 --- a/php/commands/plugin.php +++ b/php/commands/plugin.php @@ -375,7 +375,7 @@ class Plugin_Command extends \WP_CLI\CommandWithUpgrade { * * * : The plugin to get. - * + * * [--field=] * : Instead of returning the whole plugin, returns the value of a single field. * diff --git a/php/commands/post.php b/php/commands/post.php index 42210609..91ee1a47 100644 --- a/php/commands/post.php +++ b/php/commands/post.php @@ -174,7 +174,7 @@ class Post_Command extends \WP_CLI\CommandWithDBObject { unset( $fields['filter'], $fields['post_content'], $fields['format_content'] ); else if ( 'json' == $assoc_args['format'] ) unset( $fields['filter'] ); - + \WP_CLI\Utils\show_multiple_fields( $fields, $assoc_args['format'] ); } } diff --git a/php/commands/term.php b/php/commands/term.php index c2d76023..e9aad440 100644 --- a/php/commands/term.php +++ b/php/commands/term.php @@ -26,7 +26,7 @@ class Term_Command extends WP_CLI_Command { * * [--=] * : Filter by one or more fields. For accepted fields, see get_terms(). - * + * * [--field=] * : Prints the value of a single field for each term. * @@ -142,7 +142,7 @@ class Term_Command extends WP_CLI_Command { * * * : Taxonomy of the term to get - * + * * [--field=] * : Instead of returning the whole term, returns the value of a single field. * @@ -176,7 +176,7 @@ class Term_Command extends WP_CLI_Command { } else { $term = get_object_vars( $term ); - + \WP_CLI\Utils\show_multiple_fields( $term, $assoc_args['format'] ); } diff --git a/php/commands/theme.php b/php/commands/theme.php index abea4ae6..8b0c7b61 100644 --- a/php/commands/theme.php +++ b/php/commands/theme.php @@ -256,7 +256,7 @@ class Theme_Command extends \WP_CLI\CommandWithUpgrade { * * * : The theme to get. - * + * * [--field=] * : Instead of returning the whole theme, returns the value of a single field. * diff --git a/php/utils.php b/php/utils.php index 5404fa22..bdcaba12 100644 --- a/php/utils.php +++ b/php/utils.php @@ -310,8 +310,8 @@ function pick_fields( $item, $fields ) { } /** - * Show a single field from a list of items - * + * Show a single field from a list of items. + * * @param array Array of objects to show fields from * @param string The field to show * @param string The format to show the field in @@ -342,8 +342,8 @@ function show_single_field( $items, $field, $format = '', $field_prefix = '' ) { } /** - * Show multiple fields of an object - * + * Show multiple fields of an object. + * * @param object|array Data to display * @param string Format to display the data in */ -- 2.11.0