Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-php-library
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sinan
mongo-php-library
Commits
0cf95ce2
Commit
0cf95ce2
authored
Feb 19, 2015
by
Jeremy Mikola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PHPLIB-44: php-cs-fixer fix src/ --level=psr2
parent
a04c7e14
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
97 additions
and
59 deletions
+97
-59
Collection.php
src/Collection.php
+75
-42
DeleteResult.php
src/DeleteResult.php
+6
-5
InsertResult.php
src/InsertResult.php
+6
-4
UpdateResult.php
src/UpdateResult.php
+10
-8
No files found.
src/Collection.php
View file @
0cf95ce2
This diff is collapsed.
Click to expand it.
src/DeleteResult.php
View file @
0cf95ce2
<?php
<?php
namespace
MongoDB
;
namespace
MongoDB
;
class
DeleteResult
{
class
DeleteResult
{
protected
$wr
;
protected
$wr
;
function
__construct
(
\MongoDB\WriteResult
$wr
)
{
public
function
__construct
(
\MongoDB\WriteResult
$wr
)
{
$this
->
wr
=
$wr
;
$this
->
wr
=
$wr
;
}
}
function
getDeletedCount
()
{
public
function
getDeletedCount
()
{
return
$this
->
wr
->
getDeletedCount
();
return
$this
->
wr
->
getDeletedCount
();
}
}
}
}
src/InsertResult.php
View file @
0cf95ce2
<?php
<?php
namespace
MongoDB
;
namespace
MongoDB
;
class
InsertResult
{
class
InsertResult
{
protected
$wr
;
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
->
wr
=
$wr
;
$this
->
id
=
$id
;
$this
->
id
=
$id
;
}
}
function
getInsertedId
()
{
public
function
getInsertedId
()
{
return
$this
->
id
;
return
$this
->
id
;
}
}
}
}
src/UpdateResult.php
View file @
0cf95ce2
<?php
<?php
namespace
MongoDB
;
namespace
MongoDB
;
class
UpdateResult
{
class
UpdateResult
{
protected
$wr
;
protected
$wr
;
function
__construct
(
\MongoDB\WriteResult
$wr
)
{
public
function
__construct
(
\MongoDB\WriteResult
$wr
)
{
$this
->
wr
=
$wr
;
$this
->
wr
=
$wr
;
}
}
function
getMatchedCount
()
{
public
function
getMatchedCount
()
{
return
$this
->
wr
->
getMatchedCount
();
return
$this
->
wr
->
getMatchedCount
();
}
}
function
getModifiedCount
()
{
public
function
getModifiedCount
()
{
return
$this
->
wr
->
getModifiedCount
();
return
$this
->
wr
->
getModifiedCount
();
}
}
function
getUpsertedId
()
{
public
function
getUpsertedId
()
{
return
$this
->
wr
->
getUpsertedIds
()[
0
];
return
$this
->
wr
->
getUpsertedIds
()[
0
];
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment