Skip to content

Commit 24cf864

Browse files
committed
Fix whitespace errors
1 parent 817a1f6 commit 24cf864

20 files changed

+28
-34
lines changed

source/includes/connect/atlas.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@
1515

1616
echo json_encode($result), PHP_EOL;
1717
echo 'Pinged your deployment. You successfully connected to MongoDB!\n';
18-

source/includes/connect/direct-connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
$uri = 'mongodb://<hostname>:<port>/?directConnection=true';
55

66
// Create a MongoDB client
7-
$client = new MongoDB\Client($uri);
7+
$client = new MongoDB\Client($uri);

source/includes/connect/network-compression.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@
2727
// start-set-level-uri
2828
$uri = 'mongodb://<hostname>:<port>/?compressors=zlib&zlibCompressionLevel=1';
2929
$client = new MongoDB\Client($uri);
30-
// end-set-level-uri
30+
// end-set-level-uri

source/includes/connect/replica-set.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
$uri = 'mongodb://host1:27017/?replicaSet=sampleRS';
44

55
// Create a MongoDB client
6-
$client = new MongoDB\Client($uri);
6+
$client = new MongoDB\Client($uri);

source/includes/databases-collections/time-series.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require 'vendor/autoload.php';
2+
require 'vendor/autoload.php';
33

44
$uri = getenv('MONGODB_URI') ?: 'mongodb://localhost:27017';
55
$client = new MongoDB\Client($uri);

source/includes/read/change-streams.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require 'vendor/autoload.php';
2+
require 'vendor/autoload.php';
33

44
// start-to-json
55
function toJSON(object $document): string
@@ -75,4 +75,3 @@ function toJSON(object $document): string
7575
}
7676
}
7777
// end-change-stream-post-image
78-

source/includes/read/cursor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
// start-capped-coll
3434
$db = $client->db;
3535
$db->createCollection(
36-
'vegetables',
36+
'vegetables',
3737
['capped' => true, 'size' => 1024 * 1024],
3838
);
3939

source/includes/read/distinct.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,3 @@
3737
echo json_encode($value), PHP_EOL;
3838
}
3939
// end-distinct-with-comment
40-

source/includes/read/limit-skip-sort.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// Retrieves documents with a "cuisine" value of "Italian" and sorts in ascending "name" order
2525
// start-sort
2626
$cursor = $collection->find(
27-
['cuisine' => 'Italian'],
27+
['cuisine' => 'Italian'],
2828
['sort' => ['name' => 1]],
2929
);
3030

@@ -64,7 +64,7 @@
6464
// start-return-type
6565
$options = [
6666
'typeMap' => [
67-
'root' => 'array',
67+
'root' => 'array',
6868
'document' => 'array',
6969
],
7070
];

source/includes/usage-examples/connect-code-examples.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
$client = new MongoDB\Client($uri);
4545
// end-enable-tls-uri
4646

47-
// Connects to a MongoDB deployment, enables TLS, and specifies the path to
47+
// Connects to a MongoDB deployment, enables TLS, and specifies the path to
4848
// a CA file using client options
4949
// start-ca-file-client
5050
$client = new MongoDB\Client(
@@ -53,7 +53,7 @@
5353
);
5454
// end-ca-file-client
5555

56-
// Connects to a MongoDB deployment, enables TLS, and specifies the path to
56+
// Connects to a MongoDB deployment, enables TLS, and specifies the path to
5757
// a CA file using connection URI parameters
5858
// start-ca-file-uri
5959
$uri = 'mongodb://<hostname>:<port>/?tls=true&tlsCAFile=/path/to/ca.pem';

0 commit comments

Comments
 (0)