GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

ScopeProcessor   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A buildScope() 0 4 1
A processSourceInfo() 0 4 1
A processSegments() 0 4 1
1
<?php
2
3
namespace Pinq\Providers\DSL\Compilation\Processors;
4
5
use Pinq\Queries;
6
7
/**
8
 * Implementation of the scope processor.
9
 *
10
 * @author Elliot Levin <[email protected]>
11
 */
12
abstract class ScopeProcessor implements IScopeProcessor
13
{
14
    /**
15
     * @var Queries\IScope
16
     */
17
    protected $scope;
18
19
    public function __construct(Queries\IScope $scope)
20
    {
21
        $this->scope = $scope;
22
    }
23
24
    public function buildScope()
25
    {
26
        return new Queries\Scope($this->processSourceInfo($this->scope->getSourceInfo()), $this->processSegments($this->scope->getSegments()));
27
    }
28
29
    /**
30
     * @param Queries\ISourceInfo $sourceInfo
31
     *
32
     * @return Queries\ISourceInfo
33
     */
34
    protected function processSourceInfo(Queries\ISourceInfo $sourceInfo)
35
    {
36
        return $sourceInfo;
37
    }
38
39
    /**
40
     * @param Queries\ISegment[] $segments
41
     *
42
     * @return Queries\ISegment[]
43
     */
44
    protected function processSegments(array $segments)
45
    {
46
        return $segments;
47
    }
48
}
49