Passed
Push — master ( 66c95d...d81f9c )
by devosc
05:21
created

ExceptionLayout   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A exception() 0 3 1
1
<?php
2
/**
3
 *
4
 */
5
6
namespace Mvc5\Request\Exception\Config;
7
8
use Mvc5\Arg;
9
use Mvc5\View\Config\ViewLayout;
10
11
trait ExceptionLayout
12
{
13
    /**
14
     *
15
     */
16
    use ViewLayout;
17
18
    /**
19
     * @return \Throwable
20
     */
21
    function exception() : \Throwable
1 ignored issue
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
22
    {
23
        return $this[Arg::EXCEPTION];
24
    }
25
}
26