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 License.
*
* @property int $id
* @property string $title
* @property string $icon
* @property \Carbon\Carbon|null $created_at
* @property \Carbon\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\License whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\License whereIcon($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\License whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\License whereTitle($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\License whereUpdatedAt($value)
* @mixin \Eloquent
class License 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 = 'licenses';
protected $fillable = [
'title',
'icon',
];
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.