Skip to content

Commit

Permalink
Fix CodeSniffer Warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mantis committed Aug 20, 2010
1 parent 46bc510 commit 6b36df3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/classes/MantisPlugin.class.php
Expand Up @@ -87,7 +87,7 @@ public function init() {}
* This function allows plugins to add new error messages for Mantis usage
*
* @returns array The error_name=>error_message list to add
*/
*/
public function errors() {
return array();
}
Expand Down
4 changes: 2 additions & 2 deletions core/columns_api.php
Expand Up @@ -147,7 +147,7 @@ function columns_get_standard() {
if( config_get( 'enable_sponsorship' ) == OFF ) {
unset( $t_columns['sponsorship_total'] );
}

# The following fields are used internally and don't make sense as columns
unset( $t_columns['_stats'] );
unset( $t_columns['profile_id'] );
Expand All @@ -156,7 +156,7 @@ function columns_get_standard() {

# legacy field
unset( $t_columns['duplicate_id'] );

return array_keys($t_columns);
}

Expand Down
2 changes: 1 addition & 1 deletion core/install_helper_functions_api.php
Expand Up @@ -172,7 +172,7 @@ function install_date_migrate( $p_data) {
if ( is_array( $p_data[2] ) ) {
$t_old_column = implode( ',', $p_data[2] );
$t_date_array = true;
$t_cnt_fields = sizeof( $p_data[2] );
$t_cnt_fields = count( $p_data[2] );
$t_pairs = array();
foreach( $p_data[3] as $var ) {
array_push( $t_pairs, "$var=" . db_param() ) ;
Expand Down

0 comments on commit 6b36df3

Please sign in to comment.