for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateNullableCmsApicustom extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::table('cms_apicustom', function (Blueprint $table) {
$table->string('permalink')->nullable()->change();
$table->string('tabel')->nullable()->change();
$table->string('aksi')->nullable()->change();
$table->string('kolom')->nullable()->change();
$table->string('orderby')->nullable()->change();
$table->string('sub_query_1')->nullable()->change();
$table->string('sql_where')->nullable()->change();
$table->string('nama')->nullable()->change();
$table->string('keterangan')->nullable()->change();
$table->string('parameter')->nullable()->change();
});
}
* Reverse the migrations.
public function down()
Schema::table('cms_settings', function (Blueprint $table) {
$table
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
Schema::table('cms_settings', function (/** @scrutinizer ignore-unused */ Blueprint $table) {
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
//
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.