Skip to content

Commit 4ee9fd4

Browse files
PatrickePatategithub-actions[bot]
authored andcommitted
Fix styling
1 parent 2b6e04c commit 4ee9fd4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Api/Clients/TiteLive/TiteLiveClient.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ public function doSearch(bool $groupEditions = false): Collection
7070

7171
public function doFind(): ?Book
7272
{
73-
if (isset($this->params[$this->getLabelForParam(static::GENCOD)]))
74-
{
73+
if (isset($this->params[$this->getLabelForParam(static::GENCOD)])) {
7574
$this->params['detail'] = 1;
7675
$gencod = $this->getParam(static::GENCOD);
7776
// For this endpoint, The gencode is passed to TiteLive in the endpoint,
@@ -144,7 +143,7 @@ private function requestApi(string $endpoint, $retries = 0): array
144143
if ($e instanceof RequestException) {
145144
Log::error($e->response->getBody());
146145
$error = $e?->response->json();
147-
if ($error['type'] === "urn:epagine:GEN-404") {
146+
if ($error['type'] === 'urn:epagine:GEN-404') {
148147
throw new TiteLiveBookNotFoundException($error['ean'] ?? '');
149148
}
150149
throw new TiteLiveBookNotFoundException('Erreur : '.($error['title'] ?? '').' ('.($error['detail'] ?? ')'));

0 commit comments

Comments
 (0)