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
Pull Request — master (#287)
by Owen
02:35
created

Errors::isInlineErrorsEnabled()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
3
namespace Backpack\CRUD\PanelTraits;
4
5
trait Errors
6
{
7
    protected $errorsGrouped = true;
8
    protected $errorsInline = false;
9
10
    public function setErrorDefaults()
11
    {
12
        $this->errorsGrouped = config('backpack.crud.errors_grouped', true);
13
        $this->errorsInline = config('backpack.crud.errors_inline', false);
14
    }
15
16
    public function enableGroupedErrors()
17
    {
18
        $this->errorsGrouped = true;
19
20
        return $this->errorsGrouped;
21
    }
22
23
    public function disableGroupedErrors()
24
    {
25
        $this->errorsGrouped = false;
26
27
        return $this->errorsGrouped;
28
    }
29
30
    public function isGroupedErrorsEnabled()
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...
31
    {
32
        return $this->errorsGrouped;
33
    }
34
35
    public function enableInlineErrors()
36
    {
37
        $this->errorsInline = true;
38
39
        return $this->errorsInline;
40
    }
41
42
    public function disableInlineErrors()
43
    {
44
        $this->errorsInline = false;
45
46
        return $this->errorsInline;
47
    }
48
49
    public function isInlineErrorsEnabled()
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...
50
    {
51
        return $this->errorsInline;
52
    }
53
}
54