JoryHogeveen/view-admin-as

View on GitHub

Showing 56 of 72 total issues

When a multi-item array uses associative keys, each value should start on a new line.
Open

                'values'     => array( 'role' => '', 'new_role' => '' ),

Found precision alignment of 1 spaces.
Open

                                     . sprintf( __( 'Please enable the "%s" view type to add/edit roles', VIEW_ADMIN_AS_DOMAIN ), $view_type_label ),

Found precision alignment of 1 spaces.
Open

                                     // Translators: %s stands for the translated view type label "Roles".

Method name "_get_hooks" should not be prefixed with an underscore to indicate visibility
Open

    public function _get_hooks( $keys = null, $objects = false ) {
Severity: Minor
Found in includes/class-hooks.php by phpcodesniffer

Expected 1 space after comma in function call; 3 found
Open

    define( 'VIEW_ADMIN_AS_BASENAME',   plugin_basename( VIEW_ADMIN_AS_FILE ) );
Severity: Minor
Found in view-admin-as.php by phpcodesniffer

Found precision alignment of 1 spaces.
Open

                         * Lock meta boxes in position by disabling sorting.

When a multi-item array uses associative keys, each value should start on a new line.
Open

                'values'       => array( 'role' => '', 'migrate' => false, 'new_role' => '' ),

Method name "_remove" should not be prefixed with an underscore to indicate visibility
Open

    protected function _remove( $hooks, $hook, $callback, $priority ) {
Severity: Minor
Found in includes/class-hooks.php by phpcodesniffer

Found precision alignment of 1 spaces.
Open

                                     // Translators: %s stands for the translated view type label "Capabilities".

Method name "_filter_get_user_capabilities" should not be prefixed with an underscore to indicate visibility
Open

    public function _filter_get_user_capabilities( $null, $user_id, $meta_key ) {
Severity: Minor
Found in modules/class-users.php by phpcodesniffer

Expected 1 space after comma in function call; 4 found
Open

    define( 'VIEW_ADMIN_AS_VERSION',    '1.8.8' );
Severity: Minor
Found in view-admin-as.php by phpcodesniffer

Found precision alignment of 2 spaces.
Open

                                      . ': <code>' . implode( '|', $user_data ) . ' (user_id|role)</code>';

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$notice'.
Open

                echo '<div class="' . $notice['type'] . ' notice is-dismissible"><p>' . $notice['message'] . '</p></div>';
Severity: Minor
Found in includes/class-vaa.php by phpcodesniffer

Found precision alignment of 3 spaces.
Open

                               . ( ( $role ) ? ' (' . $this->store->get_rolenames( $role_obj->name ) . ')' : '' ),

Found precision alignment of 1 spaces.
Open

                                     . sprintf( __( 'Please enable the "%s" view type to set role defaults', VIEW_ADMIN_AS_DOMAIN ), $view_type->get_label() ),

When a multi-item array uses associative keys, each value should start on a new line.
Open

                'values'     => array( 'role' => '', 'capabilities' => '' ),

Expected 1 space after comma in function call; 2 found
Open

        $this->add_action( 'wp_login',  array( $this, 'cleanup_views' ), 10, 2 );

Method name "_remove_all" should not be prefixed with an underscore to indicate visibility
Open

    protected function _remove_all( $hooks, $hook, $priority ) {
Severity: Minor
Found in includes/class-hooks.php by phpcodesniffer

Method name "_get_filters" should not be prefixed with an underscore to indicate visibility
Open

    public function _get_filters( $keys = null, $objects = false ) {
Severity: Minor
Found in includes/class-hooks.php by phpcodesniffer

Expected 1 space after comma in function call; 5 found
Open

    define( 'VIEW_ADMIN_AS_DOMAIN',     'view-admin-as' );
Severity: Minor
Found in view-admin-as.php by phpcodesniffer
Severity
Category
Status
Source
Language