Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Push — master ( f35a35...781975 )
by Cristian
04:48
created

Errors   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 53
rs 10
c 0
b 0
f 0
wmc 7
lcom 1
cbo 0

7 Methods

Rating   Name   Duplication   Size   Complexity  
A setErrorDefaults() 0 5 1
A groupedErrorsEnabled() 0 4 1
A inlineErrorsEnabled() 0 4 1
A enableGroupedErrors() 0 6 1
A disableGroupedErrors() 0 6 1
A enableInlineErrors() 0 6 1
A disableInlineErrors() 0 6 1
1
<?php
2
3
namespace Backpack\CRUD\PanelTraits;
4
5
trait Errors
6
{
7
    protected $groupedErrors = true;
8
    protected $inlineErrors = false;
9
10
    public function setErrorDefaults()
11
    {
12
        $this->groupedErrors = config('backpack.crud.show_grouped_errors', true);
13
        $this->inlineErrors = config('backpack.crud.show_inline_errors', false);
14
    }
15
16
    // Getters
17
18
    public function groupedErrorsEnabled()
0 ignored issues
show
Documentation introduced by
The return type could not be reliably inferred; please add a @return annotation.

Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a @return annotation as described here.

Loading history...
19
    {
20
        return $this->groupedErrors;
21
    }
22
23
    public function inlineErrorsEnabled()
0 ignored issues
show
Documentation introduced by
The return type could not be reliably inferred; please add a @return annotation.

Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a @return annotation as described here.

Loading history...
24
    {
25
        return $this->inlineErrors;
26
    }
27
28
    // Setters
29
30
    public function enableGroupedErrors()
31
    {
32
        $this->groupedErrors = true;
33
34
        return $this->groupedErrors;
35
    }
36
37
    public function disableGroupedErrors()
38
    {
39
        $this->groupedErrors = false;
40
41
        return $this->groupedErrors;
42
    }
43
44
    public function enableInlineErrors()
45
    {
46
        $this->inlineErrors = true;
47
48
        return $this->inlineErrors;
49
    }
50
51
    public function disableInlineErrors()
52
    {
53
        $this->inlineErrors = false;
54
55
        return $this->inlineErrors;
56
    }
57
}
58