Skip to content

Use statement and doc block cleanup #196

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

Merged
merged 3 commits into from
Jun 20, 2016
Merged
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
2 changes: 0 additions & 2 deletions src/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@
use MongoDB\Driver\Manager;
use MongoDB\Driver\ReadConcern;
use MongoDB\Driver\ReadPreference;
use MongoDB\Driver\Server;
use MongoDB\Driver\WriteConcern;
use MongoDB\Exception\InvalidArgumentException;
use MongoDB\Model\IndexInfoIterator;
use MongoDB\Model\IndexInput;
use MongoDB\Operation\Aggregate;
use MongoDB\Operation\BulkWrite;
use MongoDB\Operation\CreateIndexes;
Expand Down
2 changes: 0 additions & 2 deletions src/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
use MongoDB\Collection;
use MongoDB\Driver\Cursor;
use MongoDB\Driver\Manager;
use MongoDB\Driver\Query;
use MongoDB\Driver\ReadConcern;
use MongoDB\Driver\ReadPreference;
use MongoDB\Driver\Server;
use MongoDB\Driver\WriteConcern;
use MongoDB\Exception\InvalidArgumentException;
use MongoDB\Model\CollectionInfoIterator;
Expand Down
8 changes: 4 additions & 4 deletions src/Model/CollectionInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ class CollectionInfo
private $info;

/**
* Constructor.
*
* @param array $info Collection info
*/
* Constructor.
*
* @param array $info Collection info
*/
public function __construct(array $info)
{
$this->info = $info;
Expand Down
8 changes: 4 additions & 4 deletions src/Model/DatabaseInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ class DatabaseInfo
private $info;

/**
* Constructor.
*
* @param array $info Database info
*/
* Constructor.
*
* @param array $info Database info
*/
public function __construct(array $info)
{
$this->info = $info;
Expand Down
8 changes: 4 additions & 4 deletions src/Model/IndexInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ class IndexInfo implements ArrayAccess
private $info;

/**
* Constructor.
*
* @param array $info Index info
*/
* Constructor.
*
* @param array $info Index info
*/
public function __construct(array $info)
{
$this->info = $info;
Expand Down
10 changes: 5 additions & 5 deletions src/Model/IndexInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ class IndexInput implements Serializable
private $index;

/**
* Constructor.
*
* @param array $index Index specification
* @throws InvalidArgumentException
*/
* Constructor.
*
* @param array $index Index specification
* @throws InvalidArgumentException
*/
public function __construct(array $index)
{
if ( ! isset($index['key'])) {
Expand Down
3 changes: 2 additions & 1 deletion src/Operation/DatabaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace MongoDB\Operation;

use MongoDB\Driver\Command;
use MongoDB\Driver\Cursor;
use MongoDB\Driver\ReadPreference;
use MongoDB\Driver\Server;
use MongoDB\Exception\InvalidArgumentException;
Expand Down Expand Up @@ -62,7 +63,7 @@ public function __construct($databaseName, $command, array $options = [])
*
* @see Executable::execute()
* @param Server $server
* @return integer
* @return Cursor
*/
public function execute(Server $server)
{
Expand Down