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/Manager/SegmentManager.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -138,7 +138,6 @@
 block discarded – undo
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[]
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.