File tree 2 files changed +30
-1
lines changed
2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 3
3
<p align =" center " >
4
4
<a href =" https://phpchat.co " ><img src =" https://img.shields.io/badge/Slack-PHP%20Chat-5c6aaa.svg?logo=slack&labelColor=4A154B&style=for-the-badge " alt =" Join PHP Chat " /></a >
5
5
<a href =" https://t.me/PHPChatCo " ><img src =" https://img.shields.io/badge/Chat-on%20Telegram-2CA5E0.svg?logo=telegram&style=for-the-badge " alt =" Chat on Telegram " /></a >
6
- <a href =" https://github.com/telegram-bot-sdk/laravel/actions " ><img src =" https://img.shields.io/github/workflow/status/telegram-bot-sdk/laravel/CI.svg ?style=for-the-badge " alt =" Build Status " /></a >
6
+ <a href =" https://github.com/telegram-bot-sdk/laravel/actions " ><img src =" https://img.shields.io/github/actions/ workflow/status/telegram-bot-sdk/laravel/ci.yml ?style=for-the-badge " alt =" Build Status " /></a >
7
7
<a href =" https://github.com/telegram-bot-sdk/laravel/releases " ><img src =" https://img.shields.io/github/release/telegram-bot-sdk/laravel.svg?style=for-the-badge " alt =" Latest Version " /></a >
8
8
<a href =" https://packagist.org/packages/telegram-bot-sdk/laravel " ><img src =" https://img.shields.io/packagist/dt/telegram-bot-sdk/laravel.svg?style=for-the-badge " alt =" Total Downloads " /></a >
9
9
</p >
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+
5
+ use Rector \CodeQuality \Rector \Class_ \InlineConstructorDefaultToPropertyRector ;
6
+ use Rector \Config \RectorConfig ;
7
+ use Rector \Set \ValueObject \LevelSetList ;
8
+ use Rector \Set \ValueObject \SetList ;
9
+
10
+ return static function (RectorConfig $ rectorConfig ): void {
11
+ $ rectorConfig ->paths ([
12
+ __DIR__ .'/routes ' ,
13
+ __DIR__ .'/src ' ,
14
+ ]);
15
+
16
+ $ rectorConfig ->importNames (importDocBlockNames: false );
17
+
18
+ $ rectorConfig ->rules ([
19
+ InlineConstructorDefaultToPropertyRector::class,
20
+ ]);
21
+
22
+ $ rectorConfig ->sets ([
23
+ LevelSetList::UP_TO_PHP_81 ,
24
+ SetList::CODE_QUALITY ,
25
+ SetList::DEAD_CODE ,
26
+ SetList::EARLY_RETURN ,
27
+ SetList::TYPE_DECLARATION ,
28
+ ]);
29
+ };
You can’t perform that action at this time.
0 commit comments