Skip to content

Commit 203e0b5

Browse files
authored
Merge pull request #333 from lesstif/analysis-VrYy6D
Apply fixes from StyleCI
2 parents 8f0d1ce + f321d10 commit 203e0b5

File tree

10 files changed

+33
-27
lines changed

10 files changed

+33
-27
lines changed

src/Configuration/AbstractConfiguration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,4 +334,4 @@ public function getUseV3RestApi()
334334
{
335335
return $this->useV3RestApi;
336336
}
337-
}
337+
}

src/Configuration/ArrayConfiguration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ public function __construct(array $configuration)
4040
}
4141
}
4242
}
43-
}
43+
}

src/Configuration/ConfigurationInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,4 @@ public function getProxyPassword();
158158
* @return bool
159159
*/
160160
public function getUseV3RestApi();
161-
}
161+
}

src/Configuration/DotEnvConfiguration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,4 +160,4 @@ private function loadDotEnv(string $path)
160160
throw new JiraException('can not load PHP dotenv class.!');
161161
}
162162
}
163-
}
163+
}

src/Issue/IssueService.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,9 +825,10 @@ public function getCustomFields($priorityId)
825825
*
826826
* @param string $issueIdOrKey
827827
*
828-
* @return Reporter[]
829828
* @throws JiraException
830829
* @throws \JsonMapper_Exception
830+
*
831+
* @return Reporter[]
831832
*/
832833
public function getWatchers(string $issueIdOrKey)
833834
{

src/Issue/RemoteIssueLink.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public function jsonSerialize()
2929

3030
/**
3131
* @param string $url
32+
*
3233
* @return $this
3334
*/
3435
public function setUrl(string $url)

src/JiraClient.php

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -239,16 +239,16 @@ public function exec($context, $post_data = null, $custom_request = null, $cooki
239239

240240
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, $this->getConfiguration()->isCurlOptSslVerifyHost());
241241
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, $this->getConfiguration()->isCurlOptSslVerifyPeer());
242-
if($this->getConfiguration()->isCurlOptSslCert()) {
242+
if ($this->getConfiguration()->isCurlOptSslCert()) {
243243
curl_setopt($ch, CURLOPT_SSLCERT, $this->getConfiguration()->isCurlOptSslCert());
244244
}
245-
if($this->getConfiguration()->isCurlOptSslCertPassword()) {
245+
if ($this->getConfiguration()->isCurlOptSslCertPassword()) {
246246
curl_setopt($ch, CURLOPT_SSLCERTPASSWD, $this->getConfiguration()->isCurlOptSslCertPassword());
247247
}
248-
if($this->getConfiguration()->isCurlOptSslKey()) {
248+
if ($this->getConfiguration()->isCurlOptSslKey()) {
249249
curl_setopt($ch, CURLOPT_SSLKEY, $this->getConfiguration()->isCurlOptSslKey());
250250
}
251-
if($this->getConfiguration()->isCurlOptSslKeyPassword()) {
251+
if ($this->getConfiguration()->isCurlOptSslKeyPassword()) {
252252
curl_setopt($ch, CURLOPT_SSLKEYPASSWD, $this->getConfiguration()->isCurlOptSslKeyPassword());
253253
}
254254

@@ -354,16 +354,16 @@ private function createUploadHandle($url, $upload_file, $ch)
354354
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, $this->getConfiguration()->isCurlOptSslVerifyHost());
355355
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, $this->getConfiguration()->isCurlOptSslVerifyPeer());
356356

357-
if($this->getConfiguration()->isCurlOptSslCert()) {
357+
if ($this->getConfiguration()->isCurlOptSslCert()) {
358358
curl_setopt($ch, CURLOPT_SSLCERT, $this->getConfiguration()->isCurlOptSslCert());
359359
}
360-
if($this->getConfiguration()->isCurlOptSslCertPassword()) {
360+
if ($this->getConfiguration()->isCurlOptSslCertPassword()) {
361361
curl_setopt($ch, CURLOPT_SSLCERTPASSWD, $this->getConfiguration()->isCurlOptSslCertPassword());
362362
}
363-
if($this->getConfiguration()->isCurlOptSslKey()) {
363+
if ($this->getConfiguration()->isCurlOptSslKey()) {
364364
curl_setopt($ch, CURLOPT_SSLKEY, $this->getConfiguration()->isCurlOptSslKey());
365365
}
366-
if($this->getConfiguration()->isCurlOptSslKeyPassword()) {
366+
if ($this->getConfiguration()->isCurlOptSslKeyPassword()) {
367367
curl_setopt($ch, CURLOPT_SSLKEYPASSWD, $this->getConfiguration()->isCurlOptSslKeyPassword());
368368
}
369369

@@ -437,10 +437,10 @@ public function upload($context, $filePathArray)
437437
}
438438

439439
/**
440-
* @param array $chArr
440+
* @param array $chArr
441441
* @param resource $mh
442-
* @param string $body
443-
* @param int $result_code
442+
* @param string $body
443+
* @param int $result_code
444444
*
445445
* @throws \JiraRestApi\JiraException
446446
*/
@@ -549,9 +549,9 @@ public function toHttpQueryParameter(array $paramArray)
549549
/**
550550
* download and save into outDir.
551551
*
552-
* @param string $url full url
553-
* @param string $outDir save dir
554-
* @param string $file save filename
552+
* @param string $url full url
553+
* @param string $outDir save dir
554+
* @param string $file save filename
555555
* @param string $cookieFile cookie filename
556556
*
557557
* @throws JiraException
@@ -575,16 +575,16 @@ public function download(string $url, string $outDir, string $file, string $cook
575575
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, $this->getConfiguration()->isCurlOptSslVerifyHost());
576576
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, $this->getConfiguration()->isCurlOptSslVerifyPeer());
577577

578-
if($this->getConfiguration()->isCurlOptSslCert()) {
578+
if ($this->getConfiguration()->isCurlOptSslCert()) {
579579
curl_setopt($ch, CURLOPT_SSLCERT, $this->getConfiguration()->isCurlOptSslCert());
580580
}
581-
if($this->getConfiguration()->isCurlOptSslCertPassword()) {
581+
if ($this->getConfiguration()->isCurlOptSslCertPassword()) {
582582
curl_setopt($ch, CURLOPT_SSLCERTPASSWD, $this->getConfiguration()->isCurlOptSslCertPassword());
583583
}
584-
if($this->getConfiguration()->isCurlOptSslKey()) {
584+
if ($this->getConfiguration()->isCurlOptSslKey()) {
585585
curl_setopt($ch, CURLOPT_SSLKEY, $this->getConfiguration()->isCurlOptSslKey());
586586
}
587-
if($this->getConfiguration()->isCurlOptSslKeyPassword()) {
587+
if ($this->getConfiguration()->isCurlOptSslKeyPassword()) {
588588
curl_setopt($ch, CURLOPT_SSLKEYPASSWD, $this->getConfiguration()->isCurlOptSslKeyPassword());
589589
}
590590

src/Project/ProjectService.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,11 @@ public function getStatuses($projectIdOrKey)
101101
* make transition info array for project issue transition.
102102
*
103103
* @param string|int $projectIdOrKey
104-
* @return array
104+
*
105105
* @throws JiraException
106106
*
107107
* @return array
108+
* @return array
108109
*/
109110
public function getProjectTransitionsToArray($projectIdOrKey)
110111
{

src/Sprint/SprintService.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@ public function getSprintFromJSON($json)
3939
* get all Sprint list.
4040
*
4141
* @param string $sprintId
42-
* @return object
42+
*
4343
* @throws JiraException
4444
* @throws \JsonMapper_Exception
45+
*
46+
* @return object
4547
*/
4648
public function getSprint(string $sprintId)
4749
{

src/Version/VersionService.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,11 @@ public function move(Version $version)
5656
*
5757
* @param string $id version id
5858
*
59-
* @return Version
60-
*
6159
* @throws JiraException
6260
* @throws \JsonMapper_Exception
61+
*
62+
* @return Version
63+
*
6364
* @see ProjectService::getVersions()
6465
*/
6566
public function get(string $id)

0 commit comments

Comments
 (0)