@@ -34,7 +34,7 @@ |
||
34 | 34 | /** |
35 | 35 | * Constructor |
36 | 36 | * |
37 | - * @return void |
|
37 | + * @return Container |
|
38 | 38 | **/ |
39 | 39 | public function __construct() |
40 | 40 | { |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | * Before node traversal |
50 | 50 | * |
51 | 51 | * @param Node[] $nodes |
52 | - * @return array |
|
52 | + * @return Node[] |
|
53 | 53 | **/ |
54 | 54 | public function beforeTraverse(array $nodes) |
55 | 55 | { |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | * Check all variable nodes |
67 | 67 | * |
68 | 68 | * @param Node $node |
69 | - * @return void |
|
69 | + * @return null|Node |
|
70 | 70 | **/ |
71 | 71 | public function enterNode(Node $node) |
72 | 72 | { |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | * Recursively scan for method calls and see if variables are used |
92 | 92 | * |
93 | 93 | * @param Node[] $nodes |
94 | - * @return void |
|
94 | + * @return boolean |
|
95 | 95 | **/ |
96 | 96 | private function variableMethodCallsUsed(array $nodes) |
97 | 97 | { |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | * Set the string scrambler |
114 | 114 | * |
115 | 115 | * @param StringScrambler $scrambler |
116 | - * @return RenameParameter |
|
116 | + * @return Scrambler |
|
117 | 117 | */ |
118 | 118 | public function setScrambler(StringScrambler $scrambler) |
119 | 119 | { |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | * Set variables to ignore |
137 | 137 | * |
138 | 138 | * @param string[] $ignore |
139 | - * @return parent |
|
139 | + * @return Scrambler |
|
140 | 140 | */ |
141 | 141 | public function setIgnore(array $ignore) |
142 | 142 | { |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | * Add a variable name to ignore |
150 | 150 | * |
151 | 151 | * @param string|string[] $ignore |
152 | - * @return RenameParameterVisitor |
|
152 | + * @return Scrambler |
|
153 | 153 | **/ |
154 | 154 | public function addIgnore($ignore) |
155 | 155 | { |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | * Before node traversal |
58 | 58 | * |
59 | 59 | * @param Node[] $nodes |
60 | - * @return array |
|
60 | + * @return Node[] |
|
61 | 61 | **/ |
62 | 62 | public function beforeTraverse(array $nodes) |
63 | 63 | { |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | /** |
223 | 223 | * Find (the first) class node in a set of nodes |
224 | 224 | * |
225 | - * @param array $nodes |
|
225 | + * @param Node[] $nodes |
|
226 | 226 | * @return ClassStatement|bool returns falls if no class can be found |
227 | 227 | **/ |
228 | 228 | private function findClass(array $nodes) |
@@ -53,7 +53,7 @@ |
||
53 | 53 | * Check all variable nodes |
54 | 54 | * |
55 | 55 | * @param Node $node |
56 | - * @return void |
|
56 | + * @return Node|null |
|
57 | 57 | **/ |
58 | 58 | public function enterNode(Node $node) |
59 | 59 | { |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | * |
32 | 32 | * @param string $method |
33 | 33 | * @param string $newName |
34 | - * @return SkipTrait |
|
34 | + * @return TrackingRenamerTrait |
|
35 | 35 | **/ |
36 | 36 | protected function renamed($method, $newName) |
37 | 37 | { |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | /** |
77 | 77 | * Reset renamed list |
78 | 78 | * |
79 | - * @return SkipTrait |
|
79 | + * @return TrackingRenamerTrait |
|
80 | 80 | **/ |
81 | 81 | protected function resetRenamed() |
82 | 82 | { |
@@ -214,7 +214,8 @@ |
||
214 | 214 | /** |
215 | 215 | * Get the file list |
216 | 216 | * |
217 | - * @return SplFileInfo |
|
217 | + * @param string $directory |
|
218 | + * @return RegexIterator |
|
218 | 219 | **/ |
219 | 220 | private function getFiles($directory) |
220 | 221 | { |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | * Constructor |
33 | 33 | * |
34 | 34 | * @param string $file |
35 | - * @return void |
|
35 | + * @return null|Event |
|
36 | 36 | **/ |
37 | 37 | public function __construct($file) |
38 | 38 | { |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | * Set the file |
54 | 54 | * |
55 | 55 | * @param string $file |
56 | - * @return parent |
|
56 | + * @return File |
|
57 | 57 | */ |
58 | 58 | public function setFile($file) |
59 | 59 | { |
@@ -32,7 +32,8 @@ |
||
32 | 32 | * Constructor |
33 | 33 | * |
34 | 34 | * @param string $file |
35 | - * @return void |
|
35 | + * @param string $errorMessage |
|
36 | + * @return null|Event |
|
36 | 37 | **/ |
37 | 38 | public function __construct($file, $errorMessage) |
38 | 39 | { |