fix cs
This commit is contained in:
14
src/test.php
14
src/test.php
@@ -2,22 +2,22 @@
|
||||
<?php
|
||||
// load the config, create the connection and load the repo sepcified on the cmd line args
|
||||
// we will then have $client and $repo available
|
||||
require('setup.php');
|
||||
require 'setup.php';
|
||||
|
||||
//get the test label or create if not exist
|
||||
if(!$label=$repo->getLabelByName('Test')){
|
||||
$label=$repo->createLabel(['name'=>'Test','color'=>'#336699']);
|
||||
if (!$label = $repo->getLabelByName('Test')) {
|
||||
$label = $repo->createLabel(['name' => 'Test', 'color' => '#336699']);
|
||||
}
|
||||
|
||||
//create a test issue
|
||||
$issue=$repo->createIssue([
|
||||
'title'=>'Test',
|
||||
'body'=>'Just testing'
|
||||
$issue = $repo->createIssue([
|
||||
'title' => 'Test',
|
||||
'body' => 'Just testing',
|
||||
]);
|
||||
$issue->addLabel($label);
|
||||
$issue->addComment('Test comment');
|
||||
$issue->save();
|
||||
|
||||
//change the issue body
|
||||
$issue->body.=' (Edited!)';
|
||||
$issue->body .= ' (Edited!)';
|
||||
$issue->save();
|
||||
|
Reference in New Issue
Block a user