Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove and test phpcs:ignores #15

Open
6 tasks
carl-alberto opened this issue Nov 8, 2019 · 0 comments
Open
6 tasks

Remove and test phpcs:ignores #15

carl-alberto opened this issue Nov 8, 2019 · 0 comments

Comments

@carl-alberto
Copy link
Member

carl-alberto commented Nov 8, 2019

  • private static $instance = null; //phpcs:ignore

  • public $_version; //phpcs:ignore

  • public $_token; //phpcs:ignore

  • //phpcs:disable
    $messages[ $this->post_type ] = array(
    0 => '',
    1 => sprintf( __( '%1$s updated. %2$sView %3$s%4$s.', 'tika-doc-pdf-indexer' ), $this->single, '<a href="' . esc_url( get_permalink( $post_ID ) ) . '">', $this->single, '</a>' ),
    2 => __( 'Custom field updated.', 'tika-doc-pdf-indexer' ),
    3 => __( 'Custom field deleted.', 'tika-doc-pdf-indexer' ),
    4 => sprintf( __( '%1$s updated.', 'tika-doc-pdf-indexer' ), $this->single ),
    5 => sprintf( __( '%1$s restored to previous revision.', 'tika-doc-pdf-indexer' ), $this->single ),
    6 => sprintf( __( '%1$s published. %2$sView %3$s%4$s.', 'tika-doc-pdf-indexer' ), $this->single, '<a href="' . esc_url( get_permalink( $post_ID ) ) . '">', $this->single, '</a>' ),
    7 => sprintf( __( '%1$s saved.', 'tika-doc-pdf-indexer' ), $this->single ),
    8 => sprintf( __( '%1$s submitted. %2$sPreview post%3$s%4$s.', 'tika-doc-pdf-indexer' ), $this->single, '<a target="_blank" href="' . esc_url( add_query_arg( 'preview', 'true', get_permalink( $post_ID ) ) ) . '">', $this->single, '</a>' ),
    9 => sprintf( __( '%1$s scheduled for: %2$s. %3$sPreview %4$s%5$s.', 'tika-doc-pdf-indexer' ), $this->single, '<strong>' . date_i18n( __( 'M j, Y @ G:i', 'tika-doc-pdf-indexer' ), strtotime( $post->post_date ) ) . '</strong>', '<a target="_blank" href="' . esc_url( get_permalink( $post_ID ) ) . '">', $this->single, '</a>' ),
    10 => sprintf( __( '%1$s draft updated. %2$sPreview %3$s%4$s.', 'tika-doc-pdf-indexer' ), $this->single, '<a target="_blank" href="' . esc_url( add_query_arg( 'preview', 'true', get_permalink( $post_ID ) ) ) . '">', $this->single, '</a>' ),
    );
    //phpcs:enable

  • public function register_post_type() {
    //phpcs:disable
    $labels = array(
    'name' => $this->plural,
    'singular_name' => $this->single,
    'name_admin_bar' => $this->single,
    'add_new' => _x( 'Add New', $this->post_type, 'tika-doc-pdf-indexer' ),
    /* translators: %s: Post type name */
    'add_new_item' => sprintf( __( 'Add New %s', 'tika-doc-pdf-indexer' ), $this->single ),
    /* translators: %s: Post type name */
    'edit_item' => sprintf( __( 'Edit %s', 'tika-doc-pdf-indexer' ), $this->single ),
    /* translators: %s: Post type name */
    'new_item' => sprintf( __( 'New %s', 'tika-doc-pdf-indexer' ), $this->single ),
    /* translators: %s: Post type name */
    'all_items' => sprintf( __( 'All %s', 'tika-doc-pdf-indexer' ), $this->plural ),
    /* translators: %s: Post type name */
    'view_item' => sprintf( __( 'View %s', 'tika-doc-pdf-indexer' ), $this->single ),
    /* translators: %s: Post type name */
    'search_items' => sprintf( __( 'Search %s', 'tika-doc-pdf-indexer' ), $this->plural ),
    /* translators: %s: Post type name */
    'not_found' => sprintf( __( 'No %s Found', 'tika-doc-pdf-indexer' ), $this->plural ),
    /* translators: %s: Post type name */
    'not_found_in_trash' => sprintf( __( 'No %s Found In Trash', 'tika-doc-pdf-indexer' ), $this->plural ),
    /* translators: %s: Post type name */
    'parent_item_colon' => sprintf( __( 'Parent %s' ), $this->single ),
    'menu_name' => $this->plural,
    );
    //phpcs:enable

  • //phpcs:disable
    'updated' => sprintf( _n( '%1$s %2$s updated.', '%1$s %3$s updated.', $bulk_counts['updated'], 'tika-doc-pdf-indexer' ), $bulk_counts['updated'], $this->single, $this->plural ),
    'locked' => sprintf( _n( '%1$s %2$s not updated, somebody is editing it.', '%1$s %3$s not updated, somebody is editing them.', $bulk_counts['locked'], 'tika-doc-pdf-indexer' ), $bulk_counts['locked'], $this->single, $this->plural ),
    'deleted' => sprintf( _n( '%1$s %2$s permanently deleted.', '%1$s %3$s permanently deleted.', $bulk_counts['deleted'], 'tika-doc-pdf-indexer' ), $bulk_counts['deleted'], $this->single, $this->plural ),
    'trashed' => sprintf( _n( '%1$s %2$s moved to the Trash.', '%1$s %3$s moved to the Trash.', $bulk_counts['trashed'], 'tika-doc-pdf-indexer' ), $bulk_counts['trashed'], $this->single, $this->plural ),
    'untrashed' => sprintf( _n( '%1$s %2$s restored from the Trash.', '%1$s %3$s restored from the Trash.', $bulk_counts['untrashed'], 'tika-doc-pdf-indexer' ), $bulk_counts['untrashed'], $this->single, $this->plural ),
    );

A gettext call containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant