for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace LivePersonInc\LiveEngageLaravel\Traits;
use LivePersonInc\LiveEngageLaravel\Facades\LiveEngageLaravel as LiveEngage;
trait Timeable
{
public function averageDurationMinutes()
return $this->totalDurationMinutes() / $this->count();
count()
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
return $this->totalDurationMinutes() / $this->/** @scrutinizer ignore-call */ count();
}
public function averageDurationSeconds()
return $this->totalDurationSeconds() / $this->count();
public function totalDurationMinutes($filter = [])
return $this->sum(function($item) use ($filter) {
$filter
This check looks for imports that have been defined, but are not used in the scope.
sum()
return $this->/** @scrutinizer ignore-call */ sum(function($item) use ($filter) {
return $item->info->minutes;
});
public function totalDurationSeconds($filter = [])
return $item->info->seconds;