for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
<?php
namespace Spatie\QueryBuilder\Sorts;
use Illuminate\Database\Eloquent\Builder;
class SortsField implements Sort
{
public function __invoke(Builder $query, bool $descending, string $property)
$query->orderBy($property, $descending ? 'desc' : 'asc');
orderBy()
Illuminate\Database\Eloquent\Builder
enforceOrderBy()
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.
}
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.