Skip to content

Instantly share code, notes, and snippets.

@chipbennett
Created November 3, 2011 02:25
Show Gist options
  • Save chipbennett/1335611 to your computer and use it in GitHub Desktop.
Save chipbennett/1335611 to your computer and use it in GitHub Desktop.
WCTOR.codingstandard.1
<?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