@@ -44,7 +44,7 @@ |
||
44 | 44 | /** |
45 | 45 | * Returns an array of tokens this test wants to listen for. |
46 | 46 | * |
47 | - * @return array |
|
47 | + * @return string[] |
|
48 | 48 | */ |
49 | 49 | public function register() |
50 | 50 | { |
@@ -55,7 +55,7 @@ |
||
55 | 55 | /** |
56 | 56 | * Returns the token types that this sniff is interested in. |
57 | 57 | * |
58 | - * @return int[] |
|
58 | + * @return string[] |
|
59 | 59 | */ |
60 | 60 | public function register() |
61 | 61 | { |
@@ -44,7 +44,7 @@ |
||
44 | 44 | /** |
45 | 45 | * Returns an array of tokens this test wants to listen for. |
46 | 46 | * |
47 | - * @return array |
|
47 | + * @return string[] |
|
48 | 48 | */ |
49 | 49 | public function register() |
50 | 50 | { |
@@ -44,7 +44,7 @@ |
||
44 | 44 | /** |
45 | 45 | * Returns an array of tokens this test wants to listen for. |
46 | 46 | * |
47 | - * @return array |
|
47 | + * @return string[] |
|
48 | 48 | */ |
49 | 49 | public function register() |
50 | 50 | { |
@@ -41,7 +41,7 @@ |
||
41 | 41 | /** |
42 | 42 | * Returns an array of tokens this test wants to listen for. |
43 | 43 | * |
44 | - * @return array |
|
44 | + * @return integer[] |
|
45 | 45 | */ |
46 | 46 | public function register() |
47 | 47 | { |
@@ -41,7 +41,7 @@ |
||
41 | 41 | /** |
42 | 42 | * Returns an array of tokens this test wants to listen for. |
43 | 43 | * |
44 | - * @return array |
|
44 | + * @return integer[] |
|
45 | 45 | */ |
46 | 46 | public function register() |
47 | 47 | { |
@@ -41,7 +41,7 @@ |
||
41 | 41 | /** |
42 | 42 | * Returns an array of tokens this test wants to listen for. |
43 | 43 | * |
44 | - * @return array |
|
44 | + * @return integer[] |
|
45 | 45 | */ |
46 | 46 | public function register() |
47 | 47 | { |
@@ -23,6 +23,7 @@ |
||
23 | 23 | { |
24 | 24 | /** |
25 | 25 | * {@inheritdoc} |
26 | + * @param string $name |
|
26 | 27 | */ |
27 | 28 | public function __construct($name, NodeParentInterface $parent = null) |
28 | 29 | { |
@@ -173,6 +173,9 @@ |
||
173 | 173 | return new StreamOutput(fopen('php://memory', 'r+', false), $verbosity, $decorated); |
174 | 174 | } |
175 | 175 | |
176 | + /** |
|
177 | + * @param string $expected |
|
178 | + */ |
|
176 | 179 | protected function generateOutput($expected) |
177 | 180 | { |
178 | 181 | $count = substr_count($expected, "\n"); |