@@ -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 | |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | $aiType = 0 |
| 173 | 173 | ) { |
| 174 | 174 | if (! in_array($typeId, [self::TYPE_PHOTO, self::TYPE_TEXT, self::TYPE_VIDEO], true)) { |
| 175 | - throw new \InvalidArgumentException("Invalid typeId : ${typeId}, allowed typeId are " . implode(', ', $allowedType)); |
|
| 175 | + throw new \InvalidArgumentException("Invalid typeId : ${typeid}, allowed typeId are " . implode(', ', $allowedType)); |
|
| 176 | 176 | } |
| 177 | 177 | |
| 178 | 178 | $allowedCategory = [ |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | ]; |
| 222 | 222 | |
| 223 | 223 | if (! in_array($categoryId, $allowedCategory, true)) { |
| 224 | - throw new \InvalidArgumentException("Invalid categoryId : ${categoryId}, allowed category are " . implode(', ', $allowedCategory)); |
|
| 224 | + throw new \InvalidArgumentException("Invalid categoryId : ${categoryid}, allowed category are " . implode(', ', $allowedCategory)); |
|
| 225 | 225 | } |
| 226 | 226 | |
| 227 | 227 | $this->collection = new Collection([ |