Skip to content

Commit be1f46c

Browse files
committed
Add Pint rules and fix
1 parent 7976353 commit be1f46c

File tree

2 files changed

+27
-21
lines changed

2 files changed

+27
-21
lines changed

pint.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"preset": "laravel",
3+
"rules": {
4+
"statement_indentation": true
5+
}
6+
}

src/Modifiers/DefaultValue.php

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,28 @@
66

77
class DefaultValue implements Modifier
88
{
9-
public function title(): string
10-
{
11-
return 'Default Value';
12-
}
9+
public function title(): string
10+
{
11+
return 'Default Value';
12+
}
1313

14-
public function description(): string
15-
{
16-
return "Set a default value for the field if the CSV column is empty or missing";
17-
}
14+
public function description(): string
15+
{
16+
return 'Set a default value for the field if the CSV column is empty or missing';
17+
}
1818

19-
public function settings(): array
20-
{
21-
return [
22-
'string' => [
23-
'type' => 'string',
24-
'title' => 'Default Value',
25-
],
26-
];
27-
}
19+
public function settings(): array
20+
{
21+
return [
22+
'string' => [
23+
'type' => 'string',
24+
'title' => 'Default Value',
25+
],
26+
];
27+
}
2828

29-
public function handle($value = null, array $settings = []): string
30-
{
31-
return empty($value) ? $settings['string'] : $value;
32-
}
29+
public function handle($value = null, array $settings = []): string
30+
{
31+
return empty($value) ? $settings['string'] : $value;
32+
}
3333
}

0 commit comments

Comments
 (0)