Skip to content

Commit 8252163

Browse files
committed
Fix badge and add rector config
1 parent ff95796 commit 8252163

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<p align="center">
44
<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>
55
<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>
77
<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>
88
<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>
99
</p>

rector.php

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
};

0 commit comments

Comments
 (0)