|
@@ -149,7 +149,7 @@ discard block |
|
|
block discarded – undo |
|
149
|
149
|
$category = '', |
|
150
|
150
|
$editor = '' |
|
151
|
151
|
) { |
|
152
|
|
- if (! in_array($typeId, [self::TYPE_PHOTO, self::TYPE_TEXT, self::TYPE_VIDEO], true)) { |
|
|
152
|
+ if (!in_array($typeId, [self::TYPE_PHOTO, self::TYPE_TEXT, self::TYPE_VIDEO], true)) { |
|
153
|
153
|
throw new \InvalidArgumentException("Invalid typeId : ${typeId}, allowed typeId are " . implode(', ', $allowedType)); |
|
154
|
154
|
} |
|
155
|
155
|
|
|
@@ -195,7 +195,7 @@ discard block |
|
|
block discarded – undo |
|
195
|
195
|
self::CATEGORY_LAIN_LAIN_STAGING |
|
196
|
196
|
]; |
|
197
|
197
|
|
|
198
|
|
- if (! in_array($categoryId, $allowedCategory, true)) { |
|
|
198
|
+ if (!in_array($categoryId, $allowedCategory, true)) { |
|
199
|
199
|
throw new \InvalidArgumentException("Invalid categoryId : ${categoryId}, allowed category are " . implode(', ', $allowedCategory)); |
|
200
|
200
|
} |
|
201
|
201
|
|
Please login to merge, or discard this patch.