@@ -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( |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | ]; |
| 220 | 220 | |
| 221 | 221 | return $this->get( |
| 222 | - self::PUBLISHER_ENDPOINT.'/'. $this->clientId .'/?'. http_build_query($params) |
|
| 222 | + self::PUBLISHER_ENDPOINT . '/' . $this->clientId . '/?' . http_build_query($params) |
|
| 223 | 223 | ); |
| 224 | 224 | } |
| 225 | 225 | |
@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | { |
| 231 | 231 | $articleOnRest = $this->getArticle($idArticle); |
| 232 | 232 | |
| 233 | - if (! empty($articleOnRest)) { |
|
| 233 | + if (!empty($articleOnRest)) { |
|
| 234 | 234 | $articleOnRest = json_decode($articleOnRest, true); |
| 235 | 235 | |
| 236 | 236 | if (isset($articleOnRest['data'])) { |
@@ -486,7 +486,7 @@ discard block |
||
| 486 | 486 | throw new \Exception('Access token request return empty response'); |
| 487 | 487 | } |
| 488 | 488 | |
| 489 | - if (! empty($this->tokenSaver)) { |
|
| 489 | + if (!empty($this->tokenSaver)) { |
|
| 490 | 490 | $this->getTokenSaver()( |
| 491 | 491 | $token['access_token'] |
| 492 | 492 | ); |
@@ -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 | |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | $timeless = false, |
| 170 | 170 | $headlineCategory = false |
| 171 | 171 | ) { |
| 172 | - if (! in_array($typeId, [self::TYPE_PHOTO, self::TYPE_TEXT, self::TYPE_VIDEO], true)) { |
|
| 172 | + if (!in_array($typeId, [self::TYPE_PHOTO, self::TYPE_TEXT, self::TYPE_VIDEO], true)) { |
|
| 173 | 173 | throw new \InvalidArgumentException("Invalid typeId : ${typeId}, allowed typeId are " . implode(', ', $allowedType)); |
| 174 | 174 | } |
| 175 | 175 | |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | self::CATEGORY_TV |
| 219 | 219 | ]; |
| 220 | 220 | |
| 221 | - if (! in_array($categoryId, $allowedCategory, true)) { |
|
| 221 | + if (!in_array($categoryId, $allowedCategory, true)) { |
|
| 222 | 222 | throw new \InvalidArgumentException("Invalid categoryId : ${categoryId}, allowed category are " . implode(', ', $allowedCategory)); |
| 223 | 223 | } |
| 224 | 224 | |