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.

Well::small()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
/**
4
 * Well view helper.
5
 *
6
 * @author     Leandro Silva <[email protected]>
7
 *
8
 * @category   LosUi
9
 *
10
 * @license    https://github.com/Lansoweb/LosUi/blob/master/LICENSE MIT License
11
 *
12
 * @link       http://github.com/LansoWeb/LosUi
13
 * @link       http://getbootstrap.com/components/#wells
14
 */
15
namespace LosUi\View\Helper;
16
17
/**
18
 * Well view helper.
19
 *
20
 * @author     Leandro Silva <[email protected]>
21
 *
22
 * @category   LosUi
23
 *
24
 * @license    https://github.com/Lansoweb/LosUi/blob/master/LICENSE MIT License
25
 *
26
 * @link       http://github.com/LansoWeb/LosUi
27
 * @link       http://getbootstrap.com/components/#wells
28
 */
29
class Well
30
{
31
    protected $format = '<div class="well%s">%s</div>';
32
33
    public function __invoke($content = '', $class = '')
34
    {
35
        if ($content) {
36
            return $this->render($content, $class);
37
        }
38
39
        return $this;
40
    }
41
42
    public function large($content)
43
    {
44
        return $this->render($content, 'well-lg');
45
    }
46
47
    public function small($content)
48
    {
49
        return $this->render($content, 'well-sm');
50
    }
51
52
    public function render($content, $class = '')
53
    {
54
        if (! empty($class)) {
55
            $class = ' '.trim($class);
56
        }
57
58
        return sprintf($this->format, $class, $content);
59
    }
60
}
61