Command   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 12
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A logError() 0 4 1
A logInfo() 0 4 1
1
<?php
2
3
namespace App\Console\Commands;
4
5
abstract class Command extends \Illuminate\Console\Command
6
{
7
    protected function logInfo($msg)
8
    {
9
        $this->info($msg);
10
        \Log::info($msg);
11
    }
12
13
    protected function logError($msg)
14
    {
15
        $this->error($msg);
16
        \Log::error($msg);
17
    }
18
}
19