Skip to content

Commit 36709ad

Browse files
committed
Clean up
1 parent d6f4d1a commit 36709ad

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ $curl = new Curl();
4545
$curl->get('https://www.example.com/');
4646

4747
if ($curl->error) {
48-
echo 'Error: ' . $curl->errorCode . ': ' . $curl->errorMessage;
48+
echo 'Error: ' . $curl->errorCode . ': ' . $curl->errorMessage . "\n";
4949
} else {
5050
echo 'Response:' . "\n";
5151
var_dump($curl->response);
@@ -78,7 +78,7 @@ $curl->setCookie('key', 'value');
7878
$curl->get('https://www.example.com/');
7979

8080
if ($curl->error) {
81-
echo 'Error: ' . $curl->errorCode . ': ' . $curl->errorMessage;
81+
echo 'Error: ' . $curl->errorCode . ': ' . $curl->errorMessage . "\n";
8282
} else {
8383
echo 'Response:' . "\n";
8484
var_dump($curl->response);

examples/delete.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
);
1919

2020
if ($curl->error) {
21-
echo 'Error: ' . $curl->errorCode . ': ' . $curl->errorMessage;
21+
echo 'Error: ' . $curl->errorCode . ': ' . $curl->errorMessage . "\n";
2222
} else {
2323
echo 'Data server received via DELETE:' . "\n";
2424
var_dump($curl->response->form);

examples/get.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
));
1212

1313
if ($curl->error) {
14-
echo 'Error: ' . $curl->errorCode . ': ' . $curl->errorMessage;
14+
echo 'Error: ' . $curl->errorCode . ': ' . $curl->errorMessage . "\n";
1515
} else {
1616
echo 'Response:' . "\n";
1717
var_dump($curl->response);

examples/google_spreadsheet_values_update.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
$curl->put($url, $data);
6565

6666
if ($curl->error) {
67-
echo 'Error: ' . $curl->errorCode . ': ' . $curl->errorMessage;
67+
echo 'Error: ' . $curl->errorCode . ': ' . $curl->errorMessage . "\n";
6868
var_dump($curl);
6969
} else {
7070
var_dump($curl->response);

examples/head.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
));
1212

1313
if ($curl->error) {
14-
echo 'Error: ' . $curl->errorCode . ': ' . $curl->errorMessage;
14+
echo 'Error: ' . $curl->errorCode . ': ' . $curl->errorMessage . "\n";
1515
} else {
1616
echo 'Response headers:' . "\n";
1717
var_dump($curl->responseHeaders);

examples/options.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
));
1212

1313
if ($curl->error) {
14-
echo 'Error: ' . $curl->errorCode . ': ' . $curl->errorMessage;
14+
echo 'Error: ' . $curl->errorCode . ': ' . $curl->errorMessage . "\n";
1515
} else {
1616
echo 'Response:' . "\n";
1717
var_dump($curl->response);

examples/patch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
));
1414

1515
if ($curl->error) {
16-
echo 'Error: ' . $curl->errorCode . ': ' . $curl->errorMessage;
16+
echo 'Error: ' . $curl->errorCode . ': ' . $curl->errorMessage . "\n";
1717
} else {
1818
echo 'Response:' . "\n";
1919
var_dump($curl->response);

examples/post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
));
1414

1515
if ($curl->error) {
16-
echo 'Error: ' . $curl->errorCode . ': ' . $curl->errorMessage;
16+
echo 'Error: ' . $curl->errorCode . ': ' . $curl->errorMessage . "\n";
1717
} else {
1818
echo 'Data server received via POST:' . "\n";
1919
var_dump($curl->response->form);

examples/put.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
));
1414

1515
if ($curl->error) {
16-
echo 'Error: ' . $curl->errorCode . ': ' . $curl->errorMessage;
16+
echo 'Error: ' . $curl->errorCode . ': ' . $curl->errorMessage . "\n";
1717
} else {
1818
echo 'Data server received via PUT:' . "\n";
1919
var_dump($curl->response->form);

examples/search.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
));
1414

1515
if ($curl->error) {
16-
echo 'Error: ' . $curl->errorCode . ': ' . $curl->errorMessage;
16+
echo 'Error: ' . $curl->errorCode . ': ' . $curl->errorMessage . "\n";
1717
} else {
1818
echo 'Response:' . "\n";
1919
var_dump($curl->response);

0 commit comments

Comments
 (0)