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   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 24
rs 10
wmc 4
lcom 1
cbo 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getAutoFocusOnFirstField() 0 4 1
A setAutoFocusOnFirstField() 0 4 1
A enableAutoFocus() 0 4 1
A disableAutoFocus() 0 4 1
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