Skip to content

Commit 4312039

Browse files
committed
Fix typo
1 parent 3e15c73 commit 4312039

21 files changed

+49
-28
lines changed

src/Redmine/Api/AbstractApi.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ final protected function getHttpClient(): HttpClient
7070
return $this->httpClient;
7171
}
7272

73-
final protected function getLastResonse(): Response
73+
final protected function getLastResponse(): Response
7474
{
7575
return $this->lastResponse !== null ? $this->lastResponse : $this->createResponse(0, '', '');
7676
}
@@ -234,7 +234,7 @@ protected function retrieveAll($endpoint, array $params = [])
234234
try {
235235
$data = $this->retrieveData(strval($endpoint), $params);
236236
} catch (Exception $e) {
237-
if ($this->getLastResonse()->getBody() === '') {
237+
if ($this->getLastResponse()->getBody() === '') {
238238
return false;
239239
}
240240

src/Redmine/Api/CustomField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function all(array $params = [])
5555
try {
5656
$this->customFields = $this->list($params);
5757
} catch (Exception $e) {
58-
if ($this->getLastResonse()->getBody() === '') {
58+
if ($this->getLastResponse()->getBody() === '') {
5959
return false;
6060
}
6161

src/Redmine/Api/Group.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function all(array $params = [])
5858
try {
5959
$this->groups = $this->list($params);
6060
} catch (Exception $e) {
61-
if ($this->getLastResonse()->getBody() === '') {
61+
if ($this->getLastResponse()->getBody() === '') {
6262
return false;
6363
}
6464

src/Redmine/Api/Issue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function all(array $params = [])
110110
try {
111111
return $this->list($params);
112112
} catch (Exception $e) {
113-
if ($this->getLastResonse()->getBody() === '') {
113+
if ($this->getLastResponse()->getBody() === '') {
114114
return false;
115115
}
116116

src/Redmine/Api/IssueCategory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function all($project, array $params = [])
6969
try {
7070
return $this->listByProject(strval($project), $params);
7171
} catch (Exception $e) {
72-
if ($this->getLastResonse()->getBody() === '') {
72+
if ($this->getLastResponse()->getBody() === '') {
7373
return false;
7474
}
7575

src/Redmine/Api/IssuePriority.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function all(array $params = [])
5555
try {
5656
$this->issuePriorities = $this->list($params);
5757
} catch (Exception $e) {
58-
if ($this->getLastResonse()->getBody() === '') {
58+
if ($this->getLastResponse()->getBody() === '') {
5959
return false;
6060
}
6161

src/Redmine/Api/IssueRelation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function all($issueId, array $params = [])
5858
try {
5959
$this->relations = $this->listByIssueId($issueId, $params);
6060
} catch (Exception $e) {
61-
if ($this->getLastResonse()->getBody() === '') {
61+
if ($this->getLastResponse()->getBody() === '') {
6262
return false;
6363
}
6464

src/Redmine/Api/IssueStatus.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function all(array $params = [])
5555
try {
5656
$this->issueStatuses = $this->list($params);
5757
} catch (Exception $e) {
58-
if ($this->getLastResonse()->getBody() === '') {
58+
if ($this->getLastResponse()->getBody() === '') {
5959
return false;
6060
}
6161

src/Redmine/Api/Membership.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function all($project, array $params = [])
6868
try {
6969
$this->memberships = $this->listByProject(strval($project), $params);
7070
} catch (Exception $e) {
71-
if ($this->getLastResonse()->getBody() === '') {
71+
if ($this->getLastResponse()->getBody() === '') {
7272
return false;
7373
}
7474

src/Redmine/Api/News.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function all($project = null, array $params = [])
8888
$this->news = $this->listByProject(strval($project), $params);
8989
}
9090
} catch (Exception $e) {
91-
if ($this->getLastResonse()->getBody() === '') {
91+
if ($this->getLastResponse()->getBody() === '') {
9292
return false;
9393
}
9494

0 commit comments

Comments
 (0)