Created
November 3, 2011 02:25
-
-
Save chipbennett/1335611 to your computer and use it in GitHub Desktop.
WCTOR.codingstandard.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// If the decoded json data has content, prepare the data | |
// to be output. | |
if ( 'issues' == $context ) { | |
// $reportdate is used as a table column header | |
$reportdate = ( 'open' == $status ? 'Reported' : 'Closed' ); | |
// $reportobject is used to return the appropriate timestamp | |
$reportobject = ( 'open' == $status ? 'created_at' : 'closed_at' ); | |
} else if ( 'commits' == $context ) { | |
// $reportdate is used as a table column header | |
$reportdate = 'Date'; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment