@@ -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( |
@@ -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 | |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use One\Model\Livereport; |
| 6 | 6 | |
| 7 | -class FactoryLivereport |
|
| 7 | +class FactoryLivereport |
|
| 8 | 8 | { |
| 9 | 9 | public static function create(array $data): \One\Model\Livereport |
| 10 | 10 | { |
@@ -25,7 +25,6 @@ |
||
| 25 | 25 | * @param bool $isHeadline |
| 26 | 26 | * @param bool $published |
| 27 | 27 | * @param string $livereportChild |
| 28 | - |
|
| 29 | 28 | */ |
| 30 | 29 | |
| 31 | 30 | public function __construct( |
@@ -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([ |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | $headlineCategory = false, |
| 176 | 176 | $aiType = 0 |
| 177 | 177 | ) { |
| 178 | - if (! in_array($typeId, [self::TYPE_PHOTO, self::TYPE_TEXT, self::TYPE_VIDEO], true)) { |
|
| 178 | + if (!in_array($typeId, [self::TYPE_PHOTO, self::TYPE_TEXT, self::TYPE_VIDEO], true)) { |
|
| 179 | 179 | throw new \InvalidArgumentException("Invalid typeId : ${typeId}, allowed typeId are " . implode(', ', $allowedType)); |
| 180 | 180 | } |
| 181 | 181 | |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | self::CATEGORY_FEEDS_STAGING |
| 227 | 227 | ]; |
| 228 | 228 | |
| 229 | - if (! in_array($categoryId, $allowedCategory, true)) { |
|
| 229 | + if (!in_array($categoryId, $allowedCategory, true)) { |
|
| 230 | 230 | throw new \InvalidArgumentException("Invalid categoryId : ${categoryId}, allowed category are " . implode(', ', $allowedCategory)); |
| 231 | 231 | } |
| 232 | 232 | |