Skip to content

Commit af43a99

Browse files
authored
Merge pull request #11 from Littlesqx/analysis-qvPvQO
Apply fixes from StyleCI
2 parents db5edf0 + a4f1696 commit af43a99

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

src/Application.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public function getBook(string $isbn): ? Book
8080
throw new InvalidArgumentException('Invalid isbn code(isbn10 or isbn13): '.$isbn);
8181
}
8282
$queryParams = ['isbn' => $isbn];
83+
8384
try {
8485
$response = $this->getHttpClient()->get($this->requestUrl.array_to_path($queryParams));
8586
if (200 === $response->getStatusCode()) {
@@ -89,6 +90,7 @@ public function getBook(string $isbn): ? Book
8990
if ($e instanceof InvalidResponseException) {
9091
throw $e;
9192
}
93+
9294
throw new HttpException($e->getMessage(), $e->getCode(), $e);
9395
}
9496
}

src/BookFactory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class BookFactory implements Factory
2323
* @param $body
2424
*
2525
* @return Book
26+
*
2627
* @throws InvalidResponseException
2728
*/
2829
public static function make($body): Book

src/Entities/Book.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ public function getAltUrl(): string
336336
public function setAltUrl(string $altUrl)
337337
{
338338
$this->altUrl = $altUrl;
339+
339340
return $this;
340341
}
341342

src/Exceptions/InvalidResponseException.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
namespace Littlesqx\Book\Exceptions;
1313

14-
1514
class InvalidResponseException extends Exception
1615
{
17-
18-
}
16+
}

0 commit comments

Comments
 (0)