| @@ -23,7 +23,7 @@ | ||
| 23 | 23 | //audiences by segment id | 
| 24 | 24 | /** @var \Audiens\AdForm\Entity\Audience[] $audiences */ | 
| 25 | 25 | $audiences = $adform->audience()->getItem(12345); | 
| 26 | -foreach($audiences as $audience) | |
| 26 | +foreach ($audiences as $audience) | |
| 27 | 27 |  { | 
| 28 | 28 | echo $audience->getSegmentId()."\n"; | 
| 29 | 29 |      echo $audience->getDate()->format('yyyy-mm-dd')."\n"; | 
| @@ -22,7 +22,7 @@ | ||
| 22 | 22 |      { | 
| 23 | 23 | $segment = new Segment(); | 
| 24 | 24 | |
| 25 | - $segment->id = (int) $stdClass->id; | |
| 25 | + $segment->id = (int)$stdClass->id; | |
| 26 | 26 | $segment->dataProviderId = (int)$stdClass->dataProviderId; | 
| 27 | 27 | $segment->status = new SegmentStatus($stdClass->status); | 
| 28 | 28 | $segment->categoryId = (int)$stdClass->categoryId; | 
| @@ -11,7 +11,7 @@ | ||
| 11 | 11 | |
| 12 | 12 | public static function translate($entityId, $message, $code): self | 
| 13 | 13 |      { | 
| 14 | - return new self ( | |
| 14 | + return new self( | |
| 15 | 15 | sprintf(self::MESSAGE, $entityId, $message), | 
| 16 | 16 | $code, | 
| 17 | 17 | null, | 
| @@ -11,7 +11,7 @@ | ||
| 11 | 11 | |
| 12 | 12 | public static function translate(string $message, int $code): self | 
| 13 | 13 |      { | 
| 14 | - return new self ( | |
| 14 | + return new self( | |
| 15 | 15 | sprintf(self::MESSAGE, $message), | 
| 16 | 16 | $code, | 
| 17 | 17 | null, | 
| @@ -11,7 +11,7 @@ | ||
| 11 | 11 | |
| 12 | 12 | public static function connect($message): self | 
| 13 | 13 |      { | 
| 14 | - return new self ( | |
| 14 | + return new self( | |
| 15 | 15 | sprintf(self::MESSAGE, $message), | 
| 16 | 16 | 0, | 
| 17 | 17 | null, | 
| @@ -30,7 +30,7 @@ | ||
| 30 | 30 | |
| 31 | 31 | public static function invalid(string $message, int $code, array $errors): self | 
| 32 | 32 |      { | 
| 33 | - return new self ( | |
| 33 | + return new self( | |
| 34 | 34 | sprintf(self::MESSAGE, $message), | 
| 35 | 35 | $code, | 
| 36 | 36 | $errors, | 
| @@ -38,7 +38,7 @@ discard block | ||
| 38 | 38 |      { | 
| 39 | 39 | $hash = $this->getHash($providerPrefix, $uri, $query); | 
| 40 | 40 | |
| 41 | - return (bool) $this->client->set($hash, $data, 'ex', $this->ttl); | |
| 41 | + return (bool)$this->client->set($hash, $data, 'ex', $this->ttl); | |
| 42 | 42 | } | 
| 43 | 43 | |
| 44 | 44 | public function get(string $providerPrefix, string $uri, array $query) | 
| @@ -58,7 +58,7 @@ discard block | ||
| 58 | 58 |      { | 
| 59 | 59 | $hash = $this->getHash($providerPrefix, $uri, $query); | 
| 60 | 60 | |
| 61 | - return (bool) $this->client->del([$hash]); | |
| 61 | + return (bool)$this->client->del([$hash]); | |
| 62 | 62 | } | 
| 63 | 63 | |
| 64 | 64 | public function invalidate(string $providerPrefix): bool | 
| @@ -11,7 +11,7 @@ | ||
| 11 | 11 | |
| 12 | 12 | public static function connect($message): self | 
| 13 | 13 |      { | 
| 14 | - return new self ( | |
| 14 | + return new self( | |
| 15 | 15 | sprintf(self::MESSAGE, $message), | 
| 16 | 16 | 0, | 
| 17 | 17 | null, | 
| @@ -330,19 +330,19 @@ | ||
| 330 | 330 | $json->extractionRule = $this->extractionRule; | 
| 331 | 331 | } | 
| 332 | 332 | |
| 333 | - $json->audience = (bool) $this->audience; | |
| 333 | + $json->audience = (bool)$this->audience; | |
| 334 | 334 | $json->audienceBySources = $this->audienceBySources; | 
| 335 | 335 | $json->audienceByUserIdentityType = $this->audienceByUserIdentityType; | 
| 336 | - $json->isExtended = (bool) $this->isExtended; | |
| 336 | + $json->isExtended = (bool)$this->isExtended; | |
| 337 | 337 | |
| 338 | 338 | // might not be set in JSON | 
| 339 | 339 |          if ($this->extensionThreshold !== null) { | 
| 340 | 340 | $json->extensionThreshold = (bool)$this->extensionThreshold; | 
| 341 | 341 | } | 
| 342 | 342 | |
| 343 | - $json->frequency = (int) $this->frequency; | |
| 344 | - $json->isCrossDevice = (bool) $this->isCrossDevice; | |
| 345 | - $json->hasDataUsagePermissions = (bool) $this->hasDataUsagePermissions; | |
| 343 | + $json->frequency = (int)$this->frequency; | |
| 344 | + $json->isCrossDevice = (bool)$this->isCrossDevice; | |
| 345 | + $json->hasDataUsagePermissions = (bool)$this->hasDataUsagePermissions; | |
| 346 | 346 | |
| 347 | 347 | // might not be set for a new segment | 
| 348 | 348 |          if ($this->createdAt !== null) { |