Skip to content

Remove unused imports #672

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/GridFS/Bucket.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
use MongoDB\Exception\UnsupportedException;
use MongoDB\GridFS\Exception\CorruptFileException;
use MongoDB\GridFS\Exception\FileNotFoundException;
use MongoDB\Operation\Find;
use stdClass;

/**
Expand Down
1 change: 0 additions & 1 deletion src/Model/BSONIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

use MongoDB\Exception\InvalidArgumentException;
use MongoDB\Exception\UnexpectedValueException;
use MongoDB\Model\BSONDocument;
use Iterator;

/**
Expand Down
1 change: 0 additions & 1 deletion src/Operation/CreateIndexes.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

namespace MongoDB\Operation;

use MongoDB\Driver\BulkWrite as Bulk;
use MongoDB\Driver\Command;
use MongoDB\Driver\Server;
use MongoDB\Driver\Session;
Expand Down
1 change: 0 additions & 1 deletion src/Operation/Explain.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
use MongoDB\Driver\Session;
use MongoDB\Exception\UnsupportedException;
use MongoDB\Exception\InvalidArgumentException;
use MongoDB\Model\BSONDocument;

/**
* Operation for the explain command.
Expand Down
2 changes: 1 addition & 1 deletion src/Operation/Find.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
use MongoDB\Driver\Exception\RuntimeException as DriverRuntimeException;
use MongoDB\Exception\InvalidArgumentException;
use MongoDB\Exception\UnsupportedException;
use MongoDB\Model\BSONDocument;

/**
* Operation for the find command.
*
Expand Down
1 change: 0 additions & 1 deletion src/Operation/ListIndexes.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
namespace MongoDB\Operation;

use MongoDB\Driver\Command;
use MongoDB\Driver\Query;
use MongoDB\Driver\Server;
use MongoDB\Driver\Session;
use MongoDB\Driver\Exception\RuntimeException as DriverRuntimeException;
Expand Down
3 changes: 0 additions & 3 deletions src/Operation/Watch.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,10 @@
use MongoDB\ChangeStream;
use MongoDB\BSON\TimestampInterface;
use MongoDB\Model\ChangeStreamIterator;
use MongoDB\Driver\Command;
use MongoDB\Driver\Cursor;
use MongoDB\Driver\Manager;
use MongoDB\Driver\ReadConcern;
use MongoDB\Driver\ReadPreference;
use MongoDB\Driver\Server;
use MongoDB\Driver\Session;
use MongoDB\Driver\Exception\RuntimeException;
use MongoDB\Driver\Monitoring\CommandFailedEvent;
use MongoDB\Driver\Monitoring\CommandSubscriber;
Expand Down
3 changes: 0 additions & 3 deletions src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,9 @@
namespace MongoDB;

use MongoDB\BSON\Serializable;
use MongoDB\Driver\ReadConcern;
use MongoDB\Driver\Server;
use MongoDB\Driver\WriteConcern;
use MongoDB\Exception\InvalidArgumentException;
use ReflectionException;
use stdClass;
use ReflectionClass;

/**
Expand Down
1 change: 0 additions & 1 deletion tests/ClientFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use MongoDB\Client;
use MongoDB\Driver\BulkWrite;
use MongoDB\Driver\Command;
use MongoDB\Model\DatabaseInfo;
use Symfony\Bridge\PhpUnit\SetUpTearDownTrait;

Expand Down
3 changes: 0 additions & 3 deletions tests/Collection/CollectionFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@
use MongoDB\Exception\InvalidArgumentException;
use MongoDB\Exception\UnsupportedException;
use MongoDB\Operation\Count;
use MongoDB\Operation\MapReduce;
use MongoDB\Tests\CommandObserver;
use Exception;
use stdClass;

/**
* Functional tests for the Collection class.
Expand Down
1 change: 0 additions & 1 deletion tests/Collection/FunctionalTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace MongoDB\Tests\Collection;

use MongoDB\Collection;
use MongoDB\Driver\WriteConcern;
use MongoDB\Tests\FunctionalTestCase as BaseFunctionalTestCase;
use Symfony\Bridge\PhpUnit\SetUpTearDownTrait;

Expand Down
2 changes: 0 additions & 2 deletions tests/DocumentationExamplesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@
use MongoDB\Database;
use MongoDB\Driver\Cursor;
use MongoDB\Driver\ReadPreference;
use MongoDB\Driver\Server;
use MongoDB\Driver\WriteConcern;
use MongoDB\Driver\Exception\ConnectionTimeoutException;
use MongoDB\Operation\DropCollection;
use Symfony\Bridge\PhpUnit\SetUpTearDownTrait;

/**
Expand Down
1 change: 0 additions & 1 deletion tests/FunctionalTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace MongoDB\Tests;

use MongoDB\Driver\Command;
use MongoDB\Driver\Cursor;
use MongoDB\Driver\Manager;
use MongoDB\Driver\ReadPreference;
use MongoDB\Driver\Query;
Expand Down
2 changes: 0 additions & 2 deletions tests/FunctionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

use MongoDB\Model\BSONArray;
use MongoDB\Model\BSONDocument;
use MongoDB\Driver\ReadConcern;
use MongoDB\Driver\WriteConcern;
use MongoDB\Exception\InvalidArgumentException;

/**
Expand Down
1 change: 0 additions & 1 deletion tests/GridFS/ReadableStreamFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use MongoDB\GridFS\ReadableStream;
use MongoDB\GridFS\Exception\CorruptFileException;
use MongoDB\Tests\CommandObserver;
use stdClass;
use Symfony\Bridge\PhpUnit\SetUpTearDownTrait;

/**
Expand Down
3 changes: 0 additions & 3 deletions tests/Model/BSONIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
namespace MongoDB\Tests\Model;

use MongoDB\Exception\UnexpectedValueException;
use MongoDB\Model\BSONArray;
use MongoDB\Model\BSONDocument;
use MongoDB\Model\BSONIterator;
use MongoDB\Tests\TestCase;
use stdClass;

class BSONIteratorTest extends TestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/Operation/AggregateFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use MongoDB\Operation\Aggregate;
use MongoDB\Tests\CommandObserver;
use ArrayIterator;
use Exception;
use stdClass;

class AggregateFunctionalTest extends FunctionalTestCase
Expand Down
1 change: 0 additions & 1 deletion tests/Operation/BulkWriteFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
use MongoDB\Model\BSONDocument;
use MongoDB\Operation\BulkWrite;
use MongoDB\Tests\CommandObserver;
use stdClass;
use Symfony\Bridge\PhpUnit\SetUpTearDownTrait;

class BulkWriteFunctionalTest extends FunctionalTestCase
Expand Down
1 change: 0 additions & 1 deletion tests/Operation/CountDocumentsFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use MongoDB\Operation\CountDocuments;
use MongoDB\Operation\InsertMany;
use stdClass;

class CountDocumentsFunctionalTest extends FunctionalTestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/Operation/CountFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use MongoDB\Operation\CreateIndexes;
use MongoDB\Operation\InsertMany;
use MongoDB\Tests\CommandObserver;
use stdClass;

class CountFunctionalTest extends FunctionalTestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/Operation/CreateCollectionFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use MongoDB\Operation\CreateCollection;
use MongoDB\Tests\CommandObserver;
use stdClass;

class CreateCollectionFunctionalTest extends FunctionalTestCase
{
Expand Down
2 changes: 0 additions & 2 deletions tests/Operation/CreateIndexesFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@
use MongoDB\Driver\Exception\RuntimeException;
use MongoDB\Model\IndexInfo;
use MongoDB\Operation\CreateIndexes;
use MongoDB\Operation\DropIndexes;
use MongoDB\Operation\ListIndexes;
use MongoDB\Tests\CommandObserver;
use InvalidArgumentException;
use stdClass;

class CreateIndexesFunctionalTest extends FunctionalTestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/Operation/DatabaseCommandFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use MongoDB\Operation\DatabaseCommand;
use MongoDB\Tests\CommandObserver;
use stdClass;

class DatabaseCommandFunctionalTest extends FunctionalTestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/Operation/DeleteFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use MongoDB\Exception\BadMethodCallException;
use MongoDB\Operation\Delete;
use MongoDB\Tests\CommandObserver;
use stdClass;
use Symfony\Bridge\PhpUnit\SetUpTearDownTrait;

class DeleteFunctionalTest extends FunctionalTestCase
Expand Down
1 change: 0 additions & 1 deletion tests/Operation/DistinctFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use MongoDB\Driver\BulkWrite;
use MongoDB\Operation\Distinct;
use MongoDB\Tests\CommandObserver;
use stdClass;

class DistinctFunctionalTest extends FunctionalTestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/Operation/DropCollectionFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use MongoDB\Operation\InsertOne;
use MongoDB\Operation\ListCollections;
use MongoDB\Tests\CommandObserver;
use stdClass;

class DropCollectionFunctionalTest extends FunctionalTestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/Operation/DropDatabaseFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use MongoDB\Operation\InsertOne;
use MongoDB\Operation\ListDatabases;
use MongoDB\Tests\CommandObserver;
use stdClass;

class DropDatabaseFunctionalTest extends FunctionalTestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/Operation/DropIndexesFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use MongoDB\Operation\ListIndexes;
use MongoDB\Tests\CommandObserver;
use InvalidArgumentException;
use stdClass;

class DropIndexesFunctionalTest extends FunctionalTestCase
{
Expand Down
2 changes: 0 additions & 2 deletions tests/Operation/ExplainFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace MongoDB\Tests\Operation;

use MongoDB\Driver\BulkWrite;
use MongoDB\Collection;
use MongoDB\Operation\Count;
use MongoDB\Operation\CreateCollection;
use MongoDB\Operation\Distinct;
Expand All @@ -21,7 +20,6 @@
use MongoDB\Operation\UpdateMany;
use MongoDB\Operation\UpdateOne;
use MongoDB\Tests\CommandObserver;
use stdClass;

class ExplainFunctionalTest extends FunctionalTestCase
{
Expand Down
2 changes: 0 additions & 2 deletions tests/Operation/ExplainTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
namespace MongoDB\Tests\Operation;

use MongoDB\Exception\InvalidArgumentException;
use MongoDB\Operation\Count;
use MongoDB\Operation\Distinct;
use MongoDB\Operation\Explain;
use MongoDB\Operation\Explainable;

Expand Down
1 change: 0 additions & 1 deletion tests/Operation/FindAndModifyFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use MongoDB\Model\BSONDocument;
use MongoDB\Operation\FindAndModify;
use MongoDB\Tests\CommandObserver;
use stdClass;

class FindAndModifyFunctionalTest extends FunctionalTestCase
{
Expand Down
3 changes: 0 additions & 3 deletions tests/Operation/FindFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@

use MongoDB\Driver\BulkWrite;
use MongoDB\Driver\ReadPreference;
use MongoDB\Driver\WriteConcern;
use MongoDB\Operation\CreateCollection;
use MongoDB\Operation\CreateIndexes;
use MongoDB\Operation\Find;
use MongoDB\Tests\CommandObserver;
use Exception;
use stdClass;

class FindFunctionalTest extends FunctionalTestCase
{
Expand Down
3 changes: 0 additions & 3 deletions tests/Operation/FunctionalTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@

namespace MongoDB\Tests\Operation;

use MongoDB\Collection;
use MongoDB\Driver\ReadConcern;
use MongoDB\Driver\ReadPreference;
use MongoDB\Driver\WriteConcern;
use MongoDB\Operation\DropCollection;
use MongoDB\Tests\FunctionalTestCase as BaseFunctionalTestCase;
use Symfony\Bridge\PhpUnit\SetUpTearDownTrait;

Expand Down
1 change: 0 additions & 1 deletion tests/Operation/InsertManyFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use MongoDB\Model\BSONDocument;
use MongoDB\Operation\InsertMany;
use MongoDB\Tests\CommandObserver;
use stdClass;
use Symfony\Bridge\PhpUnit\SetUpTearDownTrait;

class InsertManyFunctionalTest extends FunctionalTestCase
Expand Down
1 change: 0 additions & 1 deletion tests/Operation/InsertOneFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use MongoDB\Model\BSONDocument;
use MongoDB\Operation\InsertOne;
use MongoDB\Tests\CommandObserver;
use stdClass;
use Symfony\Bridge\PhpUnit\SetUpTearDownTrait;

class InsertOneFunctionalTest extends FunctionalTestCase
Expand Down
1 change: 0 additions & 1 deletion tests/Operation/ListCollectionsFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use MongoDB\Operation\InsertOne;
use MongoDB\Operation\ListCollections;
use MongoDB\Tests\CommandObserver;
use stdClass;

class ListCollectionsFunctionalTest extends FunctionalTestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/Operation/ListDatabasesFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use MongoDB\Operation\InsertOne;
use MongoDB\Operation\ListDatabases;
use MongoDB\Tests\CommandObserver;
use stdClass;

class ListDatabasesFunctionalTest extends FunctionalTestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/Operation/ListIndexesFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use MongoDB\Operation\InsertOne;
use MongoDB\Operation\ListIndexes;
use MongoDB\Tests\CommandObserver;
use stdClass;

class ListIndexesFunctionalTest extends FunctionalTestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/Operation/MapReduceFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use MongoDB\Operation\Find;
use MongoDB\Operation\MapReduce;
use MongoDB\Tests\CommandObserver;
use stdClass;

class MapReduceFunctionalTest extends FunctionalTestCase
{
Expand Down
1 change: 0 additions & 1 deletion tests/Operation/UpdateFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use MongoDB\Exception\BadMethodCallException;
use MongoDB\Operation\Update;
use MongoDB\Tests\CommandObserver;
use stdClass;
use Symfony\Bridge\PhpUnit\SetUpTearDownTrait;

class UpdateFunctionalTest extends FunctionalTestCase
Expand Down
1 change: 0 additions & 1 deletion tests/SpecTests/ChangeStreamsSpecTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace MongoDB\Tests\SpecTests;

use MongoDB\ChangeStream;
use MongoDB\Client;
use MongoDB\Driver\Exception\Exception;
use MongoDB\Model\BSONDocument;
use ArrayIterator;
Expand Down
1 change: 0 additions & 1 deletion tests/SpecTests/CommandExpectations.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use ArrayIterator;
use LogicException;
use MultipleIterator;
use stdClass;

/**
* Spec test CommandStartedEvent expectations.
Expand Down
1 change: 0 additions & 1 deletion tests/SpecTests/DocumentsMatchConstraintTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace MongoDB\Tests\SpecTests;

use ArrayObject;
use MongoDB\Model\BSONArray;
use MongoDB\Tests\TestCase;
use PHPUnit\Framework\ExpectationFailedException;
Expand Down
Loading