|
@@ -171,7 +171,7 @@ discard block |
|
|
block discarded – undo |
|
171
|
171
|
$headlineCategory = false, |
|
172
|
172
|
$aiType = 0 |
|
173
|
173
|
) { |
|
174
|
|
- if (! in_array($typeId, [self::TYPE_PHOTO, self::TYPE_TEXT, self::TYPE_VIDEO], true)) { |
|
|
174
|
+ if (!in_array($typeId, [self::TYPE_PHOTO, self::TYPE_TEXT, self::TYPE_VIDEO], true)) { |
|
175
|
175
|
throw new \InvalidArgumentException("Invalid typeId : ${typeId}, allowed typeId are " . implode(', ', $allowedType)); |
|
176
|
176
|
} |
|
177
|
177
|
|
|
@@ -220,7 +220,7 @@ discard block |
|
|
block discarded – undo |
|
220
|
220
|
self::CATEGORY_TV |
|
221
|
221
|
]; |
|
222
|
222
|
|
|
223
|
|
- if (! in_array($categoryId, $allowedCategory, true)) { |
|
|
223
|
+ if (!in_array($categoryId, $allowedCategory, true)) { |
|
224
|
224
|
throw new \InvalidArgumentException("Invalid categoryId : ${categoryId}, allowed category are " . implode(', ', $allowedCategory)); |
|
225
|
225
|
} |
|
226
|
226
|
|
Please login to merge, or discard this patch.