Commit 84acf4e
committed
Docs: improve type declarations
This commit addresses the `@return` tag for all sniff `register()` methods. Future commits may follow for other parts of the codebase.
PHP native tokens will always be integers.
PHP_CodeSniffer polyfilled and PHP_CodeSniffer native tokens will always be strings.
While some sniffs only return one or the other, I've chosen to update these tags to be the same across all sniffs for consistency.1 parent 5b9078f commit 84acf4e
File tree
205 files changed
+213
-213
lines changed- src
- Sniffs
- Standards
- Generic/Sniffs
- Arrays
- Classes
- CodeAnalysis
- Commenting
- ControlStructures
- Debug
- Files
- Formatting
- Functions
- Metrics
- NamingConventions
- PHP
- Strings
- VersionControl
- WhiteSpace
- MySource/Sniffs
- Channels
- Debug
- Objects
- PHP
- Strings
- PEAR/Sniffs
- Classes
- Commenting
- ControlStructures
- Files
- Formatting
- Functions
- NamingConventions
- WhiteSpace
- PSR12/Sniffs
- Classes
- ControlStructures
- Files
- Functions
- Keywords
- Namespaces
- Operators
- Properties
- Traits
- PSR1/Sniffs
- Classes
- Files
- PSR2/Sniffs
- ControlStructures
- Files
- Methods
- Namespaces
- Squiz/Sniffs
- Arrays
- CSS
- Classes
- Commenting
- ControlStructures
- Debug
- Files
- Formatting
- Functions
- Objects
- Operators
- PHP
- Strings
- WhiteSpace
- Zend/Sniffs
- Debug
- Files
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
205 files changed
+213
-213
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
0 commit comments