for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Liberation;
use Illuminate\Database\Query\Builder;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\ServiceProvider;
class LiberationServiceProvider extends ServiceProvider
{
/**
* Register services.
*
* @return void
*/
public function register()
$this->registerMacro();
}
* Bootstrap services.
public function boot()
//
protected function registerMacro()
Builder::macro('sql', function ($name, $queryParams = [], $bladeParams = []) {
$sql = Liberation::sql($name, $bladeParams);
sql()
Liberation\Liberation
__callStatic
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
/** @scrutinizer ignore-call */
return Db::select($sql, $queryParams);
});