File tree Expand file tree Collapse file tree 3 files changed +10
-26
lines changed
Expand file tree Collapse file tree 3 files changed +10
-26
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ class VariableCommentUnitTest
8383 * @see anotherFunctions()
8484 * @see
8585 */
86- public $ singleLineFullStopShortComment = '' ;
86+ public $ singleLineFullStopShortComment2 = '' ;
8787
8888
8989 /**
@@ -94,14 +94,6 @@ class VariableCommentUnitTest
9494 */
9595 public $ missingSinceTag = '' ;
9696
97-
98- /**
99- * T_VARIABLE check, without scope.
100- *
101- * @var string
102- */
103- $ variableCheck = '' ;
104-
10597 /**
10698 * T_VARIABLE check, var in string and in function.
10799 *
@@ -114,8 +106,8 @@ class VariableCommentUnitTest
114106 {
115107 $ var4 = 'A normal variable ' ;
116108 $ var5 = PHP_CodeSniffer_Tokens::$ operators ;
117- echo "Printing $ var1 $ var2 and unknown $ var3 in a double quoted string \n" ;
118- foreach (self :: $ _array as $ index => $ content ) {
109+ echo "Printing $ var1 $ var2 in a double quoted string \n" ;
110+ foreach ([] as $ index => $ content ) {
119111 echo $ content ;
120112 }
121113
@@ -128,7 +120,7 @@ class VariableCommentUnitTest
128120 *
129121 *
130122 */
131- $ emptyVarDoc = '' ;
123+ public $ emptyVarDoc = '' ;
132124 /**
133125 * @var int
134126 */
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ class VariableCommentUnitTest
8383 * @see anotherFunctions()
8484 * @see
8585 */
86- public $singleLineFullStopShortComment = '';
86+ public $singleLineFullStopShortComment2 = '';
8787
8888
8989 /**
@@ -94,14 +94,6 @@ class VariableCommentUnitTest
9494 */
9595 public $missingSinceTag = '';
9696
97-
98- /**
99- * T_VARIABLE check, without scope.
100- *
101- * @var string
102- */
103- $variableCheck = '';
104-
10597 /**
10698 * T_VARIABLE check, var in string and in function.
10799 *
@@ -114,8 +106,8 @@ class VariableCommentUnitTest
114106 {
115107 $var4 = 'A normal variable';
116108 $var5 = PHP_CodeSniffer_Tokens::$operators;
117- echo "Printing $var1 $var2 and unknown $var3 in a double quoted string\n";
118- foreach (self::$_array as $index => $content) {
109+ echo "Printing $var1 $var2 in a double quoted string\n";
110+ foreach ([] as $index => $content) {
119111 echo $content;
120112 }
121113
@@ -128,7 +120,7 @@ class VariableCommentUnitTest
128120 *
129121 *
130122 */
131- $emptyVarDoc = '';
123+ public $emptyVarDoc = '';
132124
133125 /**
134126 * @var int
Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ public function getErrorList()
2222 64 => 1 ,
2323 73 => 1 ,
2424 84 => 1 ,
25- 130 => 1 ,
26- 132 => 1 ,
25+ 122 => 1 ,
26+ 124 => 1 ,
2727 );
2828 }
2929
You can’t perform that action at this time.
0 commit comments