for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Giuga\LaravelMailLog\Traits;
use Illuminate\Database\Eloquent\Model;
trait Occurrable {
public static function getOccuredProcessKey() {
return 'event.occurred_process';
}
public static function getOccuredEntityKey() {
return 'event.occurred_entity';
public function occurred(Model $entity = null, Model $process = null) {
$this->with(static::getOccuredEntityKey(), $entity);
with()
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
$this->/** @scrutinizer ignore-call */
with(static::getOccuredEntityKey(), $entity);
$this->with(static::getOccuredProcessKey(), $process);
return $this;