for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Staudenmeir\LaravelCte\Query\Grammars\Traits;
use Illuminate\Database\Query\Builder;
trait CompilesSqlServerExpressions
{
use CompilesExpressions {
compileSelect as compileSelectParent;
}
/**
* Compile a select query into SQL.
*
* @param \Illuminate\Database\Query\Builder $query
* @return string
*/
public function compileSelect(Builder $query)
if ($query->offset && empty($query->orders)) {
$query->orders[] = ['sql' => '(SELECT 0)'];
return $this->compileSelectParent($query);
* Get the "recursive" keyword.
* @param array $expressions
protected function recursiveKeyword(array $expressions)
$expressions
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
protected function recursiveKeyword(/** @scrutinizer ignore-unused */ array $expressions)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return '';
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.