Skip to content

Commit aadd131

Browse files
authored
Merge pull request #2035 from solomon-ochepa/update-stubs-using-laravel-pint-standards
Update Stubs to Follow Laravel Pint Standards
2 parents ba4d44d + ef88115 commit aadd131

File tree

140 files changed

+219
-823
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+219
-823
lines changed

src/Commands/stubs/action-invoke.stub

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,5 @@ namespace $CLASS_NAMESPACE$;
44

55
class $CLASS$
66
{
7-
public function __invoke()
8-
{
9-
//
10-
}
7+
public function __invoke() {}
118
}

src/Commands/stubs/action.stub

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,5 @@ namespace $CLASS_NAMESPACE$;
44

55
class $CLASS$
66
{
7-
public function handle()
8-
{
9-
//
10-
}
7+
public function handle() {}
118
}

src/Commands/stubs/cast.stub

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ class $CLASS$ implements CastsAttributes
99
{
1010
/**
1111
* Cast the given value.
12-
*
13-
* @param array<string, mixed> $attributes
1412
*/
1513
public function get(Model $model, string $key, mixed $value, array $attributes): mixed
1614
{
@@ -19,8 +17,6 @@ class $CLASS$ implements CastsAttributes
1917

2018
/**
2119
* Prepare the given value for storage.
22-
*
23-
* @param array<string, mixed> $attributes
2420
*/
2521
public function set(Model $model, string $key, mixed $value, array $attributes): mixed
2622
{

src/Commands/stubs/channel.stub

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,13 @@ namespace $NAMESPACE$;
44

55
class $CLASS$
66
{
7-
87
/**
98
* Create a new channel instance.
109
*/
11-
public function __construct()
12-
{
13-
//
14-
}
15-
10+
public function __construct() {}
11+
1612
/**
1713
* Authenticate the user's access to the channel.
1814
*/
19-
public function join(Operator $user): array|bool
20-
{
21-
//
22-
}
23-
24-
}
15+
public function join(Operator $user): array|bool {}
16+
}

src/Commands/stubs/class-invoke.stub

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,5 @@ namespace $NAMESPACE$;
44

55
class $CLASS$
66
{
7-
public function __invoke()
8-
{
9-
//
10-
}
7+
public function __invoke() {}
118
}

src/Commands/stubs/class.stub

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,5 @@ namespace $NAMESPACE$;
44

55
class $CLASS$
66
{
7-
public function __construct()
8-
{
9-
//
10-
}
7+
public function __construct() {}
118
}

src/Commands/stubs/command.stub

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@ class $CLASS$ extends Command
2929
/**
3030
* Execute the console command.
3131
*/
32-
public function handle()
33-
{
34-
//
35-
}
32+
public function handle() {}
3633

3734
/**
3835
* Get the console command arguments.

src/Commands/stubs/component-class.stub

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ class $CLASS$ extends Component
1010
/**
1111
* Create a new component instance.
1212
*/
13-
public function __construct()
14-
{
15-
//
16-
}
13+
public function __construct() {}
1714

1815
/**
1916
* Get the view/contents that represent the component.

src/Commands/stubs/controller-plain.stub

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@ namespace $CLASS_NAMESPACE$;
44

55
use Illuminate\Routing\Controller;
66

7-
class $CLASS$ extends Controller
8-
{
9-
}
7+
class $CLASS$ extends Controller {}

src/Commands/stubs/controller.stub

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ class $CLASS$ extends Controller
2626
/**
2727
* Store a newly created resource in storage.
2828
*/
29-
public function store(Request $request)
30-
{
31-
//
32-
}
29+
public function store(Request $request) {}
3330

3431
/**
3532
* Show the specified resource.
@@ -50,16 +47,10 @@ class $CLASS$ extends Controller
5047
/**
5148
* Update the specified resource in storage.
5249
*/
53-
public function update(Request $request, $id)
54-
{
55-
//
56-
}
50+
public function update(Request $request, $id) {}
5751

5852
/**
5953
* Remove the specified resource from storage.
6054
*/
61-
public function destroy($id)
62-
{
63-
//
64-
}
55+
public function destroy($id) {}
6556
}

0 commit comments

Comments
 (0)