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 (#141)
by Owen
03:09
created

AutoFocus::getAutoFocusOnFirstField()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
3
namespace Backpack\CRUD\PanelTraits;
4
5
trait AutoFocus
6
{
7
    public $autoFocusOnFirstField = true;
8
9
    public function getAutoFocusOnFirstField()
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...
10
    {
11
        return $this->autoFocusOnFirstField;
12
    }
13
14
    public function setAutoFocusOnFirstField($value)
15
    {
16
        return $this->autoFocusOnFirstField = (bool) $value;
17
    }
18
19
    public function enableAutoFocus()
20
    {
21
        return $this->setAutoFocusOnFirstField(true);
22
    }
23
24
    public function disableAutoFocus()
25
    {
26
        return $this->setAutoFocusOnFirstField(false);
27
    }
28
}
29