Passed
Push — master ( 5379a4...a2888f )
by Joao
04:49
created

NoSQLDriverInterface::update()

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 1
1
<?php
2
3
namespace ByJG\AnyDataset\Database;
4
5
interface NoSQLDriverInterface
6
{
7
8
    function getIterator($filter = null, $fields = null);
9
10
    function getCollection();
11
12
    function setCollection($collection);
13
14
    function insert($document);
15
16
    function update($document, $filter = null, $options = null);
17
18
    function getDbConnection();
19
20
    //function setAttribute($name, $value);
0 ignored issues
show
Unused Code Comprehensibility introduced by
70% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
21
    //function getAttribute($name);
0 ignored issues
show
Unused Code Comprehensibility introduced by
72% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
22
}
23