Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
LKaemmerling authored and StyleCIBot committed Oct 12, 2021
1 parent 21a4ae3 commit 79fac89
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Models/Certificates/Certificates.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ public function getById(int $id)
if (! HetznerAPIClient::hasError($response)) {
return Certificate::parse(json_decode((string) $response->getBody())->{$this->_getKeys()['one']});
}

return null;
}

Expand Down
5 changes: 5 additions & 0 deletions src/Models/Networks/Network.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ public function addSubnet(Subnet $subnet)
'action' => Action::parse(json_decode((string) $response->getBody())->action),
], $response->getHeaders());
}

return null;
}

Expand All @@ -114,6 +115,7 @@ public function deleteSubnet(Subnet $subnet)
'action' => Action::parse(json_decode((string) $response->getBody())->action),
], $response->getHeaders());
}

return null;
}

Expand All @@ -133,6 +135,7 @@ public function addRoute(Route $route)
'action' => Action::parse(json_decode((string) $response->getBody())->action),
], $response->getHeaders());
}

return null;
}

Expand All @@ -152,6 +155,7 @@ public function deleteRoute(Route $route)
'action' => Action::parse(json_decode((string) $response->getBody())->action),
], $response->getHeaders());
}

return null;
}

Expand All @@ -165,6 +169,7 @@ public function changeIPRange(string $ipRange)
'action' => Action::parse(json_decode((string) $response->getBody())->action),
], $response->getHeaders());
}

return null;
}

Expand Down
1 change: 1 addition & 0 deletions src/Models/SSHKeys/SSHKeys.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ public function getById(int $id)
if (! HetznerAPIClient::hasError($response)) {
return SSHKey::parse(json_decode((string) $response->getBody())->ssh_key);
}

return null;
}

Expand Down

0 comments on commit 79fac89

Please sign in to comment.