@@ -30,9 +30,9 @@ discard block |
||
30 | 30 | string $email, |
31 | 31 | string $listHash, |
32 | 32 | int $subscriberStatus = 0, |
33 | - array $customFieldsWithValues = [] |
|
33 | + array $customFieldsWithValues = [ ] |
|
34 | 34 | ) { |
35 | - $getParameters = []; |
|
35 | + $getParameters = [ ]; |
|
36 | 36 | $postParameters = [ |
37 | 37 | 'email' => $email, |
38 | 38 | 'list' => $listHash, |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | 'custom_fields' => $customFieldsWithValues ?: null |
41 | 41 | ]; |
42 | 42 | |
43 | - $postParameters = array_filter($postParameters, function ($value) { |
|
43 | + $postParameters = array_filter($postParameters, function($value) { |
|
44 | 44 | return $value !== null; |
45 | 45 | }); |
46 | 46 | $this->processRequest($getParameters, $postParameters); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | $listHash, |
31 | 31 | |
32 | 32 | ]; |
33 | - $postParameters = []; |
|
33 | + $postParameters = [ ]; |
|
34 | 34 | |
35 | 35 | $response = $this->processRequest($getParameters, $postParameters); |
36 | 36 | return $response->data; |
@@ -32,9 +32,9 @@ discard block |
||
32 | 32 | string $listHash, |
33 | 33 | int $subscriberStatus = 0, |
34 | 34 | bool $sendConfirmationToSubscriber = false, |
35 | - array $customFieldsWithValues = [] |
|
35 | + array $customFieldsWithValues = [ ] |
|
36 | 36 | ) { |
37 | - $getParameters = []; |
|
37 | + $getParameters = [ ]; |
|
38 | 38 | $postParameters = [ |
39 | 39 | 'email' => $email, |
40 | 40 | 'list' => $listHash, |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | 'custom_fields' => $customFieldsWithValues ?: null |
44 | 44 | ]; |
45 | 45 | |
46 | - $postParameters = array_filter($postParameters, function ($value) { |
|
46 | + $postParameters = array_filter($postParameters, function($value) { |
|
47 | 47 | return $value !== null; |
48 | 48 | }); |
49 | 49 | $this->processRequest($getParameters, $postParameters); |
@@ -28,7 +28,7 @@ |
||
28 | 28 | string $email, |
29 | 29 | string $listHash |
30 | 30 | ) { |
31 | - $getParameters = []; |
|
31 | + $getParameters = [ ]; |
|
32 | 32 | $postParameters = [ |
33 | 33 | 'email' => $email, |
34 | 34 | 'list' => $listHash |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | string $groupHash = '', |
45 | 45 | string $resignLink = '' |
46 | 46 | ) { |
47 | - $getParameters = []; |
|
47 | + $getParameters = [ ]; |
|
48 | 48 | $postParameters = [ |
49 | 49 | 'name' => $name, |
50 | 50 | 'url' => $urlToDownloadContent ?: null, |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | 'resignlink' => $resignLink ?: null |
59 | 59 | ]; |
60 | 60 | |
61 | - $postParameters = array_filter($postParameters, function ($value) { |
|
61 | + $postParameters = array_filter($postParameters, function($value) { |
|
62 | 62 | return $value !== null; |
63 | 63 | }); |
64 | 64 | $response = $this->processRequest($getParameters, $postParameters); |
@@ -25,16 +25,16 @@ |
||
25 | 25 | * @param array $customFieldsWithValues |
26 | 26 | * @return null |
27 | 27 | */ |
28 | - public function testCampaign(string $campaignHash, array $emailAddresses, array $customFieldsWithValues = []) |
|
28 | + public function testCampaign(string $campaignHash, array $emailAddresses, array $customFieldsWithValues = [ ]) |
|
29 | 29 | { |
30 | - $getParameters = []; |
|
30 | + $getParameters = [ ]; |
|
31 | 31 | $postParameters = [ |
32 | 32 | 'hash' => $campaignHash, |
33 | 33 | 'emails' => $emailAddresses, |
34 | 34 | 'custom_fields' => $customFieldsWithValues ?: null |
35 | 35 | ]; |
36 | 36 | |
37 | - $postParameters = array_filter($postParameters, function ($value) { |
|
37 | + $postParameters = array_filter($postParameters, function($value) { |
|
38 | 38 | return $value !== null; |
39 | 39 | }); |
40 | 40 | $this->processRequest($getParameters, $postParameters); |
@@ -26,13 +26,13 @@ |
||
26 | 26 | */ |
27 | 27 | public function sendCampaign(string $campaignHash, string $timeToSend = '') |
28 | 28 | { |
29 | - $getParameters = []; |
|
29 | + $getParameters = [ ]; |
|
30 | 30 | $postParameters = [ |
31 | 31 | 'hash' => $campaignHash, |
32 | 32 | 'time' => $timeToSend ?: null |
33 | 33 | ]; |
34 | 34 | |
35 | - $postParameters = array_filter($postParameters, function ($value) { |
|
35 | + $postParameters = array_filter($postParameters, function($value) { |
|
36 | 36 | return $value !== null; |
37 | 37 | }); |
38 | 38 | $this->processRequest($getParameters, $postParameters); |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | string $groupHash = '', |
47 | 47 | string $resignLink = '' |
48 | 48 | ) { |
49 | - $getParameters = []; |
|
49 | + $getParameters = [ ]; |
|
50 | 50 | $postParameters = [ |
51 | 51 | 'id_hash' => $campaignHash, |
52 | 52 | 'name' => $name ?: null, |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | 'resignlink' => $resignLink ?: null |
62 | 62 | ]; |
63 | 63 | |
64 | - $postParameters = array_filter($postParameters, function ($value) { |
|
64 | + $postParameters = array_filter($postParameters, function($value) { |
|
65 | 65 | return $value !== null; |
66 | 66 | }); |
67 | 67 | $this->processRequest($getParameters, $postParameters); |
@@ -26,7 +26,7 @@ |
||
26 | 26 | public function deleteCampaign( |
27 | 27 | string $campaignHash |
28 | 28 | ) { |
29 | - $getParameters = []; |
|
29 | + $getParameters = [ ]; |
|
30 | 30 | $postParameters = [ |
31 | 31 | 'hash' => $campaignHash |
32 | 32 | ]; |