for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PeriodicNotice\Models;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\MorphTo;
use PeriodicNotice\Factories\PeriodicSentEntryFactory;
/**
* @property \JsonFieldCast\Json\SimpleJsonField $meta
*/
class PeriodicSentEntry extends Model
{
use HasFactory;
protected $guarded = [];
protected $casts = [
'meta' => \JsonFieldCast\Casts\SimpleJsonField::class,
];
public function getTable(): string
return config('periodic-notice.tables.periodic_sent_entries');
}
public function receiver(): MorphTo
return $this->morphTo();
public function sendable(): MorphTo
public function scopeGroup(Builder $query, string|array $group)
if (is_array($group)) {
is_array($group)
true
return $query->whereIn('group', $group);
return $query->where('group', '=', $group);
public static function factory(...$parameters): PeriodicSentEntryFactory
$parameters
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public static function factory(/** @scrutinizer ignore-unused */ ...$parameters): PeriodicSentEntryFactory
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return new PeriodicSentEntryFactory();