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 PlayerFileGamefileRel.
*
* @property int $id
* @property int $gamefile_id
* @property int $file_hash_id
* @property string $orig_filename
* @property \Carbon\Carbon $created_at
* @property \Carbon\Carbon $updated_at
* @method static \Illuminate\Database\Query\Builder|\App\Models\PlayerFileGamefileRel whereCreatedAt($value)
* @method static \Illuminate\Database\Query\Builder|\App\Models\PlayerFileGamefileRel whereFileHashId($value)
* @method static \Illuminate\Database\Query\Builder|\App\Models\PlayerFileGamefileRel whereGamefileId($value)
* @method static \Illuminate\Database\Query\Builder|\App\Models\PlayerFileGamefileRel whereId($value)
* @method static \Illuminate\Database\Query\Builder|\App\Models\PlayerFileGamefileRel whereOrigFilename($value)
* @method static \Illuminate\Database\Query\Builder|\App\Models\PlayerFileGamefileRel whereUpdatedAt($value)
* @mixin \Eloquent
* @property-read \App\Models\PlayerFileHash $filehash
class PlayerFileGamefileRel 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_gamefile_rel';
protected $fillable = [
'gamefile_id',
'file_hash_id',
'orig_filename',
];
protected $guarded = [];
public function filehash()
return $this->hasOne('App\Models\PlayerFileHash', 'id', 'file_hash_id');
}
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.