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 GamesSavegame.
*
* @property int $id
* @property int $user_id
* @property int $gamefile_id
* @property int $slot_id
* @property mixed $save_data
* @property \Carbon\Carbon $created_at
* @property \Carbon\Carbon $updated_at
* @method static \Illuminate\Database\Query\Builder|\App\Models\GamesSavegame whereCreatedAt($value)
* @method static \Illuminate\Database\Query\Builder|\App\Models\GamesSavegame whereGamefileId($value)
* @method static \Illuminate\Database\Query\Builder|\App\Models\GamesSavegame whereId($value)
* @method static \Illuminate\Database\Query\Builder|\App\Models\GamesSavegame whereSaveData($value)
* @method static \Illuminate\Database\Query\Builder|\App\Models\GamesSavegame whereSlotId($value)
* @method static \Illuminate\Database\Query\Builder|\App\Models\GamesSavegame whereUpdatedAt($value)
* @method static \Illuminate\Database\Query\Builder|\App\Models\GamesSavegame whereUserId($value)
* @mixin \Eloquent
* @property-read \App\Models\GamesFile $gamefile
class GamesSavegame 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 = 'games_savegames';
protected $fillable = [
'user_id',
'gamefile_id',
'slot_id',
'save_data',
];
protected $guarded = [];
public function gamefile()
return $this->hasOne('App\Models\GamesFile', 'id', 'gamefile_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.