Completed
Push — master ( 58ef41...4940a6 )
by Christoph, René
01:52
created

TestLogging   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 4 1
1
<?php
2
3
namespace RenePardon\GelfSupport\Commands;
4
5
use Exception;
6
use Illuminate\Console\Command;
7
8
/**
9
 * Class TestLogging
10
 *
11
 * @package RenePardon\GelfSupport\Commands
12
 */
13
class TestLogging extends Command
14
{
15
    /**
16
     * The console command name.
17
     *
18
     * @var string
19
     */
20
    protected $name = 'rp:gelf-support:test-logging';
21
22
    /**
23
     * The console command description.
24
     *
25
     * @var string
26
     */
27
    protected $description = 'Throw an exception to test the logging integration';
28
29
    /**
30
     * @throws Exception
31
     */
32
    public function handle()
33
    {
34
        throw new Exception('Test logging exception');
35
    }
36
}
37