1 | <?php |
||
10 | trait PHP |
||
11 | { |
||
12 | /** |
||
13 | * Quote string with slashes in a C style. |
||
14 | * |
||
15 | * @param string $charlist |
||
16 | * @return static |
||
17 | */ |
||
18 | public function addcslashes($charlist) |
||
22 | |||
23 | /** |
||
24 | * Quote string with slashes. |
||
25 | * |
||
26 | * @return static |
||
27 | */ |
||
28 | public function addslashes() |
||
32 | |||
33 | /** |
||
34 | * Convert binary data into hexadecimal representation. |
||
35 | * |
||
36 | * @return static |
||
37 | */ |
||
38 | public function bin2hex() |
||
42 | |||
43 | 1 | /** |
|
44 | * convertEncoding. |
||
45 | 1 | * |
|
46 | 1 | * @param string $toEncoding |
|
47 | 1 | * @return static |
|
48 | */ |
||
49 | public function convertEncoding($toEncoding) |
||
55 | |||
56 | /** |
||
57 | * convertTo. |
||
58 | * |
||
59 | * @param string $variant |
||
60 | * @return static |
||
61 | */ |
||
62 | public function convertTo($variant = 'zh-tw') |
||
66 | |||
67 | 1 | /** |
|
68 | * chineseToNumber. |
||
69 | 1 | * |
|
70 | 1 | * @return int |
|
71 | 1 | */ |
|
72 | public function chineseToNumber() |
||
76 | |||
77 | /** |
||
78 | * Split a string by string. |
||
79 | * |
||
80 | * @param string $delimiter |
||
81 | * @param int $limit |
||
1 ignored issue
–
show
|
|||
82 | * @return \Recca0120\Lodash\JArray |
||
83 | */ |
||
84 | public function explode($delimiter) |
||
90 | |||
91 | /** |
||
92 | * Convert all HTML entities to their applicable characters. |
||
93 | 1 | * |
|
94 | * @param int $flags |
||
95 | 1 | * @return static |
|
96 | 1 | */ |
|
97 | 1 | public function htmlEntityDecode() |
|
103 | |||
104 | /** |
||
105 | * Convert all applicable characters to HTML entities. |
||
106 | * |
||
107 | * @param int $flags |
||
108 | * @return static |
||
109 | */ |
||
110 | public function htmlentities() |
||
116 | |||
117 | /** |
||
118 | * Convert special HTML entities back to characters. |
||
119 | * |
||
120 | * @param int $flags |
||
1 ignored issue
–
show
|
|||
121 | * @return static |
||
122 | */ |
||
123 | public function htmlspecialcharsDecode() |
||
129 | |||
130 | /** |
||
131 | * Convert special characters to HTML entities. |
||
132 | * |
||
133 | * @param int $flags |
||
134 | * @return static |
||
135 | */ |
||
136 | public function htmlspecialchars() |
||
142 | 1 | ||
143 | /** |
||
144 | 1 | * Make a string's first character lowercase. |
|
145 | * |
||
146 | * @return static |
||
147 | */ |
||
148 | public function lcfirst() |
||
152 | |||
153 | /** |
||
154 | * Strip whitespace (or other characters) from the beginning of a string. |
||
155 | * |
||
156 | * @param string $characterMask |
||
157 | * @return static |
||
158 | */ |
||
159 | public function ltrim($characterMask = " \t\n\r\0\x0B") |
||
163 | |||
164 | /** |
||
165 | * Calculate the md5 hash of a string. |
||
166 | * |
||
167 | * @param bool $rawOutput |
||
168 | * @return static |
||
169 | */ |
||
170 | public function md5($rawOutput = false) |
||
174 | |||
175 | /** |
||
176 | * Inserts HTML line breaks before all newlines in a string. |
||
177 | * |
||
178 | * @param bool $isXHTML |
||
179 | * @return static |
||
180 | */ |
||
181 | public function nl2br($isXHTML = true) |
||
185 | |||
186 | /** |
||
187 | * Parses the string into variables. |
||
188 | 1 | * |
|
189 | * @return \Recca0120\Lodash\JArray |
||
190 | 1 | */ |
|
191 | public function parse() |
||
198 | |||
199 | /** |
||
200 | * Strip whitespace (or other characters) from the end of a string. |
||
201 | * |
||
202 | * @param string $characterMask |
||
203 | * @return static |
||
204 | */ |
||
205 | public function rtrim($characterMask = " \t\n\r\0\x0B") |
||
209 | |||
210 | /** |
||
211 | * Calculate the sha1 hash of a string. |
||
212 | * |
||
213 | * @return static |
||
214 | */ |
||
215 | public function sha1() |
||
219 | |||
220 | /** |
||
221 | * Parses input from a string according to a format. |
||
222 | * |
||
223 | * @param string $format |
||
224 | * @return \Recca0120\Lodash\JArray |
||
225 | */ |
||
226 | public function sscanf($format) |
||
230 | |||
231 | /** |
||
232 | * Pad a string to a certain length with another string. |
||
233 | * |
||
234 | * @param int $length |
||
235 | * @param string $chars |
||
236 | * @param int $type |
||
237 | * @return static |
||
238 | */ |
||
239 | public function pad($length = 0, $chars = ' ', $type = STR_PAD_BOTH) |
||
243 | |||
244 | /** |
||
245 | * Perform the rot13 transform on a string. |
||
246 | * |
||
247 | * @return static |
||
248 | */ |
||
249 | public function rot13() |
||
253 | |||
254 | /** |
||
255 | * Randomly shuffles a string. |
||
256 | * |
||
257 | * @return static |
||
258 | */ |
||
259 | public function shuffle() |
||
263 | |||
264 | /** |
||
265 | * Strip HTML and PHP tags from a string. |
||
266 | * |
||
267 | * @param string $allowable_tags |
||
268 | * @return static |
||
269 | */ |
||
270 | public function stripTags() |
||
276 | |||
277 | /** |
||
278 | * Un-quote string quoted with addcslashes(). |
||
279 | * |
||
280 | * @return static |
||
281 | */ |
||
282 | public function stripcslashes() |
||
286 | |||
287 | /** |
||
288 | * Un-quotes a quoted string. |
||
289 | * |
||
290 | * @return static |
||
291 | */ |
||
292 | public function stripslashes() |
||
296 | |||
297 | /** |
||
298 | * Reverse a string. |
||
299 | * |
||
300 | * @return static |
||
301 | */ |
||
302 | public function reverse() |
||
306 | |||
307 | /** |
||
308 | * toFullCase. |
||
309 | * |
||
310 | * @return static |
||
311 | */ |
||
312 | public function toFullCase() |
||
316 | |||
317 | /** |
||
318 | * toHalfCase. |
||
319 | * |
||
320 | * @return static |
||
321 | */ |
||
322 | public function toHalfCase() |
||
326 | |||
327 | /** |
||
328 | * Make a string's first character uppercase. |
||
329 | * |
||
330 | * @return static |
||
331 | */ |
||
332 | public function ucfirst() |
||
336 | |||
337 | /** |
||
338 | * Uppercase the first character of each word in a string. |
||
339 | * |
||
340 | * @param string $delimiters |
||
341 | * @return static |
||
342 | */ |
||
343 | public function ucwords($delimiters = " \t\r\n\f\v") |
||
347 | |||
348 | /** |
||
349 | * Wraps a string to a given number of characters. |
||
350 | * |
||
351 | * @param int $width |
||
352 | * @param string $break |
||
353 | * @param bool $cut |
||
354 | * @return static |
||
355 | */ |
||
356 | public function wordwrap($width = 75, $break = "\n", $cut = false) |
||
360 | } |
||
361 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.