@@ -29,11 +29,11 @@ |
||
| 29 | 29 | 'order' => $order, |
| 30 | 30 | ]; |
| 31 | 31 | |
| 32 | - if (! empty($cover)) { |
|
| 32 | + if (!empty($cover)) { |
|
| 33 | 33 | $properties['cover'] = $this->filterUriInstance($cover); |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | - if (! empty($source)) { |
|
| 36 | + if (!empty($source)) { |
|
| 37 | 37 | $properties['source'] = $this->filterUriInstance($source); |
| 38 | 38 | } |
| 39 | 39 | |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | $path = self::validateString(parse_url('http://www.foobar.com/' . $path, PHP_URL_PATH)); |
| 58 | 58 | $query = self::validateString((string) self::checkData($_SERVER, 'QUERY_STRING', '')); |
| 59 | 59 | $fragment = ''; |
| 60 | - if (empty($user) && empty($pass) && ! empty($_SERVER['HTTP_AUTHORIZATION'])) { |
|
| 60 | + if (empty($user) && empty($pass) && !empty($_SERVER['HTTP_AUTHORIZATION'])) { |
|
| 61 | 61 | [$user] = explode( |
| 62 | 62 | ':', |
| 63 | 63 | base64_decode( |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | $editor = '' |
| 141 | 141 | ) { |
| 142 | 142 | if (! in_array($typeId, [self::TYPE_PHOTO, self::TYPE_TEXT, self::TYPE_VIDEO], true)) { |
| 143 | - throw new \InvalidArgumentException("Invalid typeId : ${typeId}, allowed typeId are " . implode(', ', $allowedType)); |
|
| 143 | + throw new \InvalidArgumentException("Invalid typeId : ${typeid}, allowed typeId are " . implode(', ', $allowedType)); |
|
| 144 | 144 | } |
| 145 | 145 | |
| 146 | 146 | $allowedCategory = [ |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | ]; |
| 182 | 182 | |
| 183 | 183 | if (! in_array($categoryId, $allowedCategory, true)) { |
| 184 | - throw new \InvalidArgumentException("Invalid categoryId : ${categoryId}, allowed category are " . implode(', ', $allowedCategory)); |
|
| 184 | + throw new \InvalidArgumentException("Invalid categoryId : ${categoryid}, allowed category are " . implode(', ', $allowedCategory)); |
|
| 185 | 185 | } |
| 186 | 186 | |
| 187 | 187 | $this->collection = new Collection([ |
@@ -149,7 +149,7 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -24,7 +24,6 @@ |
||
| 24 | 24 | * @param \DateTimeInterface|string $publishedAt |
| 25 | 25 | * @param \DateTimeInterface|string $endAt |
| 26 | 26 | * @param bool $publishStatus |
| 27 | - |
|
| 28 | 27 | */ |
| 29 | 28 | |
| 30 | 29 | public function __construct( |
@@ -30,15 +30,15 @@ |
||
| 30 | 30 | 'duration' => $duration |
| 31 | 31 | ]; |
| 32 | 32 | |
| 33 | - if (! empty($source)) { |
|
| 33 | + if (!empty($source)) { |
|
| 34 | 34 | $properties['source'] = $this->filterUriInstance($source); |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | - if (! empty($cover)) { |
|
| 37 | + if (!empty($cover)) { |
|
| 38 | 38 | $properties['cover'] = $this->filterUriInstance($cover); |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | - if (! empty($ratio)) { |
|
| 41 | + if (!empty($ratio)) { |
|
| 42 | 42 | $properties['ratio'] = $this->filterStringInstance($ratio); |
| 43 | 43 | } |
| 44 | 44 | |