for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* rmarchiv.tk
* (c) 2016-2017 by Marcel 'ryg' Hering
*/
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* Class PlayerFileHash.
*
* @property int $id
* @property string $filehash
* @property int $supported
* @property string $description
* @property \Carbon\Carbon $created_at
* @property \Carbon\Carbon $updated_at
* @method static \Illuminate\Database\Query\Builder|\App\Models\PlayerFileHash whereCreatedAt($value)
* @method static \Illuminate\Database\Query\Builder|\App\Models\PlayerFileHash whereDescription($value)
* @method static \Illuminate\Database\Query\Builder|\App\Models\PlayerFileHash whereFilehash($value)
* @method static \Illuminate\Database\Query\Builder|\App\Models\PlayerFileHash whereId($value)
* @method static \Illuminate\Database\Query\Builder|\App\Models\PlayerFileHash whereSupported($value)
* @method static \Illuminate\Database\Query\Builder|\App\Models\PlayerFileHash whereUpdatedAt($value)
* @mixin \Eloquent
class PlayerFileHash extends Model
{
public $timestamps = true;
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
will produce no issues.
protected $table = 'player_file_hashes';
protected $fillable = [
'filehash',
'supported',
'description',
];
protected $guarded = [];
}
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
will produce issues in the first and second line, while this second example
will produce no issues.