Skip to content

Commit 9e7fa65

Browse files
committed
dropped api version check code.
1 parent f8583f5 commit 9e7fa65

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/Status/StatusService.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,14 @@ class StatusService extends \JiraRestApi\JiraClient
1919
*/
2020
public function getAll()
2121
{
22-
if ($this->isRestApiV3()) {
23-
throw new JiraException('V3 is currently not supported');
24-
}
25-
26-
else {
27-
$statusObject = new Status();
28-
}
29-
3022
$ret = $this->exec($this->uri.'/', null);
3123
$this->log->info("Result=\n".$ret);
3224

3325

3426
return $this->json_mapper->mapArray(
3527
json_decode($ret, false),
3628
new \ArrayObject(),
37-
'\JiraRestApi\Status\status'
29+
\JiraRestApi\Status\Status::class
3830
);
3931
}
4032
}

0 commit comments

Comments
 (0)