@@ -154,7 +154,7 @@ |
||
| 154 | 154 | public function getArticle(string $idArticle): string |
| 155 | 155 | { |
| 156 | 156 | return $this->get( |
| 157 | - self::ARTICLE_CHECK_ENDPOINT . "/${idArticle}" |
|
| 157 | + self::ARTICLE_CHECK_ENDPOINT . "/${idarticle}" |
|
| 158 | 158 | ); |
| 159 | 159 | } |
| 160 | 160 | |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | $timeless = false |
| 159 | 159 | ) { |
| 160 | 160 | if (! in_array($typeId, [self::TYPE_PHOTO, self::TYPE_TEXT, self::TYPE_VIDEO], true)) { |
| 161 | - throw new \InvalidArgumentException("Invalid typeId : ${typeId}, allowed typeId are " . implode(', ', $allowedType)); |
|
| 161 | + throw new \InvalidArgumentException("Invalid typeId : ${typeid}, allowed typeId are " . implode(', ', $allowedType)); |
|
| 162 | 162 | } |
| 163 | 163 | |
| 164 | 164 | $allowedCategory = [ |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | ]; |
| 207 | 207 | |
| 208 | 208 | if (! in_array($categoryId, $allowedCategory, true)) { |
| 209 | - throw new \InvalidArgumentException("Invalid categoryId : ${categoryId}, allowed category are " . implode(', ', $allowedCategory)); |
|
| 209 | + throw new \InvalidArgumentException("Invalid categoryId : ${categoryid}, allowed category are " . implode(', ', $allowedCategory)); |
|
| 210 | 210 | } |
| 211 | 211 | |
| 212 | 212 | $this->collection = new Collection([ |