Skip to content

Commit eb69b3d

Browse files
author
Liran Cohen
committed
Cleanup.
1 parent 5fd65e9 commit eb69b3d

File tree

5 files changed

+4
-11
lines changed

5 files changed

+4
-11
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
composer.lock
44
/.idea
55
.DS_Store
6+
.php_cs.cache

database/factories/CustomFieldFactory.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
<?php
22

3-
43
namespace Database\Factories;
54

6-
75
use Faker\Provider\Lorem;
8-
use Faker\Provider\Text;
96
use Givebutter\LaravelCustomFields\Models\CustomField;
107
use Illuminate\Database\Eloquent\Factories\Factory;
11-
use Illuminate\Support\Arr;
12-
use Illuminate\Support\Str;
138

149
class CustomFieldFactory extends Factory
1510
{
@@ -22,7 +17,6 @@ class CustomFieldFactory extends Factory
2217

2318
public function definition()
2419
{
25-
2620
$typesRequireAnswers = [
2721
CustomField::TYPE_CHECKBOX => false,
2822
CustomField::TYPE_NUMBER => false,
@@ -111,6 +105,5 @@ public function withAnswers($answers = 3)
111105
}
112106

113107
throw new \Exception("withAnswers only accepts a number or an array");
114-
115108
}
116-
}
109+
}

src/Models/CustomField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace Givebutter\LaravelCustomFields\Models;
44

55
use Illuminate\Database\Eloquent\Factories\HasFactory;
6-
use Illuminate\Database\Eloquent\SoftDeletes;
76
use Illuminate\Database\Eloquent\Model;
7+
use Illuminate\Database\Eloquent\SoftDeletes;
88
use Illuminate\Validation\Rule;
99

1010
class CustomField extends Model

src/Validators/CustomFieldValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php
22

33
namespace Givebutter\LaravelCustomFields\Validators;
44

tests/TestCase.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Givebutter\Tests;
44

55
use Givebutter\LaravelCustomFields\LaravelCustomFieldsServiceProvider;
6-
use Givebutter\Tests\Support\Survey;
76
use Illuminate\Database\Schema\Blueprint;
87
use Orchestra\Testbench\TestCase as OrchestraTestCase;
98

0 commit comments

Comments
 (0)