Skip to content

Commit 553e57d

Browse files
committed
Fix use statements
1 parent 24cf864 commit 553e57d

File tree

7 files changed

+2
-7
lines changed

7 files changed

+2
-7
lines changed

source/includes/get-started/quickstart.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
require __DIR__ . '/../vendor/autoload.php';
44

5-
use MongoDB\Client;
65

76
$uri = getenv('MONGODB_URI') ?: throw new RuntimeException(
87
'Set the MONGODB_URI environment variable to your Atlas URI',

source/includes/read-write-pref.php

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

4+
use MongoDB\Client;
45
use MongoDB\Driver\ReadConcern;
56
use MongoDB\Driver\ReadPreference;
67
use MongoDB\Driver\WriteConcern;
7-
use MongoDB\Client;
88

99
// start-client-settings
1010
$clientOptions = [

source/includes/read/count.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22
require 'vendor/autoload.php';
33

4-
use MongoDB\BSON\Document;
54

65
$uri = getenv('MONGODB_URI') ?: throw new RuntimeException('Set the MONGODB_URI variable to your Atlas URI that connects to the sample dataset');
76
$client = new MongoDB\Client($uri);

source/includes/read/distinct.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22
require 'vendor/autoload.php';
33

4-
use MongoDB\BSON\Document;
54

65
$uri = getenv('MONGODB_URI') ?: throw new RuntimeException('Set the MONGODB_URI variable to your Atlas URI that connects to the sample dataset');
76
$client = new MongoDB\Client($uri);

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
require_once __DIR__ . '/vendor/autoload.php';
44

5-
use MongoDB\Client;
65

76
$uri = getenv('MONGODB_URI') ?: throw new RuntimeException('Set the MONGODB_URI variable to your Atlas URI that connects to the sample dataset');
87
$client = new MongoDB\Client($uri);

source/includes/write/gridfs.php

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

4-
use MongoDB\Client;
54
use MongoDB\BSON\ObjectId;
5+
use MongoDB\Client;
66

77
$uri = getenv('MONGODB_URI') ?: throw new RuntimeException('Set the MONGODB_URI variable to your Atlas URI that connects to the sample dataset');
88
$client = new Client($uri);

source/includes/write/run-command.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
require __DIR__ . '/vendor/autoload.php';
44

5-
use MongoDB\Client;
65

76
$uri = getenv('MONGODB_URI') ?: throw new RuntimeException('Set the MONGODB_URI variable to your connection URI');
87
$client = new MongoDB\Client($uri);

0 commit comments

Comments
 (0)