Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:lesstif/php-jira-rest-client int…
Browse files Browse the repository at this point in the history
…o develop
  • Loading branch information
lesstif committed Mar 27, 2019
2 parents 0085ccc + e7f5c4c commit c0e4e7a
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 13 deletions.
1 change: 0 additions & 1 deletion src/Configuration/AbstractConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,5 +290,4 @@ public function getUseV3RestApi()
{
return $this->useV3RestApi;
}

}
2 changes: 1 addition & 1 deletion src/Issue/ContentField.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ public function jsonSerialize()
{
return array_filter(get_object_vars($this));
}
}
}
5 changes: 2 additions & 3 deletions src/Issue/DescriptionV3.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@
* REST API V3 Issue description field.
*
* Class DescriptionV3
* @package JiraRestApi\Issue
*/
class DescriptionV3 implements \JsonSerializable
{
/* @var string */
public $self;

/* @var string */
public $type = 'doc';
public $type = 'doc';

/* @var integer */
public $version = 1;
Expand All @@ -33,7 +32,7 @@ public function addDescriptionContent($type, $text, $attrs = [])

$cf->type = $type;

if (!empty($attrs)){
if (!empty($attrs)) {
$cf->attrs = $attrs;
}

Expand Down
4 changes: 2 additions & 2 deletions src/Issue/IssueFieldV3.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ public function addDescriptionParagraph($description)
}

/**
* @param integer $level heading level
*
* @param int $level heading level
* @param string $description
*
* @return $this
Expand All @@ -92,6 +91,7 @@ public function addDescriptionHeading($level, $description)

/**
* @param \JiraRestApi\Issue\DescriptionV3|null $environment
*
* @return $this
*/
public function setEnvironment($environment)
Expand Down
6 changes: 3 additions & 3 deletions src/Issue/IssueService.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace JiraRestApi\Issue;

use JiraRestApi\Dumper;
use JiraRestApi\JiraException;

class IssueService extends \JiraRestApi\JiraClient
Expand Down Expand Up @@ -367,10 +366,11 @@ public function changeAssignee($issueIdOrKey, $assigneeName)
* Change a issue assignee for REST API V3.
*
* @param string|int $issueIdOrKey
* @param string|null $accountId Assigns an issue to a user.
* @param string|null $accountId Assigns an issue to a user.
*
* @return string
* @throws JiraException
*
* @return string
*/
public function changeAssigneeByAccountId($issueIdOrKey, $accountId)
{
Expand Down
2 changes: 1 addition & 1 deletion src/JiraClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ public function download($url, $outDir, $file, $cookieFile = null)
curl_setopt($ch, CURLOPT_VERBOSE, $this->getConfiguration()->isCurlOptVerbose());

if ($this->isRestApiV3()) {
curl_setopt($ch, CURLOPT_HTTPHEADER, ['x-atlassian-force-account-id: true']);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['x-atlassian-force-account-id: true']);
}

$this->log->debug('Curl exec='.$url);
Expand Down
4 changes: 2 additions & 2 deletions src/User/UserService.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ public function deleteUser($paramArray)
/**
* get a user info details.
*
* @return Reporter user Object
*
* @throws \JiraRestApi\JiraException
*
* @return Reporter user Object
*/
public function getMyself()
{
Expand Down

0 comments on commit c0e4e7a

Please sign in to comment.