PlayerFileHash
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 0
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 12
1
<?php
2
3
/*
4
 * rmarchiv.tk
5
 * (c) 2016-2017 by Marcel 'ryg' Hering
6
 */
7
8
namespace App\Models;
9
10
use Illuminate\Database\Eloquent\Model;
11
12
/**
13
 * Class PlayerFileHash.
14
 *
15
 * @property int $id
16
 * @property string $filehash
17
 * @property int $supported
18
 * @property string $description
19
 * @property \Carbon\Carbon $created_at
20
 * @property \Carbon\Carbon $updated_at
21
 * @method static \Illuminate\Database\Query\Builder|\App\Models\PlayerFileHash whereCreatedAt($value)
22
 * @method static \Illuminate\Database\Query\Builder|\App\Models\PlayerFileHash whereDescription($value)
23
 * @method static \Illuminate\Database\Query\Builder|\App\Models\PlayerFileHash whereFilehash($value)
24
 * @method static \Illuminate\Database\Query\Builder|\App\Models\PlayerFileHash whereId($value)
25
 * @method static \Illuminate\Database\Query\Builder|\App\Models\PlayerFileHash whereSupported($value)
26
 * @method static \Illuminate\Database\Query\Builder|\App\Models\PlayerFileHash whereUpdatedAt($value)
27
 * @mixin \Eloquent
28
 */
29
class PlayerFileHash extends Model
30
{
31
    public $timestamps = true;
0 ignored issues
show
Coding Style introduced by
Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space

This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.

To visualize

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
32
    protected $table = 'player_file_hashes';
0 ignored issues
show
Coding Style introduced by
Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space

This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.

To visualize

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
33
    protected $fillable = [
34
        'filehash',
35
        'supported',
36
        'description',
37
    ];
38
39
    protected $guarded = [];
40
}
41