Skip to content

Commit 64d0b48

Browse files
authored
Merge pull request #22 from peckadesign/blank-line-before-return
Prázdný řádek před returnem
2 parents 1fc5fcd + 29ed9f9 commit 64d0b48

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
"name": "pd/coding-standard",
33
"description": "Coding standard pro PeckaDesign",
44
"require": {
5-
"squizlabs/php_codesniffer": "3.2.*",
65
"php": "7.*",
7-
"slevomat/coding-standard": "4.5.*"
6+
"squizlabs/php_codesniffer": "3.2.*",
7+
"slevomat/coding-standard": "4.5.*",
8+
"escapestudios/symfony2-coding-standard": "3.*"
89
},
910
"license": "MIT",
1011
"authors": [

src/PeckaCodingStandard/ruleset.xml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" ?>
22
<ruleset name="PeckaDesign">
33

4-
<config name="installed_paths" value="../../slevomat/coding-standard"/>
5-
4+
<config name="installed_paths" value="../../slevomat/coding-standard,../../escapestudios/symfony2-coding-standard"/>
5+
66
<!-- Arrays -->
77
<rule ref="SlevomatCodingStandard.Arrays.TrailingArrayComma"/>
88

@@ -14,13 +14,13 @@
1414

1515
<!-- Exceptions -->
1616
<rule ref="SlevomatCodingStandard.Exceptions.DeadCatch"/>
17-
17+
1818
<!-- Files -->
1919
<rule ref="Generic.Files.ByteOrderMark"/>
20-
<rule ref="Generic.Files.LineEndings"/>
20+
<rule ref="Generic.Files.LineEndings"/>
2121
<rule ref="PSR2.Files.EndFileNewline"/>
2222
<rule ref="Zend.Files.ClosingTag"/>
23-
23+
2424
<!-- Functions -->
2525
<rule ref="Squiz.Functions.LowercaseFunctionKeywords"/>
2626

@@ -45,6 +45,9 @@
4545
<rule ref="Generic.PHP.ForbiddenFunctions"/>
4646
<rule ref="Generic.PHP.UpperCaseConstant"/>
4747

48+
<!-- NewLines -->
49+
<rule ref="Symfony.Formatting.BlankLineBeforeReturn"/>
50+
4851
<!-- WhiteSpace -->
4952
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent"/>
5053
<rule ref="Squiz.ControlStructures.ControlSignature"/>

0 commit comments

Comments
 (0)