ExceptionLog
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 2
Bugs 1 Features 1
Metric Value
eloc 9
dl 0
loc 27
c 2
b 1
f 1
wmc 0
1
<?php
2
3
namespace Someshwer\Firewall\src\Entities;
4
5
use Illuminate\Database\Eloquent\Model;
0 ignored issues
show
Bug introduced by
The type Illuminate\Database\Eloquent\Model 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
/**
8
 * Class ExceptionLog.
9
 *
10
 * @author Someshwer
11
 * Date:15-09-2018
12
 */
13
class ExceptionLog extends Model
14
{
15
    /**
16
     * Table name.
17
     *
18
     * @var string
19
     */
20
    protected $table = 'exception_log';
21
22
    /**
23
     * Table columns.
24
     *
25
     * @var array
26
     */
27
    protected $fillable = ['path', 'method', 'uri', 'url', 'full_url', 'query',
28
        'file_name', 'http_host', 'http_user_agent', 'ip_address', 'all_request_data',
29
        'exception_data', ];
30
31
    /**
32
     * Type casting.
33
     *
34
     * @var array
35
     */
36
    protected $casts = [
37
        'query'            => 'json',
38
        'all_request_data' => 'json',
39
        'exception_data'   => 'json',
40
    ];
41
}
42