for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Database;
use Illuminate\Support\Fluent;
// https://stackoverflow.com/a/55023852/489916
class PostgresGrammar extends \Illuminate\Database\Schema\Grammars\PostgresGrammar
{
/**
* Create the column definition for a citext type.
*
* @param Fluent $column
* @return string
*/
protected function typeCitext(Fluent $column)
$column
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
protected function typeCitext(/** @scrutinizer ignore-unused */ Fluent $column)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
return 'citext';
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.