Completed
Push — master ( 48e6ef...c5bbe8 )
by Giacomo "Mr. Wolf"
08:19 queued 06:33
created
examples/audiences.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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";
Please login to merge, or discard this patch.
src/Audiens/Entity/SegmentHydrator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Audiens/Exception/EntityNotFoundException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Audiens/Exception/ApiException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Audiens/Exception/RedisException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Audiens/Exception/EntityInvalidException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Audiens/Cache/RedisCache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Audiens/Exception/OauthException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Audiens/Entity/Segment.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -330,19 +330,19 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.