Passed
Push — master ( de070a...e0aded )
by Dan Michael O.
06:03
created

Command   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 12
rs 10
c 0
b 0
f 0
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
0 ignored issues
show
Bug introduced by
The type Illuminate\Console\Command was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
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