Completed
Push — master ( f7e861...136cb7 )
by Nekrasov
02:32
created

D7Query::getList()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 20
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 20
rs 9.4285
c 0
b 0
f 0
nc 2
cc 2
eloc 5
nop 0
1
<?php
2
3
namespace Arrilot\BitrixModels\Queries;
4
5
use Illuminate\Support\Collection;
6
7
class D7Query extends BaseQuery
8
{
9
    /**
10
     * Get count of users that match $filter.
11
     *
12
     * @return int
13
     */
14
    public function count()
15
    {
16
        // TODO: Implement count() method.
17
    }
18
    
19
    /**
20
     * Get list of items.
21
     *
22
     * @return Collection
23
     */
24
    public function getList()
25
    {
26
        if ($this->queryShouldBeStopped) {
27
            return new Collection();
28
        }
29
    
30
        $rows = [];
31
//        $rsSections = $this->bxObject->getList(
0 ignored issues
show
Unused Code Comprehensibility introduced by
57% 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...
32
//            $this->sort,
33
//            $this->normalizeFilter(),
34
//            $this->countElements,
35
//            $this->normalizeSelect(),
36
//            $this->navigation
37
//        );
38
//        while ($arSection = $rsSections->Fetch()) {
39
//            $this->addItemToResultsUsingKeyBy($sections, new $this->modelName($arSection['ID'], $arSection));
40
//        }
41
    
42
        return new Collection($rows);
43
    }
44
}
45