@@ -37,6 +37,10 @@ discard block |
||
37 | 37 | } |
38 | 38 | } |
39 | 39 | |
40 | + /** |
|
41 | + * @param integer $level |
|
42 | + * @param integer $i |
|
43 | + */ |
|
40 | 44 | private static function openCurly($token, $level, $tokens, $i, $classFilePath) |
41 | 45 | { |
42 | 46 | if ($token == '{' && ! \in_array($tokens[$i - 1][0], [T_DOUBLE_COLON, T_OBJECT_OPERATOR])) { |
@@ -54,6 +58,11 @@ discard block |
||
54 | 58 | } |
55 | 59 | } |
56 | 60 | |
61 | + /** |
|
62 | + * @param integer $level |
|
63 | + * @param boolean $isInClass |
|
64 | + * @param integer $i |
|
65 | + */ |
|
57 | 66 | private static function writePublic($level, $token, $isInClass, $i, $tokens, $classFilePath) |
58 | 67 | { |
59 | 68 | if (($level != 1) || ($token[0] != T_FUNCTION) || ! $isInClass) { |
@@ -47,6 +47,10 @@ discard block |
||
47 | 47 | $this->pendError($absPath, $lineNumber, $relatedModel, 'badRelation', $header); |
48 | 48 | } |
49 | 49 | |
50 | + /** |
|
51 | + * @param string $key |
|
52 | + * @param string $header |
|
53 | + */ |
|
50 | 54 | public function pendError($path, $lineNumber, $absent, $key, $header) |
51 | 55 | { |
52 | 56 | ($this->errorsList[$key][] = (new PendingError($key)) |
@@ -64,6 +68,11 @@ discard block |
||
64 | 68 | ->link($absPath, $lineNumber)); |
65 | 69 | } |
66 | 70 | |
71 | + /** |
|
72 | + * @param string $absent |
|
73 | + * @param string $key |
|
74 | + * @param string $header |
|
75 | + */ |
|
67 | 76 | public function simplePendError($path, $lineNumber, $absent, $key, $header) |
68 | 77 | { |
69 | 78 | ($this->errorsList[$key][] = (new PendingError($key)) |
@@ -150,6 +159,9 @@ discard block |
||
150 | 159 | ->link($absPath, $lineNumber)); |
151 | 160 | } |
152 | 161 | |
162 | + /** |
|
163 | + * @param integer $len |
|
164 | + */ |
|
153 | 165 | public function print($msg, $path = '| ', $len = null) |
154 | 166 | { |
155 | 167 | ! $len && $len = PendingError::$maxLength + 1; |
@@ -165,6 +177,9 @@ discard block |
||
165 | 177 | $this->printer->writeln($path.$msg.str_repeat(' ', $len).'|'); |
166 | 178 | } |
167 | 179 | |
180 | + /** |
|
181 | + * @param string $msg |
|
182 | + */ |
|
168 | 183 | public function printHeader($msg) |
169 | 184 | { |
170 | 185 | $number = ++$this->errorsList['total']; |
@@ -223,6 +238,9 @@ discard block |
||
223 | 238 | } |
224 | 239 | } |
225 | 240 | |
241 | + /** |
|
242 | + * @param string $key |
|
243 | + */ |
|
226 | 244 | public function getCount($key) |
227 | 245 | { |
228 | 246 | return \count($this->errorsList[$key] ?? []); |