@@ -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; |
@@ -138,7 +138,6 @@ |
||
| 138 | 138 | * @param int $dataProviderId |
| 139 | 139 | * @param int $limit |
| 140 | 140 | * @param int $offset |
| 141 | - |
|
| 142 | 141 | * @throws ApiException if the API call fails |
| 143 | 142 | * |
| 144 | 143 | * @return Segment[] |
@@ -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, |