EotvosCollegium / mars

Missing function/class method doc comment PHP-D1002
Documentation
Minor
8 days ago2 years old
Doc comment missing for class method color
293    }
294
295
296    public function color(): string297    {
298        return match ($this->name) {
299            self::SYS_ADMIN => 'pink',
Doc comment missing for class method objects
147            ->withPivot(['object_id', 'workshop_id'])->using(RoleUser::class);
148    }
149
150    public function objects(): HasMany151    {
152        return $this->hasMany(RoleObject::class, 'role_id');
153    }
Doc comment missing for class method users
141
142    public $timestamps = false;
143
144    public function users(): BelongsToMany145    {
146        return $this->belongsToMany(User::class, 'role_users')
147            ->withPivot(['object_id', 'workshop_id'])->using(RoleUser::class);
Doc comment missing for class method roles
 14 */
 15trait HasRoles
 16{
 17    abstract public function roles(): BelongsToMany; 18
 19    /**
 20     * Scope a query to only include users with the given role.
Doc comment missing for class method before
 14{
 15    use HandlesAuthorization;
 16
 17    public function before(User $user) 18    {
 19        if ($user->isAdmin()) {
 20            return true;