Skip to content

Commit 28ca723

Browse files
committed
Add minimumVisibility property to FunctionCommentSniff
1 parent b7db527 commit 28ca723

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ This sniff provides the option:
8989
<rule ref="Swivl.Commenting.FunctionComment">
9090
<properties>
9191
<property name="requiredPhpdoc" value="always"/>
92+
<property name="minimumVisibility" value="private"/>
9293
</properties>
9394
</rule>
9495
```

Swivl/Sniffs/Commenting/FunctionCommentSniff.php

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ class FunctionCommentSniff extends SquizFunctionCommentSniff
2121

2222
public $requiredPhpdoc = self::REQUIRED_PHPDOC_BY_MAP;
2323

24+
public $minimumVisibility = 'private';
25+
2426
/**
2527
* @var DocCommentSniff
2628
*/

0 commit comments

Comments
 (0)