Skip to content

Commit d6b3c6d

Browse files
committed
copy
1 parent 8e5880c commit d6b3c6d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

resources/posts/2018/2018-06-04-how-to-migrate-from-php-code-sniffer-to-easy-coding-standard.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,24 @@
22
id: 111
33
title: "How to Migrate From PHP_CodeSniffer to ECS in 7 Steps"
44
perex: |
5-
Last year, I helped [Shopsys Coding Standards](https://github.com/shopsys/coding-standards) and [LMC PHP Coding Standard](https://github.com/lmc-eu/php-coding-standard) to migrate from PHP_CodeSniffer to ECS.
5+
Last year, I helped [Shopsys CS](https://github.com/shopsys/coding-standards) and [LMC CS](https://github.com/lmc-eu/php-coding-standard) to migrate from PHP_CodeSniffer to ECS.
66
7+
There are a few simple A → B changes, but one has to know about them or will get stuck.
78
8-
There are **a few simple A → B changes**, but one has to know about them or will get stuck.
9-
10-
11-
**Do you also use PHP_CodeSniffer and give it EasyCodingStandard a try**? Today we look at how to migrate step by step.
9+
Do you also use PHP_CodeSniffer and give it ECS a try? Today we look at how to migrate step by step.
1210
1311
updated_since: "January 2023"
1412
updated_message: |
1513
Updated with ECS 12 and `ECSConfig::configure()` simple way to work with configs.
1614
---
1715

18-
ECS is a tool build on Symfony components that [combines PHP_CodeSniffer and PHP CS Fixer](/blog/2017/05/03/combine-power-of-php-code-sniffer-and-php-cs-fixer-in-3-lines/). It's easy to use from scratch:
16+
ECS is a PHP CLI tool that [combines PHP_CodeSniffer and PHP CS Fixer](/blog/2017/05/03/combine-power-of-php-code-sniffer-and-php-cs-fixer-in-3-lines/). It's easy to use from scratch:
1917

2018
```bash
2119
composer require symplify/easy-coding-standard --dev
2220
```
2321

24-
ECS uses simple config:
22+
ECS uses simple PHP config format:
2523

2624
```php
2725
// ecs.php
@@ -38,7 +36,9 @@ And runs as CLI command:
3836
vendor/bin/ecs
3937
```
4038

41-
But what if you already have PHP_CodeSniffer on your project and want to switch?
39+
<br>
40+
41+
Do you already have PHP_CodeSniffer on your project and want to switch? Let's jump right into it:
4242

4343
## 1. From String Codes to Autocompleted Classes
4444

0 commit comments

Comments
 (0)