Commit 0cf95ce2 authored by Jeremy Mikola's avatar Jeremy Mikola

PHPLIB-44: php-cs-fixer fix src/ --level=psr2

parent a04c7e14
This diff is collapsed.
<?php
namespace MongoDB;
class DeleteResult {
class DeleteResult
{
protected $wr;
function __construct(\MongoDB\WriteResult $wr) {
public function __construct(\MongoDB\WriteResult $wr)
{
$this->wr = $wr;
}
function getDeletedCount() {
public function getDeletedCount()
{
return $this->wr->getDeletedCount();
}
}
<?php
namespace MongoDB;
class InsertResult {
class InsertResult
{
protected $wr;
function __construct(\MongoDB\WriteResult $wr, \BSON\ObjectId $id = null) {
public function __construct(\MongoDB\WriteResult $wr, \BSON\ObjectId $id = null)
{
$this->wr = $wr;
$this->id = $id;
}
function getInsertedId() {
public function getInsertedId()
{
return $this->id;
}
}
<?php
namespace MongoDB;
class UpdateResult {
class UpdateResult
{
protected $wr;
function __construct(\MongoDB\WriteResult $wr) {
public function __construct(\MongoDB\WriteResult $wr)
{
$this->wr = $wr;
}
function getMatchedCount() {
public function getMatchedCount()
{
return $this->wr->getMatchedCount();
}
function getModifiedCount() {
public function getModifiedCount()
{
return $this->wr->getModifiedCount();
}
function getUpsertedId() {
public function getUpsertedId()
{
return $this->wr->getUpsertedIds()[0];
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment