File tree Expand file tree Collapse file tree 15 files changed +142
-133
lines changed Expand file tree Collapse file tree 15 files changed +142
-133
lines changed Original file line number Diff line number Diff line change 14
14
*/
15
15
class DocBlockEndingSniff implements Sniff {
16
16
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ public function register () {
21
+ return Tokens::$ commentTokens ;
22
+ }
23
+
17
24
/**
18
25
* @inheritDoc
19
26
*/
@@ -88,11 +95,4 @@ public function process(File $phpcsFile, $stackPtr) {
88
95
}
89
96
}
90
97
91
- /**
92
- * @inheritDoc
93
- */
94
- public function register () {
95
- return Tokens::$ commentTokens ;
96
- }
97
-
98
98
}
Original file line number Diff line number Diff line change @@ -19,6 +19,15 @@ class DocBlockParamAllowDefaultValueSniff extends AbstractSniff {
19
19
use CommentingTrait;
20
20
use SignatureTrait;
21
21
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ public function register () {
26
+ return [
27
+ T_FUNCTION ,
28
+ ];
29
+ }
30
+
22
31
/**
23
32
* @inheritDoc
24
33
*/
@@ -111,13 +120,4 @@ public function process(File $phpCsFile, $stackPointer) {
111
120
}
112
121
}
113
122
114
- /**
115
- * @inheritDoc
116
- */
117
- public function register () {
118
- return [
119
- T_FUNCTION ,
120
- ];
121
- }
122
-
123
123
}
Original file line number Diff line number Diff line change @@ -17,6 +17,15 @@ class DocBlockParamArraySniff extends AbstractSniff {
17
17
18
18
use CommentingTrait;
19
19
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ public function register () {
24
+ return [
25
+ T_FUNCTION ,
26
+ ];
27
+ }
28
+
20
29
/**
21
30
* @inheritDoc
22
31
*/
@@ -86,13 +95,4 @@ public function process(File $phpCsFile, $stackPointer) {
86
95
}
87
96
}
88
97
89
- /**
90
- * @inheritDoc
91
- */
92
- public function register () {
93
- return [
94
- T_FUNCTION ,
95
- ];
96
- }
97
-
98
98
}
Original file line number Diff line number Diff line change 13
13
*/
14
14
class DocBlockParamNoOpSniff extends AbstractSniff {
15
15
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ public function register () {
20
+ return [
21
+ T_FUNCTION ,
22
+ ];
23
+ }
24
+
16
25
/**
17
26
* @inheritDoc
18
27
*/
@@ -61,13 +70,4 @@ public function process(File $phpCsFile, $stackPointer) {
61
70
}
62
71
}
63
72
64
- /**
65
- * @inheritDoc
66
- */
67
- public function register () {
68
- return [
69
- T_FUNCTION ,
70
- ];
71
- }
72
-
73
73
}
Original file line number Diff line number Diff line change @@ -18,6 +18,15 @@ class DocBlockParamNotJustNullSniff extends AbstractSniff {
18
18
use CommentingTrait;
19
19
use SignatureTrait;
20
20
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ public function register () {
25
+ return [
26
+ T_FUNCTION ,
27
+ ];
28
+ }
29
+
21
30
/**
22
31
* @inheritDoc
23
32
*/
@@ -72,13 +81,4 @@ public function process(File $phpCsFile, $stackPointer) {
72
81
}
73
82
}
74
83
75
- /**
76
- * @inheritDoc
77
- */
78
- public function register () {
79
- return [
80
- T_FUNCTION ,
81
- ];
82
- }
83
-
84
84
}
Original file line number Diff line number Diff line change @@ -18,6 +18,15 @@ class DocBlockParamSniff extends AbstractSniff {
18
18
use CommentingTrait;
19
19
use SignatureTrait;
20
20
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ public function register () {
25
+ return [
26
+ T_FUNCTION ,
27
+ ];
28
+ }
29
+
21
30
/**
22
31
* @inheritDoc
23
32
*/
@@ -115,15 +124,6 @@ public function process(File $phpCsFile, $stackPointer) {
115
124
}
116
125
}
117
126
118
- /**
119
- * @inheritDoc
120
- */
121
- public function register () {
122
- return [
123
- T_FUNCTION ,
124
- ];
125
- }
126
-
127
127
/**
128
128
* //TODO: Replace with SignatureTrait
129
129
*
Original file line number Diff line number Diff line change 13
13
*/
14
14
class DocBlockPipeSpacingSniff extends AbstractSniff {
15
15
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ public function register () {
20
+ return [
21
+ T_DOC_COMMENT_STRING ,
22
+ ];
23
+ }
24
+
16
25
/**
17
26
* @inheritDoc
18
27
*/
@@ -57,13 +66,4 @@ public function process(File $phpcsFile, $stackPtr) {
57
66
}
58
67
}
59
68
60
- /**
61
- * @inheritDoc
62
- */
63
- public function register () {
64
- return [
65
- T_DOC_COMMENT_STRING ,
66
- ];
67
- }
68
-
69
69
}
Original file line number Diff line number Diff line change 13
13
*/
14
14
class DocBlockReturnSelfSniff extends AbstractSniff {
15
15
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ public function register () {
20
+ return [
21
+ T_CLASS ,
22
+ T_INTERFACE ,
23
+ T_TRAIT ,
24
+ T_FUNCTION ,
25
+ T_VARIABLE ,
26
+ ];
27
+ }
28
+
16
29
/**
17
30
* @inheritDoc
18
31
*/
@@ -62,19 +75,6 @@ public function process(File $phpCsFile, $stackPointer) {
62
75
}
63
76
}
64
77
65
- /**
66
- * @inheritDoc
67
- */
68
- public function register () {
69
- return [
70
- T_CLASS ,
71
- T_INTERFACE ,
72
- T_TRAIT ,
73
- T_FUNCTION ,
74
- T_VARIABLE ,
75
- ];
76
- }
77
-
78
78
/** @noinspection MoreThanThreeArgumentsInspection */
79
79
80
80
/**
Original file line number Diff line number Diff line change @@ -18,6 +18,13 @@ class DocBlockReturnVoidSniff extends AbstractSniff {
18
18
19
19
use CommentingTrait;
20
20
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ public function register () {
25
+ return [T_FUNCTION ];
26
+ }
27
+
21
28
/**
22
29
* @inheritDoc
23
30
*/
@@ -78,13 +85,6 @@ public function process(File $phpcsFile, $stackPtr) {
78
85
$ this ->addReturnAnnotation ($ phpcsFile , $ docBlockEndIndex , $ returnType );
79
86
}
80
87
81
- /**
82
- * @inheritDoc
83
- */
84
- public function register () {
85
- return [T_FUNCTION ];
86
- }
87
-
88
88
/**
89
89
* @param \PHP_CodeSniffer\Files\File $phpcsFile
90
90
* @param int $index
Original file line number Diff line number Diff line change 13
13
*/
14
14
class DocBlockShortTypeSniff extends AbstractSniff {
15
15
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ public function register () {
20
+ return [
21
+ T_CLASS ,
22
+ T_INTERFACE ,
23
+ T_TRAIT ,
24
+ T_FUNCTION ,
25
+ T_VARIABLE ,
26
+ ];
27
+ }
28
+
16
29
/**
17
30
* @inheritDoc
18
31
*/
@@ -59,19 +72,6 @@ public function process(File $phpCsFile, $stackPointer) {
59
72
}
60
73
}
61
74
62
- /**
63
- * @inheritDoc
64
- */
65
- public function register () {
66
- return [
67
- T_CLASS ,
68
- T_INTERFACE ,
69
- T_TRAIT ,
70
- T_FUNCTION ,
71
- T_VARIABLE ,
72
- ];
73
- }
74
-
75
75
/** @noinspection MoreThanThreeArgumentsInspection */
76
76
77
77
/**
You can’t perform that action at this time.
0 commit comments