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 PlayerFeedback.
*
* @property int $id
* @property int $gamefile_id
* @property int $user_id
* @property string $issue_desc
* @property string $known_patches
* @property string $steps_to
* @property int $savegame_slot
* @property \Carbon\Carbon|null $created_at
* @property \Carbon\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\PlayerFeedback whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\PlayerFeedback whereGamefileId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\PlayerFeedback whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\PlayerFeedback whereIssueDesc($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\PlayerFeedback whereKnownPatches($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\PlayerFeedback whereSavegameSlot($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\PlayerFeedback whereStepsTo($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\PlayerFeedback whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\PlayerFeedback whereUserId($value)
* @mixin \Eloquent
class PlayerFeedback 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_feedback';
protected $fillable = [
'gamefile_id',
'user_id',
'issue_desc',
'known_patches',
'steps_to',
'savegame_slot',
];
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.