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

D7Query   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 2
dl 0
loc 38
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A count() 0 4 1
A getList() 0 20 2
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