@@ -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; |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | $obj = new stdClass(); |
| 56 | 56 | |
| 57 | 57 | $obj->segmentId = $this->segmentId; |
| 58 | - $obj->date = $obj->date ? $this->date->format('c'): null; |
|
| 58 | + $obj->date = $obj->date ? $this->date->format('c') : null; |
|
| 59 | 59 | $obj->total = $this->total; |
| 60 | 60 | |
| 61 | 61 | return $obj; |
@@ -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, |
@@ -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, |