|
@@ -159,7 +159,7 @@ discard block |
|
|
block discarded – undo |
|
159
|
159
|
$recommendation = false, |
|
160
|
160
|
$timeless = false |
|
161
|
161
|
) { |
|
162
|
|
- if (! in_array($typeId, [self::TYPE_PHOTO, self::TYPE_TEXT, self::TYPE_VIDEO], true)) { |
|
|
162
|
+ if (!in_array($typeId, [self::TYPE_PHOTO, self::TYPE_TEXT, self::TYPE_VIDEO], true)) { |
|
163
|
163
|
throw new \InvalidArgumentException("Invalid typeId : ${typeId}, allowed typeId are " . implode(', ', $allowedType)); |
|
164
|
164
|
} |
|
165
|
165
|
|
|
@@ -208,7 +208,7 @@ discard block |
|
|
block discarded – undo |
|
208
|
208
|
self::CATEGORY_TV |
|
209
|
209
|
]; |
|
210
|
210
|
|
|
211
|
|
- if (! in_array($categoryId, $allowedCategory, true)) { |
|
|
211
|
+ if (!in_array($categoryId, $allowedCategory, true)) { |
|
212
|
212
|
throw new \InvalidArgumentException("Invalid categoryId : ${categoryId}, allowed category are " . implode(', ', $allowedCategory)); |
|
213
|
213
|
} |
|
214
|
214
|
|
Please login to merge, or discard this patch.