Completed
Push — master ( 2beeb5...b9673c )
by Alexander
03:30
created

helpers.php ➔ responder()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 2
c 1
b 1
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
3
use Flugg\Responder\Contracts\Responder;
4
5
if ( ! function_exists( 'responder' ) ) {
6
7
    /**
8
     * A helper method to quickly resolve the responder out of the service container.
9
     *
10
     * @return Responder
11
     */
12
    function responder()
13
    {
14
        return app( Responder::class );
15
    }
16
}