@@ -41,7 +41,7 @@ discard block |
||
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 | { |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | * @param File $phpcsFile The current file being scanned. |
119 | 119 | * @param int $stackPtr Pointer to the first comment line. |
120 | 120 | * |
121 | - * @return type array Pointers to tokens making up the comment block. |
|
121 | + * @return integer[] array Pointers to tokens making up the comment block. |
|
122 | 122 | */ |
123 | 123 | private function _getCommentBlock(File $phpcsFile, $stackPtr) |
124 | 124 | { |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | * Add errors to $phpcsFile, if $commentLines isn't enclosed with blank lines. |
146 | 146 | * |
147 | 147 | * @param File $phpcsFile The current file being scanned. |
148 | - * @param array $commentLines Lines of the comment block being checked. |
|
148 | + * @param integer[] $commentLines Lines of the comment block being checked. |
|
149 | 149 | * |
150 | 150 | * @return bool TRUE if $commentLines is enclosed with at least a blank line |
151 | 151 | * before and after, FALSE otherwise. |
@@ -35,7 +35,7 @@ |
||
35 | 35 | /** |
36 | 36 | * Returns an array of tokens this test wants to listen for. |
37 | 37 | * |
38 | - * @return array |
|
38 | + * @return integer[] |
|
39 | 39 | */ |
40 | 40 | public function register() |
41 | 41 | { |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | /** |
37 | 37 | * Returns an array of tokens this test wants to listen for. |
38 | 38 | * |
39 | - * @return array |
|
39 | + * @return integer[] |
|
40 | 40 | */ |
41 | 41 | public function register() |
42 | 42 | { |
@@ -174,6 +174,7 @@ discard block |
||
174 | 174 | * |
175 | 175 | * @param string $str String to split. |
176 | 176 | * @param int $len number of characters per chunk |
177 | + * @param string $glue |
|
177 | 178 | * |
178 | 179 | * @return array string array after splitting |
179 | 180 | * |
@@ -35,7 +35,7 @@ |
||
35 | 35 | /** |
36 | 36 | * Returns an array of tokens this test wants to listen for: symbolic and literal operators and. |
37 | 37 | * |
38 | - * @return array |
|
38 | + * @return integer[] |
|
39 | 39 | */ |
40 | 40 | public function register() |
41 | 41 | { |
@@ -35,7 +35,7 @@ |
||
35 | 35 | /** |
36 | 36 | * Returns an array of tokens this test wants to listen for: literal and symbolic operators or. |
37 | 37 | * |
38 | - * @return array |
|
38 | + * @return integer[] |
|
39 | 39 | */ |
40 | 40 | public function register() |
41 | 41 | { |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | * @param string $dblQtString The double-quoted string content, |
88 | 88 | * i.e. without quotes. |
89 | 89 | * |
90 | - * @return void |
|
90 | + * @return boolean |
|
91 | 91 | */ |
92 | 92 | protected function processDoubleQuotedString (File $phpcsFile, $stackPtr, $dblQtString) |
93 | 93 | { |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | * @param string $sglQtString The single-quoted string content, |
135 | 135 | * i.e. without quotes. |
136 | 136 | * |
137 | - * @return void |
|
137 | + * @return boolean |
|
138 | 138 | */ |
139 | 139 | protected function processSingleQuotedString (File $phpcsFile, $stackPtr, $sglQtString) |
140 | 140 | { |
@@ -36,7 +36,7 @@ |
||
36 | 36 | /** |
37 | 37 | * Returns an array of tokens this test wants to listen for. |
38 | 38 | * |
39 | - * @return array |
|
39 | + * @return string[] |
|
40 | 40 | */ |
41 | 41 | public function register() |
42 | 42 | { |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | /** |
51 | 51 | * Returns an array of tokens this test wants to listen for. |
52 | 52 | * |
53 | - * @return array |
|
53 | + * @return integer[] |
|
54 | 54 | */ |
55 | 55 | public function register() |
56 | 56 | { |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | * application root. Parent directory of the application root are allowed |
135 | 135 | * but not mandatory. |
136 | 136 | * |
137 | - * @return string|bool The relative path from $appRoot to $filePath, or |
|
137 | + * @return false|string The relative path from $appRoot to $filePath, or |
|
138 | 138 | * false if $appRoot cannot be found in $filePath. |
139 | 139 | */ |
140 | 140 | private static function _getLocationPath ($filePath, $appRoot) |
@@ -2,6 +2,10 @@ discard block |
||
2 | 2 | if ( ! function_exists('glob_recursive')) |
3 | 3 | { |
4 | 4 | // Does not support flag GLOB_BRACE |
5 | + |
|
6 | + /** |
|
7 | + * @param string $pattern |
|
8 | + */ |
|
5 | 9 | function glob_recursive($pattern, $flags = 0) |
6 | 10 | { |
7 | 11 | $files = glob($pattern, $flags); |
@@ -320,7 +324,7 @@ discard block |
||
320 | 324 | * Shortcut for joining an array of command arguments |
321 | 325 | * and then running it |
322 | 326 | * |
323 | - * @param array $cmd_parts - command arguments |
|
327 | + * @param string[] $cmd_parts - command arguments |
|
324 | 328 | * @param string $join_on - what to join the command arguments with |
325 | 329 | */ |
326 | 330 | protected function _run(array $cmd_parts, $join_on = ' ') |