Passed
Push — master ( 49d752...4c7773 )
by Joe Nilson
03:19
created
extras/vendor/sendgrid/sendgrid/lib/contacts/RecipientForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      */
25 25
     public function __construct($url)
26 26
     {
27
-        $html = '<form action="' . $url . '" method="post">
27
+        $html = '<form action="'.$url.'" method="post">
28 28
     First Name: <input type="text" name="first-name"><br>
29 29
     Last Name: <input type="text" name="last-name"><br>
30 30
     E-mail: <input type="text" name="email"><br>
Please login to merge, or discard this patch.
extras/vendor/sendgrid/sendgrid/lib/SendGrid.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      */
19 19
     public function __construct($apiKey, $options = array())
20 20
     {
21
-        $auth = 'Authorization: Bearer ' . $apiKey;
21
+        $auth = 'Authorization: Bearer '.$apiKey;
22 22
         $host = 'https://api.sendgrid.com';
23 23
         parent::__construct($auth, $host, $options);
24 24
     }
Please login to merge, or discard this patch.
extras/vendor/sendgrid/sendgrid/sendgrid-php.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 use SendGrid\Mail\Mail;
7 7
 
8 8
 // Define path/existence of Composer autoloader
9
-$composerAutoloadFile = __DIR__ . '/vendor/autoload.php';
9
+$composerAutoloadFile = __DIR__.'/vendor/autoload.php';
10 10
 $composerAutoloadFileExists = (is_file($composerAutoloadFile));
11 11
 
12 12
 // Can't locate SendGrid\Mail\Mail class?
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     if (!$composerAutoloadFileExists) {
16 16
         //  Can't load the Composer autoloader in this project folder
17 17
         error_log("Composer autoloader not found. Execute 'composer install' in the project folder first.");
18
-    } else {
18
+    }else {
19 19
         // Load Composer autoloader
20 20
         require_once $composerAutoloadFile;
21 21
 
Please login to merge, or discard this patch.
extras/vendor/sendgrid/sendgrid/examples/accesssettings/accesssettings.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 // Next line will load dependencies to run this example
4 4
 // Please refer to the README how to use in your project
5
-require_once __DIR__ . '/../../sendgrid-php.php';
5
+require_once __DIR__.'/../../sendgrid-php.php';
6 6
 
7 7
 $apiKey = getenv('SENDGRID_API_KEY');
8 8
 $sg = new \SendGrid($apiKey);
@@ -15,11 +15,11 @@  discard block
 block discarded – undo
15 15
 
16 16
 try {
17 17
     $response = $sg->client->access_settings()->activity()->get(null, $query_params);
18
-    print $response->statusCode() . "\n";
18
+    print $response->statusCode()."\n";
19 19
     print_r($response->headers());
20
-    print $response->body() . "\n";
20
+    print $response->body()."\n";
21 21
 } catch (Exception $e) {
22
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
22
+    echo 'Caught exception: ', $e->getMessage(), "\n";
23 23
 }
24 24
 
25 25
 ////////////////////////////////////////////////////
@@ -42,11 +42,11 @@  discard block
 block discarded – undo
42 42
 
43 43
 try {
44 44
     $response = $sg->client->access_settings()->whitelist()->post($request_body);
45
-    print $response->statusCode() . "\n";
45
+    print $response->statusCode()."\n";
46 46
     print_r($response->headers());
47
-    print $response->body() . "\n";
47
+    print $response->body()."\n";
48 48
 } catch (Exception $e) {
49
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
49
+    echo 'Caught exception: ', $e->getMessage(), "\n";
50 50
 }
51 51
 
52 52
 ////////////////////////////////////////////////////
@@ -55,11 +55,11 @@  discard block
 block discarded – undo
55 55
 
56 56
 try {
57 57
     $response = $sg->client->access_settings()->whitelist()->get();
58
-    print $response->statusCode() . "\n";
58
+    print $response->statusCode()."\n";
59 59
     print_r($response->headers());
60
-    print $response->body() . "\n";
60
+    print $response->body()."\n";
61 61
 } catch (Exception $e) {
62
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
62
+    echo 'Caught exception: ', $e->getMessage(), "\n";
63 63
 }
64 64
 
65 65
 ////////////////////////////////////////////////////
@@ -76,11 +76,11 @@  discard block
 block discarded – undo
76 76
 
77 77
 try {
78 78
     $response = $sg->client->access_settings()->whitelist()->delete($request_body);
79
-    print $response->statusCode() . "\n";
79
+    print $response->statusCode()."\n";
80 80
     print_r($response->headers());
81
-    print $response->body() . "\n";
81
+    print $response->body()."\n";
82 82
 } catch (Exception $e) {
83
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
83
+    echo 'Caught exception: ', $e->getMessage(), "\n";
84 84
 }
85 85
 
86 86
 ////////////////////////////////////////////////////
@@ -91,11 +91,11 @@  discard block
 block discarded – undo
91 91
 
92 92
 try {
93 93
     $response = $sg->client->access_settings()->whitelist()->_($rule_id)->get();
94
-    print $response->statusCode() . "\n";
94
+    print $response->statusCode()."\n";
95 95
     print_r($response->headers());
96
-    print $response->body() . "\n";
96
+    print $response->body()."\n";
97 97
 } catch (Exception $e) {
98
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
98
+    echo 'Caught exception: ', $e->getMessage(), "\n";
99 99
 }
100 100
 
101 101
 ////////////////////////////////////////////////////
@@ -106,9 +106,9 @@  discard block
 block discarded – undo
106 106
 
107 107
 try {
108 108
     $response = $sg->client->access_settings()->whitelist()->_($rule_id)->delete();
109
-    print $response->statusCode() . "\n";
109
+    print $response->statusCode()."\n";
110 110
     print_r($response->headers());
111
-    print $response->body() . "\n";
111
+    print $response->body()."\n";
112 112
 } catch (Exception $e) {
113
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
113
+    echo 'Caught exception: ', $e->getMessage(), "\n";
114 114
 }
Please login to merge, or discard this patch.
extras/vendor/sendgrid/sendgrid/examples/suppression/suppression.php 1 patch
Spacing   +52 added lines, -52 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 // Next line will load dependencies to run this example
4 4
 // Please refer to the README how to use in your project
5
-require_once __DIR__ . '/../../sendgrid-php.php';
5
+require_once __DIR__.'/../../sendgrid-php.php';
6 6
 
7 7
 $apiKey = getenv('SENDGRID_API_KEY');
8 8
 $sg = new \SendGrid($apiKey);
@@ -15,11 +15,11 @@  discard block
 block discarded – undo
15 15
 
16 16
 try {
17 17
     $response = $sg->client->suppression()->blocks()->get(null, $query_params);
18
-    print $response->statusCode() . "\n";
18
+    print $response->statusCode()."\n";
19 19
     print_r($response->headers());
20
-    print $response->body() . "\n";
20
+    print $response->body()."\n";
21 21
 } catch (Exception $e) {
22
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
22
+    echo 'Caught exception: ', $e->getMessage(), "\n";
23 23
 }
24 24
 
25 25
 ////////////////////////////////////////////////////
@@ -36,11 +36,11 @@  discard block
 block discarded – undo
36 36
 
37 37
 try {
38 38
     $response = $sg->client->suppression()->blocks()->delete($request_body);
39
-    print $response->statusCode() . "\n";
39
+    print $response->statusCode()."\n";
40 40
     print_r($response->headers());
41
-    print $response->body() . "\n";
41
+    print $response->body()."\n";
42 42
 } catch (Exception $e) {
43
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
43
+    echo 'Caught exception: ', $e->getMessage(), "\n";
44 44
 }
45 45
 
46 46
 ////////////////////////////////////////////////////
@@ -51,11 +51,11 @@  discard block
 block discarded – undo
51 51
 
52 52
 try {
53 53
     $response = $sg->client->suppression()->blocks()->_($email)->get();
54
-    print $response->statusCode() . "\n";
54
+    print $response->statusCode()."\n";
55 55
     print_r($response->headers());
56
-    print $response->body() . "\n";
56
+    print $response->body()."\n";
57 57
 } catch (Exception $e) {
58
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
58
+    echo 'Caught exception: ', $e->getMessage(), "\n";
59 59
 }
60 60
 
61 61
 ////////////////////////////////////////////////////
@@ -66,11 +66,11 @@  discard block
 block discarded – undo
66 66
 
67 67
 try {
68 68
     $response = $sg->client->suppression()->blocks()->_($email)->delete();
69
-    print $response->statusCode() . "\n";
69
+    print $response->statusCode()."\n";
70 70
     print_r($response->headers());
71
-    print $response->body() . "\n";
71
+    print $response->body()."\n";
72 72
 } catch (Exception $e) {
73
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
73
+    echo 'Caught exception: ', $e->getMessage(), "\n";
74 74
 }
75 75
 
76 76
 ////////////////////////////////////////////////////
@@ -81,11 +81,11 @@  discard block
 block discarded – undo
81 81
 
82 82
 try {
83 83
     $response = $sg->client->suppression()->bounces()->get(null, $query_params);
84
-    print $response->statusCode() . "\n";
84
+    print $response->statusCode()."\n";
85 85
     print_r($response->headers());
86
-    print $response->body() . "\n";
86
+    print $response->body()."\n";
87 87
 } catch (Exception $e) {
88
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
88
+    echo 'Caught exception: ', $e->getMessage(), "\n";
89 89
 }
90 90
 
91 91
 ////////////////////////////////////////////////////
@@ -102,11 +102,11 @@  discard block
 block discarded – undo
102 102
 
103 103
 try {
104 104
     $response = $sg->client->suppression()->bounces()->delete($request_body);
105
-    print $response->statusCode() . "\n";
105
+    print $response->statusCode()."\n";
106 106
     print_r($response->headers());
107
-    print $response->body() . "\n";
107
+    print $response->body()."\n";
108 108
 } catch (Exception $e) {
109
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
109
+    echo 'Caught exception: ', $e->getMessage(), "\n";
110 110
 }
111 111
 
112 112
 ////////////////////////////////////////////////////
@@ -117,11 +117,11 @@  discard block
 block discarded – undo
117 117
 
118 118
 try {
119 119
     $response = $sg->client->suppression()->bounces()->_($email)->get();
120
-    print $response->statusCode() . "\n";
120
+    print $response->statusCode()."\n";
121 121
     print_r($response->headers());
122
-    print $response->body() . "\n";
122
+    print $response->body()."\n";
123 123
 } catch (Exception $e) {
124
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
124
+    echo 'Caught exception: ', $e->getMessage(), "\n";
125 125
 }
126 126
 
127 127
 ////////////////////////////////////////////////////
@@ -133,11 +133,11 @@  discard block
 block discarded – undo
133 133
 
134 134
 try {
135 135
     $response = $sg->client->suppression()->bounces()->_($email)->delete(null, $query_params);
136
-    print $response->statusCode() . "\n";
136
+    print $response->statusCode()."\n";
137 137
     print_r($response->headers());
138
-    print $response->body() . "\n";
138
+    print $response->body()."\n";
139 139
 } catch (Exception $e) {
140
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
140
+    echo 'Caught exception: ', $e->getMessage(), "\n";
141 141
 }
142 142
 
143 143
 ////////////////////////////////////////////////////
@@ -148,11 +148,11 @@  discard block
 block discarded – undo
148 148
 
149 149
 try {
150 150
     $response = $sg->client->suppression()->invalid_emails()->get(null, $query_params);
151
-    print $response->statusCode() . "\n";
151
+    print $response->statusCode()."\n";
152 152
     print_r($response->headers());
153
-    print $response->body() . "\n";
153
+    print $response->body()."\n";
154 154
 } catch (Exception $e) {
155
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
155
+    echo 'Caught exception: ', $e->getMessage(), "\n";
156 156
 }
157 157
 
158 158
 ////////////////////////////////////////////////////
@@ -169,11 +169,11 @@  discard block
 block discarded – undo
169 169
 
170 170
 try {
171 171
     $response = $sg->client->suppression()->invalid_emails()->delete($request_body);
172
-    print $response->statusCode() . "\n";
172
+    print $response->statusCode()."\n";
173 173
     print_r($response->headers());
174
-    print $response->body() . "\n";
174
+    print $response->body()."\n";
175 175
 } catch (Exception $e) {
176
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
176
+    echo 'Caught exception: ', $e->getMessage(), "\n";
177 177
 }
178 178
 
179 179
 ////////////////////////////////////////////////////
@@ -184,11 +184,11 @@  discard block
 block discarded – undo
184 184
 
185 185
 try {
186 186
     $response = $sg->client->suppression()->invalid_emails()->_($email)->get();
187
-    print $response->statusCode() . "\n";
187
+    print $response->statusCode()."\n";
188 188
     print_r($response->headers());
189
-    print $response->body() . "\n";
189
+    print $response->body()."\n";
190 190
 } catch (Exception $e) {
191
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
191
+    echo 'Caught exception: ', $e->getMessage(), "\n";
192 192
 }
193 193
 
194 194
 ////////////////////////////////////////////////////
@@ -199,11 +199,11 @@  discard block
 block discarded – undo
199 199
 
200 200
 try {
201 201
     $response = $sg->client->suppression()->invalid_emails()->_($email)->delete();
202
-    print $response->statusCode() . "\n";
202
+    print $response->statusCode()."\n";
203 203
     print_r($response->headers());
204
-    print $response->body() . "\n";
204
+    print $response->body()."\n";
205 205
 } catch (Exception $e) {
206
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
206
+    echo 'Caught exception: ', $e->getMessage(), "\n";
207 207
 }
208 208
 
209 209
 ////////////////////////////////////////////////////
@@ -214,11 +214,11 @@  discard block
 block discarded – undo
214 214
 
215 215
 try {
216 216
     $response = $sg->client->suppression()->spam_reports()->_($email)->get();
217
-    print $response->statusCode() . "\n";
217
+    print $response->statusCode()."\n";
218 218
     print_r($response->headers());
219
-    print $response->body() . "\n";
219
+    print $response->body()."\n";
220 220
 } catch (Exception $e) {
221
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
221
+    echo 'Caught exception: ', $e->getMessage(), "\n";
222 222
 }
223 223
 
224 224
 ////////////////////////////////////////////////////
@@ -229,11 +229,11 @@  discard block
 block discarded – undo
229 229
 
230 230
 try {
231 231
     $response = $sg->client->suppression()->spam_reports()->_($email)->delete();
232
-    print $response->statusCode() . "\n";
232
+    print $response->statusCode()."\n";
233 233
     print_r($response->headers());
234
-    print $response->body() . "\n";
234
+    print $response->body()."\n";
235 235
 } catch (Exception $e) {
236
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
236
+    echo 'Caught exception: ', $e->getMessage(), "\n";
237 237
 }
238 238
 
239 239
 ////////////////////////////////////////////////////
@@ -244,11 +244,11 @@  discard block
 block discarded – undo
244 244
 
245 245
 try {
246 246
     $response = $sg->client->suppression()->spam_reports()->get(null, $query_params);
247
-    print $response->statusCode() . "\n";
247
+    print $response->statusCode()."\n";
248 248
     print_r($response->headers());
249
-    print $response->body() . "\n";
249
+    print $response->body()."\n";
250 250
 } catch (Exception $e) {
251
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
251
+    echo 'Caught exception: ', $e->getMessage(), "\n";
252 252
 }
253 253
 
254 254
 ////////////////////////////////////////////////////
@@ -265,11 +265,11 @@  discard block
 block discarded – undo
265 265
 
266 266
 try {
267 267
     $response = $sg->client->suppression()->spam_reports()->delete($request_body);
268
-    print $response->statusCode() . "\n";
268
+    print $response->statusCode()."\n";
269 269
     print_r($response->headers());
270
-    print $response->body() . "\n";
270
+    print $response->body()."\n";
271 271
 } catch (Exception $e) {
272
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
272
+    echo 'Caught exception: ', $e->getMessage(), "\n";
273 273
 }
274 274
 
275 275
 ////////////////////////////////////////////////////
@@ -280,9 +280,9 @@  discard block
 block discarded – undo
280 280
 
281 281
 try {
282 282
     $response = $sg->client->suppression()->unsubscribes()->get(null, $query_params);
283
-    print $response->statusCode() . "\n";
283
+    print $response->statusCode()."\n";
284 284
     print_r($response->headers());
285
-    print $response->body() . "\n";
285
+    print $response->body()."\n";
286 286
 } catch (Exception $e) {
287
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
287
+    echo 'Caught exception: ', $e->getMessage(), "\n";
288 288
 }
Please login to merge, or discard this patch.
extras/vendor/sendgrid/sendgrid/examples/devices/devices.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 // Next line will load dependencies to run this example
4 4
 // Please refer to the README how to use in your project
5
-require_once __DIR__ . '/../../sendgrid-php.php';
5
+require_once __DIR__.'/../../sendgrid-php.php';
6 6
 
7 7
 $apiKey = getenv('SENDGRID_API_KEY');
8 8
 $sg = new \SendGrid($apiKey);
@@ -15,9 +15,9 @@  discard block
 block discarded – undo
15 15
 
16 16
 try {
17 17
     $response = $sg->client->devices()->stats()->get(null, $query_params);
18
-    print $response->statusCode() . "\n";
18
+    print $response->statusCode()."\n";
19 19
     print_r($response->headers());
20
-    print $response->body() . "\n";
20
+    print $response->body()."\n";
21 21
 } catch (Exception $e) {
22
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
22
+    echo 'Caught exception: ', $e->getMessage(), "\n";
23 23
 }
Please login to merge, or discard this patch.
extras/vendor/sendgrid/sendgrid/examples/mailsettings/mailsettings.php 1 patch
Spacing   +58 added lines, -58 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 // Next line will load dependencies to run this example
4 4
 // Please refer to the README how to use in your project
5
-require_once __DIR__ . '/../../sendgrid-php.php';
5
+require_once __DIR__.'/../../sendgrid-php.php';
6 6
 
7 7
 $apiKey = getenv('SENDGRID_API_KEY');
8 8
 $sg = new \SendGrid($apiKey);
@@ -15,11 +15,11 @@  discard block
 block discarded – undo
15 15
 
16 16
 try {
17 17
     $response = $sg->client->mail_settings()->get(null, $query_params);
18
-    print $response->statusCode() . "\n";
18
+    print $response->statusCode()."\n";
19 19
     print_r($response->headers());
20
-    print $response->body() . "\n";
20
+    print $response->body()."\n";
21 21
 } catch (Exception $e) {
22
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
22
+    echo 'Caught exception: ', $e->getMessage(), "\n";
23 23
 }
24 24
 
25 25
 ////////////////////////////////////////////////////
@@ -36,11 +36,11 @@  discard block
 block discarded – undo
36 36
 
37 37
 try {
38 38
     $response = $sg->client->mail_settings()->address_whitelist()->patch($request_body);
39
-    print $response->statusCode() . "\n";
39
+    print $response->statusCode()."\n";
40 40
     print_r($response->headers());
41
-    print $response->body() . "\n";
41
+    print $response->body()."\n";
42 42
 } catch (Exception $e) {
43
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
43
+    echo 'Caught exception: ', $e->getMessage(), "\n";
44 44
 }
45 45
 
46 46
 ////////////////////////////////////////////////////
@@ -49,11 +49,11 @@  discard block
 block discarded – undo
49 49
 
50 50
 try {
51 51
     $response = $sg->client->mail_settings()->address_whitelist()->get();
52
-    print $response->statusCode() . "\n";
52
+    print $response->statusCode()."\n";
53 53
     print_r($response->headers());
54
-    print $response->body() . "\n";
54
+    print $response->body()."\n";
55 55
 } catch (Exception $e) {
56
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
56
+    echo 'Caught exception: ', $e->getMessage(), "\n";
57 57
 }
58 58
 
59 59
 ////////////////////////////////////////////////////
@@ -67,11 +67,11 @@  discard block
 block discarded – undo
67 67
 
68 68
 try {
69 69
     $response = $sg->client->mail_settings()->bcc()->patch($request_body);
70
-    print $response->statusCode() . "\n";
70
+    print $response->statusCode()."\n";
71 71
     print_r($response->headers());
72
-    print $response->body() . "\n";
72
+    print $response->body()."\n";
73 73
 } catch (Exception $e) {
74
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
74
+    echo 'Caught exception: ', $e->getMessage(), "\n";
75 75
 }
76 76
 
77 77
 ////////////////////////////////////////////////////
@@ -80,11 +80,11 @@  discard block
 block discarded – undo
80 80
 
81 81
 try {
82 82
     $response = $sg->client->mail_settings()->bcc()->get();
83
-    print $response->statusCode() . "\n";
83
+    print $response->statusCode()."\n";
84 84
     print_r($response->headers());
85
-    print $response->body() . "\n";
85
+    print $response->body()."\n";
86 86
 } catch (Exception $e) {
87
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
87
+    echo 'Caught exception: ', $e->getMessage(), "\n";
88 88
 }
89 89
 
90 90
 ////////////////////////////////////////////////////
@@ -99,11 +99,11 @@  discard block
 block discarded – undo
99 99
 
100 100
 try {
101 101
     $response = $sg->client->mail_settings()->bounce_purge()->patch($request_body);
102
-    print $response->statusCode() . "\n";
102
+    print $response->statusCode()."\n";
103 103
     print_r($response->headers());
104
-    print $response->body() . "\n";
104
+    print $response->body()."\n";
105 105
 } catch (Exception $e) {
106
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
106
+    echo 'Caught exception: ', $e->getMessage(), "\n";
107 107
 }
108 108
 
109 109
 ////////////////////////////////////////////////////
@@ -112,11 +112,11 @@  discard block
 block discarded – undo
112 112
 
113 113
 try {
114 114
     $response = $sg->client->mail_settings()->bounce_purge()->get();
115
-    print $response->statusCode() . "\n";
115
+    print $response->statusCode()."\n";
116 116
     print_r($response->headers());
117
-    print $response->body() . "\n";
117
+    print $response->body()."\n";
118 118
 } catch (Exception $e) {
119
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
119
+    echo 'Caught exception: ', $e->getMessage(), "\n";
120 120
 }
121 121
 
122 122
 ////////////////////////////////////////////////////
@@ -131,11 +131,11 @@  discard block
 block discarded – undo
131 131
 
132 132
 try {
133 133
     $response = $sg->client->mail_settings()->footer()->patch($request_body);
134
-    print $response->statusCode() . "\n";
134
+    print $response->statusCode()."\n";
135 135
     print_r($response->headers());
136
-    print $response->body() . "\n";
136
+    print $response->body()."\n";
137 137
 } catch (Exception $e) {
138
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
138
+    echo 'Caught exception: ', $e->getMessage(), "\n";
139 139
 }
140 140
 
141 141
 ////////////////////////////////////////////////////
@@ -144,11 +144,11 @@  discard block
 block discarded – undo
144 144
 
145 145
 try {
146 146
     $response = $sg->client->mail_settings()->footer()->get();
147
-    print $response->statusCode() . "\n";
147
+    print $response->statusCode()."\n";
148 148
     print_r($response->headers());
149
-    print $response->body() . "\n";
149
+    print $response->body()."\n";
150 150
 } catch (Exception $e) {
151
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
151
+    echo 'Caught exception: ', $e->getMessage(), "\n";
152 152
 }
153 153
 
154 154
 ////////////////////////////////////////////////////
@@ -162,11 +162,11 @@  discard block
 block discarded – undo
162 162
 
163 163
 try {
164 164
     $response = $sg->client->mail_settings()->forward_bounce()->patch($request_body);
165
-    print $response->statusCode() . "\n";
165
+    print $response->statusCode()."\n";
166 166
     print_r($response->headers());
167
-    print $response->body() . "\n";
167
+    print $response->body()."\n";
168 168
 } catch (Exception $e) {
169
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
169
+    echo 'Caught exception: ', $e->getMessage(), "\n";
170 170
 }
171 171
 
172 172
 ////////////////////////////////////////////////////
@@ -175,11 +175,11 @@  discard block
 block discarded – undo
175 175
 
176 176
 try {
177 177
     $response = $sg->client->mail_settings()->forward_bounce()->get();
178
-    print $response->statusCode() . "\n";
178
+    print $response->statusCode()."\n";
179 179
     print_r($response->headers());
180
-    print $response->body() . "\n";
180
+    print $response->body()."\n";
181 181
 } catch (Exception $e) {
182
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
182
+    echo 'Caught exception: ', $e->getMessage(), "\n";
183 183
 }
184 184
 
185 185
 ////////////////////////////////////////////////////
@@ -193,11 +193,11 @@  discard block
 block discarded – undo
193 193
 
194 194
 try {
195 195
     $response = $sg->client->mail_settings()->forward_spam()->patch($request_body);
196
-    print $response->statusCode() . "\n";
196
+    print $response->statusCode()."\n";
197 197
     print_r($response->headers());
198
-    print $response->body() . "\n";
198
+    print $response->body()."\n";
199 199
 } catch (Exception $e) {
200
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
200
+    echo 'Caught exception: ', $e->getMessage(), "\n";
201 201
 }
202 202
 
203 203
 ////////////////////////////////////////////////////
@@ -206,11 +206,11 @@  discard block
 block discarded – undo
206 206
 
207 207
 try {
208 208
     $response = $sg->client->mail_settings()->forward_spam()->get();
209
-    print $response->statusCode() . "\n";
209
+    print $response->statusCode()."\n";
210 210
     print_r($response->headers());
211
-    print $response->body() . "\n";
211
+    print $response->body()."\n";
212 212
 } catch (Exception $e) {
213
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
213
+    echo 'Caught exception: ', $e->getMessage(), "\n";
214 214
 }
215 215
 
216 216
 ////////////////////////////////////////////////////
@@ -223,11 +223,11 @@  discard block
 block discarded – undo
223 223
 
224 224
 try {
225 225
     $response = $sg->client->mail_settings()->plain_content()->patch($request_body);
226
-    print $response->statusCode() . "\n";
226
+    print $response->statusCode()."\n";
227 227
     print_r($response->headers());
228
-    print $response->body() . "\n";
228
+    print $response->body()."\n";
229 229
 } catch (Exception $e) {
230
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
230
+    echo 'Caught exception: ', $e->getMessage(), "\n";
231 231
 }
232 232
 
233 233
 ////////////////////////////////////////////////////
@@ -236,11 +236,11 @@  discard block
 block discarded – undo
236 236
 
237 237
 try {
238 238
     $response = $sg->client->mail_settings()->plain_content()->get();
239
-    print $response->statusCode() . "\n";
239
+    print $response->statusCode()."\n";
240 240
     print_r($response->headers());
241
-    print $response->body() . "\n";
241
+    print $response->body()."\n";
242 242
 } catch (Exception $e) {
243
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
243
+    echo 'Caught exception: ', $e->getMessage(), "\n";
244 244
 }
245 245
 
246 246
 ////////////////////////////////////////////////////
@@ -255,11 +255,11 @@  discard block
 block discarded – undo
255 255
 
256 256
 try {
257 257
     $response = $sg->client->mail_settings()->spam_check()->patch($request_body);
258
-    print $response->statusCode() . "\n";
258
+    print $response->statusCode()."\n";
259 259
     print_r($response->headers());
260
-    print $response->body() . "\n";
260
+    print $response->body()."\n";
261 261
 } catch (Exception $e) {
262
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
262
+    echo 'Caught exception: ', $e->getMessage(), "\n";
263 263
 }
264 264
 
265 265
 ////////////////////////////////////////////////////
@@ -268,11 +268,11 @@  discard block
 block discarded – undo
268 268
 
269 269
 try {
270 270
     $response = $sg->client->mail_settings()->spam_check()->get();
271
-    print $response->statusCode() . "\n";
271
+    print $response->statusCode()."\n";
272 272
     print_r($response->headers());
273
-    print $response->body() . "\n";
273
+    print $response->body()."\n";
274 274
 } catch (Exception $e) {
275
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
275
+    echo 'Caught exception: ', $e->getMessage(), "\n";
276 276
 }
277 277
 
278 278
 ////////////////////////////////////////////////////
@@ -286,11 +286,11 @@  discard block
 block discarded – undo
286 286
 
287 287
 try {
288 288
     $response = $sg->client->mail_settings()->template()->patch($request_body);
289
-    print $response->statusCode() . "\n";
289
+    print $response->statusCode()."\n";
290 290
     print_r($response->headers());
291
-    print $response->body() . "\n";
291
+    print $response->body()."\n";
292 292
 } catch (Exception $e) {
293
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
293
+    echo 'Caught exception: ', $e->getMessage(), "\n";
294 294
 }
295 295
 
296 296
 ////////////////////////////////////////////////////
@@ -299,9 +299,9 @@  discard block
 block discarded – undo
299 299
 
300 300
 try {
301 301
     $response = $sg->client->mail_settings()->template()->get();
302
-    print $response->statusCode() . "\n";
302
+    print $response->statusCode()."\n";
303 303
     print_r($response->headers());
304
-    print $response->body() . "\n";
304
+    print $response->body()."\n";
305 305
 } catch (Exception $e) {
306
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
306
+    echo 'Caught exception: ', $e->getMessage(), "\n";
307 307
 }
Please login to merge, or discard this patch.
extras/vendor/sendgrid/sendgrid/examples/geo/geo.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 // Next line will load dependencies to run this example
4 4
 // Please refer to the README how to use in your project
5
-require_once __DIR__ . '/../../sendgrid-php.php';
5
+require_once __DIR__.'/../../sendgrid-php.php';
6 6
 
7 7
 $apiKey = getenv('SENDGRID_API_KEY');
8 8
 $sg = new \SendGrid($apiKey);
@@ -15,9 +15,9 @@  discard block
 block discarded – undo
15 15
 
16 16
 try {
17 17
     $response = $sg->client->geo()->stats()->get(null, $query_params);
18
-    print $response->statusCode() . "\n";
18
+    print $response->statusCode()."\n";
19 19
     print_r($response->headers());
20
-    print $response->body() . "\n";
20
+    print $response->body()."\n";
21 21
 } catch (Exception $e) {
22
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
22
+    echo 'Caught exception: ', $e->getMessage(), "\n";
23 23
 }
Please login to merge, or discard this patch.
extras/vendor/sendgrid/sendgrid/examples/senders/senders.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 // Next line will load dependencies to run this example
4 4
 // Please refer to the README how to use in your project
5
-require_once __DIR__ . '/../../sendgrid-php.php';
5
+require_once __DIR__.'/../../sendgrid-php.php';
6 6
 
7 7
 $apiKey = getenv('SENDGRID_API_KEY');
8 8
 $sg = new \SendGrid($apiKey);
@@ -31,11 +31,11 @@  discard block
 block discarded – undo
31 31
 
32 32
 try {
33 33
     $response = $sg->client->senders()->post($request_body);
34
-    print $response->statusCode() . "\n";
34
+    print $response->statusCode()."\n";
35 35
     print_r($response->headers());
36
-    print $response->body() . "\n";
36
+    print $response->body()."\n";
37 37
 } catch (Exception $e) {
38
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
38
+    echo 'Caught exception: ', $e->getMessage(), "\n";
39 39
 }
40 40
 
41 41
 ////////////////////////////////////////////////////
@@ -44,11 +44,11 @@  discard block
 block discarded – undo
44 44
 
45 45
 try {
46 46
     $response = $sg->client->senders()->get();
47
-    print $response->statusCode() . "\n";
47
+    print $response->statusCode()."\n";
48 48
     print_r($response->headers());
49
-    print $response->body() . "\n";
49
+    print $response->body()."\n";
50 50
 } catch (Exception $e) {
51
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
51
+    echo 'Caught exception: ', $e->getMessage(), "\n";
52 52
 }
53 53
 
54 54
 ////////////////////////////////////////////////////
@@ -76,11 +76,11 @@  discard block
 block discarded – undo
76 76
 
77 77
 try {
78 78
     $response = $sg->client->senders()->_($sender_id)->patch($request_body);
79
-    print $response->statusCode() . "\n";
79
+    print $response->statusCode()."\n";
80 80
     print_r($response->headers());
81
-    print $response->body() . "\n";
81
+    print $response->body()."\n";
82 82
 } catch (Exception $e) {
83
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
83
+    echo 'Caught exception: ', $e->getMessage(), "\n";
84 84
 }
85 85
 
86 86
 ////////////////////////////////////////////////////
@@ -91,11 +91,11 @@  discard block
 block discarded – undo
91 91
 
92 92
 try {
93 93
     $response = $sg->client->senders()->_($sender_id)->get();
94
-    print $response->statusCode() . "\n";
94
+    print $response->statusCode()."\n";
95 95
     print_r($response->headers());
96
-    print $response->body() . "\n";
96
+    print $response->body()."\n";
97 97
 } catch (Exception $e) {
98
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
98
+    echo 'Caught exception: ', $e->getMessage(), "\n";
99 99
 }
100 100
 
101 101
 ////////////////////////////////////////////////////
@@ -106,11 +106,11 @@  discard block
 block discarded – undo
106 106
 
107 107
 try {
108 108
     $response = $sg->client->senders()->_($sender_id)->delete();
109
-    print $response->statusCode() . "\n";
109
+    print $response->statusCode()."\n";
110 110
     print_r($response->headers());
111
-    print $response->body() . "\n";
111
+    print $response->body()."\n";
112 112
 } catch (Exception $e) {
113
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
113
+    echo 'Caught exception: ', $e->getMessage(), "\n";
114 114
 }
115 115
 
116 116
 ////////////////////////////////////////////////////
@@ -121,9 +121,9 @@  discard block
 block discarded – undo
121 121
 
122 122
 try {
123 123
     $response = $sg->client->senders()->_($sender_id)->resend_verification()->post();
124
-    print $response->statusCode() . "\n";
124
+    print $response->statusCode()."\n";
125 125
     print_r($response->headers());
126
-    print $response->body() . "\n";
126
+    print $response->body()."\n";
127 127
 } catch (Exception $e) {
128
-    echo 'Caught exception: ',  $e->getMessage(), "\n";
128
+    echo 'Caught exception: ', $e->getMessage(), "\n";
129 129
 }
Please login to merge, or discard this patch.