Showing 56 of 72 total issues
Expected 1 space after comma in function call; 7 found Open
Open
define( 'VIEW_ADMIN_AS_FILE', __FILE__ );
- Exclude checks
When a multi-item array uses associative keys, each value should start on a new line. Open
Open
'values' => array( 'role' => '', 'new_name' => '' ),
- Exclude checks
Method name "_get_identifier" should not be prefixed with an underscore to indicate visibility Open
Open
protected function _get_identifier( $hook, $callback, $priority ) {
- Exclude checks
Method name "_get_actions" should not be prefixed with an underscore to indicate visibility Open
Open
public function _get_actions( $keys = null, $objects = false ) {
- Exclude checks
Found precision alignment of 1 spaces. Open
Open
*
- Exclude checks
Found precision alignment of 1 spaces. Open
Open
* http://wordpress.stackexchange.com/a/44539
- 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
Method name "_remove_own" should not be prefixed with an underscore to indicate visibility Open
Open
protected function _remove_own( $hooks, $hook, $priority, $function, $class ) {
- Exclude checks
Method name "_validate_priority" should not be prefixed with an underscore to indicate visibility Open
Open
protected function _validate_priority( $hooks, $hook, $callback, $priority ) {
- Exclude checks
Method name "_autoload" should not be prefixed with an underscore to indicate visibility Open
Open
public function _autoload( $class ) {
- Exclude checks
Overriding WordPress globals is prohibited. Found assignment to $GLOBALS Open
Open
$GLOBALS['super_admins'] = $super_admins;
- Exclude checks
Missing class import via use statement (line '137', column '26'). Open
Open
$this->selected = new Groups_Group( $this->store->get_view( $this->type ) );
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Missing class import via use statement (line '917', column '32'). Open
Open
$users[ $user->ID ] = new WP_User( $user );
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Avoid too many return
statements within this method. Open
Open
return $data;
Missing class import via use statement (line '237', column '27'). Open
Open
$this->hooks = new VAA_View_Admin_As_Hooks();
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Whitespace found at end of line Open
Open
- Exclude checks