Passed
Pull Request — next (#137)
by Bas
04:08
created

  A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace TestSetup\Database\Migrations;
4
5
use Illuminate\Database\Migrations\Migration;
6
use LaravelFreelancerNL\Aranguent\Facades\Schema;
7
use LaravelFreelancerNL\Aranguent\Schema\Blueprint;
8
9
return new class () extends Migration {
10
    /**
11
     * Run the migrations.
12
     *
13
     * @return void
14
     */
15
    public function up()
16
    {
17
        Schema::create('locations', function (Blueprint $collection) {});
0 ignored issues
show
Unused Code introduced by
The parameter $collection is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

17
        Schema::create('locations', function (/** @scrutinizer ignore-unused */ Blueprint $collection) {});

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
18
    }
19
20
    /**
21
     * Reverse the migrations.
22
     *
23
     * @return void
24
     */
25
    public function down()
26
    {
27
        Schema::dropIfExists('locations');
28
    }
29
};
30