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.
Passed
Branch master (c6c701)
by Petko
32:29 queued 29:18
created

Configuration::setWithoutWrite()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Petkopara\CrudGeneratorBundle\Configuration;
4
5
use Petkopara\CrudGeneratorBundle\Command\CrudGeneratorCommand;
6
7
class Configuration
8
{
9
10
    protected $baseTemplate = 'PetkoparaCrudGeneratorBundle::base.html.twig';
11
    protected $bundleViews = false;
12
    protected $filterType = CrudGeneratorCommand::FILTER_TYPE_INPUT;
13
    protected $withoutBulk = false;
14
    protected $withoutShow = false;
15
    protected $withoutWrite = false;
16
    protected $withoutSorting = false;
17
    protected $withoutPageSize = false;
18
    protected $overwrite = false;
19
    protected $routePrefix = '';
20
    protected $format = 'annotation';
21
22 6
    public function getCrudActions()
23
    {
24 6
        $actions = array('index');
25 6
        if ($this->withoutWrite === false) {
26 6
            $actions = array_merge($actions, array('new', 'edit', 'delete'));
27
28 6
            if ($this->withoutBulk === false) {
29 6
                array_push($actions, 'bulk');
30 6
            }
31 6
        }
32 6
        if ($this->withoutShow === false) {
33 6
            array_push($actions, 'show');
34 6
        }
35 6
        return $actions;
36
    }
37
38 6
    public function getBaseTemplate()
39
    {
40 6
        return $this->baseTemplate;
41
    }
42
43 6
    public function getBundleViews()
44
    {
45 6
        return $this->bundleViews;
46
    }
47
48 6
    public function getFilterType()
49
    {
50 6
        return $this->filterType;
51
    }
52
53 16
    public function setBaseTemplate($baseTemplate)
54
    {
55 16
        $this->baseTemplate = $baseTemplate;
56 16
        return $this;
57
    }
58
59 16
    public function setBundleViews($bundleViews)
60
    {
61 16
        $this->bundleViews = $bundleViews;
62 16
        return $this;
63
    }
64
65 15
    public function setFilterType($filterType)
66
    {
67 15
        $this->filterType = $filterType;
68 15
        return $this;
69
    }
70
71 6
    public function getWithoutBulk()
72
    {
73 6
        return $this->withoutBulk;
74
    }
75
76
    public function getWithoutShow()
77
    {
78
        return $this->withoutShow;
79
    }
80
81 15
    public function setWithoutBulk($withoutBulk)
82
    {
83 15
        $this->withoutBulk = $withoutBulk;
84 15
        return $this;
85
    }
86
87 15
    public function setWithoutShow($withoutShow)
88
    {
89 15
        $this->withoutShow = $withoutShow;
90 15
        return $this;
91
    }
92
    
93
    public function getWithoutWrite()
94
    {
95
        return $this->withoutWrite;
96
    }
97
98 6
    public function getOverwrite()
99
    {
100 6
        return $this->overwrite;
101
    }
102
103 6
    public function getRoutePrefix()
104
    {
105 6
        return $this->routePrefix;
106
    }
107
108 6
    public function getFormat()
109
    {
110 6
        return $this->format;
111
    }
112
113 15
    public function setWithoutWrite($withoutWrite)
114
    {
115 15
        $this->withoutWrite = $withoutWrite;
116 15
    }
117
118 18
    public function setOverwrite($overwrite)
119
    {
120 18
        $this->overwrite = $overwrite;
121 18
    }
122
123 21
    public function setRoutePrefix($routePrefix)
124
    {
125 21
        $this->routePrefix = $routePrefix;
126 21
    }
127
128 21
    public function setFormat($format)
129
    {
130 21
        $this->format = $format;
131 21
    }
132 6
    public function getWithoutSorting()
133
    {
134 6
        return $this->withoutSorting;
135
    }
136
137 15
    public function setWithoutSorting($withoutSorting)
138
    {
139 15
        $this->withoutSorting = $withoutSorting;
140 15
        return $this;
141
    }
142
    
143
    
144 6
    public function getWithoutPageSize()
145
    {
146 6
        return $this->withoutPageSize;
147
    }
148
149 15
    public function setWithoutPageSize($withoutPageSize)
150
    {
151 15
        $this->withoutPageSize = $withoutPageSize;
152 15
        return $this;
153
    }
154
155
156
157
158
159
160
}
161