Showing 56 of 72 total issues
When a multi-item array uses associative keys, each value should start on a new line. Open
Open
'values' => array( 'role' => '', 'new_role' => '' ),
- Exclude checks
Found precision alignment of 1 spaces. Open
Open
. sprintf( __( 'Please enable the "%s" view type to add/edit roles', VIEW_ADMIN_AS_DOMAIN ), $view_type_label ),
- Exclude checks
Found precision alignment of 1 spaces. Open
Open
// Translators: %s stands for the translated view type label "Roles".
- Exclude checks
Method name "_get_hooks" should not be prefixed with an underscore to indicate visibility Open
Open
public function _get_hooks( $keys = null, $objects = false ) {
- Exclude checks
Expected 1 space after comma in function call; 3 found Open
Open
define( 'VIEW_ADMIN_AS_BASENAME', plugin_basename( VIEW_ADMIN_AS_FILE ) );
- Exclude checks
Found precision alignment of 1 spaces. Open
Open
* Lock meta boxes in position by disabling sorting.
- Exclude checks
When a multi-item array uses associative keys, each value should start on a new line. Open
Open
'values' => array( 'role' => '', 'migrate' => false, 'new_role' => '' ),
- Exclude checks
Method name "_remove" should not be prefixed with an underscore to indicate visibility Open
Open
protected function _remove( $hooks, $hook, $callback, $priority ) {
- Exclude checks
Found precision alignment of 1 spaces. Open
Open
// Translators: %s stands for the translated view type label "Capabilities".
- Exclude checks
Method name "_filter_get_user_capabilities" should not be prefixed with an underscore to indicate visibility Open
Open
public function _filter_get_user_capabilities( $null, $user_id, $meta_key ) {
- Exclude checks
Expected 1 space after comma in function call; 4 found Open
Open
define( 'VIEW_ADMIN_AS_VERSION', '1.8.8' );
- Exclude checks
Found precision alignment of 2 spaces. Open
Open
. ': <code>' . implode( '|', $user_data ) . ' (user_id|role)</code>';
- Exclude checks
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$notice'. Open
Open
echo '<div class="' . $notice['type'] . ' notice is-dismissible"><p>' . $notice['message'] . '</p></div>';
- Exclude checks
Found precision alignment of 3 spaces. Open
Open
. ( ( $role ) ? ' (' . $this->store->get_rolenames( $role_obj->name ) . ')' : '' ),
- Exclude checks
Found precision alignment of 1 spaces. Open
Open
. sprintf( __( 'Please enable the "%s" view type to set role defaults', VIEW_ADMIN_AS_DOMAIN ), $view_type->get_label() ),
- Exclude checks
When a multi-item array uses associative keys, each value should start on a new line. Open
Open
'values' => array( 'role' => '', 'capabilities' => '' ),
- Exclude checks
Expected 1 space after comma in function call; 2 found Open
Open
$this->add_action( 'wp_login', array( $this, 'cleanup_views' ), 10, 2 );
- Exclude checks
Method name "_remove_all" should not be prefixed with an underscore to indicate visibility Open
Open
protected function _remove_all( $hooks, $hook, $priority ) {
- Exclude checks
Method name "_get_filters" should not be prefixed with an underscore to indicate visibility Open
Open
public function _get_filters( $keys = null, $objects = false ) {
- Exclude checks
Expected 1 space after comma in function call; 5 found Open
Open
define( 'VIEW_ADMIN_AS_DOMAIN', 'view-admin-as' );
- Exclude checks