@@ -102,6 +102,9 @@ discard block |
||
| 102 | 102 | return [$publishedDate, $dateFormat]; |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | + /** |
|
| 106 | + * @param string $key |
|
| 107 | + */ |
|
| 105 | 108 | private function getOrDefault($array, $key, $default) |
| 106 | 109 | { |
| 107 | 110 | if (array_key_exists($key, $array)) { |
@@ -116,7 +119,7 @@ discard block |
||
| 116 | 119 | * |
| 117 | 120 | * @param string $isbn |
| 118 | 121 | * |
| 119 | - * @return bool |
|
| 122 | + * @return integer |
|
| 120 | 123 | */ |
| 121 | 124 | private function isValidISBN($isbn) |
| 122 | 125 | { |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | * @param string $language |
| 35 | 35 | * @param array $categories |
| 36 | 36 | */ |
| 37 | - public function __construct($title, $subtitle, array $authors, $printType, $pageCount, $publisher, DateTime $publishedDate=null, $publishedDateFormat, $averageRating, $thumbnail, $language, array $categories) |
|
| 37 | + public function __construct($title, $subtitle, array $authors, $printType, $pageCount, $publisher, DateTime $publishedDate = null, $publishedDateFormat, $averageRating, $thumbnail, $language, array $categories) |
|
| 38 | 38 | { |
| 39 | 39 | $this->title = $title; |
| 40 | 40 | $this->subtitle = $subtitle; |