PHP Class bouiboui\Tissue\GithubIssue

ファイルを表示 Open project: bouiboui/tissue Class Usage Examples

Public Methods

Method Description
__construct ( string $message = null, integer $code = null, integer $severity = null, string $path = null, integer $lineno = null, string $trace = null ) GithubIssue constructor.
commit ( $yourUsername, $yourPassword, $targetRepoAuthor, $targetRepoName ) : array Actually creates the issue on Github, returns an array with the issue's number and URL.

Private Methods

Method Description
formatBody ( array $bodyContents ) : string Formats the issue's body
formatPath ( $path ) : string Formats the issue's path
formatTable ( $code, $severity ) : string Formats the issue's table
formatTitle ( $path, $lineno, $message ) : string Formats the issue's title

Method Details

__construct() public method

Internally formats the Github issue title and message
public __construct ( string $message = null, integer $code = null, integer $severity = null, string $path = null, integer $lineno = null, string $trace = null )
$message string
$code integer
$severity integer
$path string
$lineno integer
$trace string

commit() public method

Actually creates the issue on Github, returns an array with the issue's number and URL.
public commit ( $yourUsername, $yourPassword, $targetRepoAuthor, $targetRepoName ) : array
$yourUsername
$yourPassword
$targetRepoAuthor
$targetRepoName
return array