for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Staudenmeir\LaravelAdjacencyList\Query\Grammars;
use Illuminate\Database\Eloquent\Model;
trait OrdersByPath
{
protected $model;
public function __construct(Model $model)
$this->model = $model;
}
/**
* Compile an "order by path" clause.
*
* @return string
*/
public function compileOrderByPath()
$path = $this->model->getPathName();
return $this->wrap($path) . ' asc';
wrap()
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
return $this->/** @scrutinizer ignore-call */ wrap($path) . ' asc';