Skip to content

Commit

Permalink
Merge pull request #224 from AexChecker/patch-1
Browse files Browse the repository at this point in the history
#225 | The "JiraClient::__construct()" gets "LoggerInterface"
  • Loading branch information
lesstif authored Jan 7, 2019
2 parents 1648c74 + 294c42b commit 45987fd
Show file tree
Hide file tree
Showing 11 changed files with 86 additions and 85 deletions.
4 changes: 2 additions & 2 deletions src/Attachment/AttachmentService.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function get($id, $outDir = null, $overwrite = false, $mode = 0777, $recu
{
$ret = $this->exec($this->uri.$id, null);

$this->log->addInfo("Result=\n".$ret);
$this->log->info("Result=\n".$ret);

$attachment = $this->json_mapper->map(
json_decode($ret), new Attachment()
Expand Down Expand Up @@ -69,7 +69,7 @@ public function remove($id)
{
$ret = $this->exec($this->uri.$id, null, 'DELETE');

$this->log->addInfo("Result=\n".$ret);
$this->log->info("Result=\n".$ret);

return $ret;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Field/FieldService.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function getCustomFieldOption($id)
{
$ret = $this->exec('/customFieldOption/'.$id);

$this->log->addDebug("get custom Field Option=\n".$ret);
$this->log->debug("get custom Field Option=\n".$ret);

return $ret;
}
Expand All @@ -80,7 +80,7 @@ public function create(Field $field)
{
$data = json_encode($field);

$this->log->addInfo("Create Field=\n".$data);
$this->log->info("Create Field=\n".$data);

$ret = $this->exec($this->uri, $data, 'POST');

Expand Down
10 changes: 5 additions & 5 deletions src/Group/GroupService.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function get($paramArray)

$ret = $this->exec($this->uri.$queryParam, null);

$this->log->addInfo("Result=\n".$ret);
$this->log->info("Result=\n".$ret);

return $this->json_mapper->map(
json_decode($ret), new Group()
Expand All @@ -49,7 +49,7 @@ public function getMembers($paramArray)

$ret = $this->exec($this->uri.'/member'.$queryParam, null);

$this->log->addInfo("Result=\n".$ret);
$this->log->info("Result=\n".$ret);

$userData = json_decode($ret);

Expand All @@ -74,7 +74,7 @@ public function createGroup($group)

$ret = $this->exec($this->uri, $data);

$this->log->addInfo("Result=\n".$ret);
$this->log->info("Result=\n".$ret);

$group = $this->json_mapper->map(
json_decode($ret), new Group()
Expand All @@ -100,7 +100,7 @@ public function addUserToGroup($groupName, $userName)

$ret = $this->exec($this->uri.'/user?groupname='.urlencode($groupName), $data);

$this->log->addInfo("Result=\n".$ret);
$this->log->info("Result=\n".$ret);

$group = $this->json_mapper->map(
json_decode($ret), new Group()
Expand All @@ -125,7 +125,7 @@ public function removeUserFromGroup($groupName, $userName)

$ret = $this->exec($this->uri.'/user?'.$param, [], 'DELETE');

$this->log->addInfo("Result=\n".$ret);
$this->log->info("Result=\n".$ret);

return $ret;
}
Expand Down
Loading

0 comments on commit 45987fd

Please sign in to comment.