Skip to content

Commit ec5f359

Browse files
Update squizlabs/php_codesniffer and use PSR-12
2 parents 2db2ce1 + 05a6feb commit ec5f359

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33

44
This repository contains the ruleset for the PHP code we develop at [FLYERALARM](https://flyeralarm.com).
5-
It mostly consists of PSR-2 with some custom additions. The rules are enforced with the help of squizlabs/PHP_CodeSniffer
5+
It mostly consists of PSR-12 with some custom additions. The rules are enforced with the help of squizlabs/PHP_CodeSniffer
66

77
The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”,
88
“SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in this document are to be
99
interpreted as described in [RFC 2119](http://www.ietf.org/rfc/rfc2119.txt).
1010

11-
## Custom Rules in addition to PSR-2
11+
## Custom Rules in addition to PSR-12
1212

1313
* Variable names MUST be in lowerCamelCase
1414
* Yoda conditions MUST NOT be used

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
],
1616
"minimum-stability": "stable",
1717
"require": {
18-
"squizlabs/php_codesniffer": "^3.0"
18+
"squizlabs/php_codesniffer": "^3.5"
1919
},
2020
"bin": [
2121
"bin/php-code-validator"

composer.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ruleset.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<ruleset name="FLYERALARM Coding Guidelines">
33
<description>A custom coding standard for FLYERALARM</description>
4-
<rule ref="PSR2"/>
4+
<rule ref="PSR12"/>
55
<rule ref="Generic.Formatting.SpaceAfterCast"/>
66
<rule ref="Generic.Arrays.DisallowLongArraySyntax.Found"/>
77
<rule ref="Generic.PHP.DisallowShortOpenTag"/>

0 commit comments

Comments
 (0)