Skip to content

Commit

Permalink
minor changes regarding the code format guidelines
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinhard Holler committed Jul 25, 2011
1 parent f235689 commit 7a7e724
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions Timecard/Timecard.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function hooks() {
'EVENT_MANAGE_PROJECT_UPDATE' => 'project_update',
'EVENT_MENU_SUMMARY' => 'view_timecard',

'EVENT_FILTER_COLUMNS' => 'addColumns'
'EVENT_FILTER_COLUMNS' => 'add_columns'
);
}

Expand Down Expand Up @@ -476,13 +476,13 @@ function view_timecard(){
return '<a href="' . plugin_page('view_timecard') . '">View Timecard</a>';
}

function addColumns() {
$result = array();
if (plugin_config_get( 'use_estimates' )) {
function add_columns() {
$v_result = array();
if ( plugin_config_get( 'use_estimates' ) ) {
require_once( 'classes/TimecardEstimateColumn.class.php' );
$result[] = 'TimecardEstimateColumn';
$v_result[] = 'TimecardEstimateColumn';
}
return $result;
return $v_result;
}
}

6 changes: 3 additions & 3 deletions Timecard/classes/TimecardEstimateColumn.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ class TimecardEstimateColumn extends MantisColumn {
public $sortable = false;

public function __construct() {
plugin_push_current('Timecard');
plugin_push_current( 'Timecard' );

$this->title = plugin_lang_get('estimate');
$this->title = plugin_lang_get( 'estimate' );

plugin_pop_current();
}

public function display( $p_bug, $p_columns_target ) {
plugin_push_current('Timecard');
plugin_push_current( 'Timecard' );

$p_bug_id = $p_bug->id;
$t_bug = TimecardBug::load( $p_bug_id, true );
Expand Down

0 comments on commit 7a7e724

Please sign in to comment.