Passed
Push — next ( fe24b7...3ed8ff )
by Bas
08:01 queued 03:55
created

anonymous//TestSetup/Database/Migrations/2024_08_05_145621_create_events_table.php$0   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 21
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A 2024_08_05_145621_create_events_table.php$0 ➔ down() 0 3 1
A 2024_08_05_145621_create_events_table.php$0 ➔ up() 0 3 1
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('events', 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('events', 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
22
    /**
23
     * Reverse the migrations.
24
     *
25
     * @return void
26
     */
27
    public function down()
28
    {
29
        Schema::dropIfExists('events');
30
    }
31
};
32