These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | /* |
||
4 | * This file is part of the ICanBoogie package. |
||
5 | * |
||
6 | * (c) Olivier Laviale <[email protected]> |
||
7 | * |
||
8 | * For the full copyright and license information, please view the LICENSE |
||
9 | * file that was distributed with this source code. |
||
10 | */ |
||
11 | |||
12 | namespace ICanBoogie\Routing; |
||
13 | |||
14 | /** |
||
15 | * Contextualize a pathname. |
||
16 | * |
||
17 | * @param string $pathname |
||
18 | * |
||
19 | * @return string |
||
20 | */ |
||
21 | function contextualize($pathname) |
||
22 | { |
||
23 | return Helpers::contextualize($pathname); |
||
0 ignored issues
–
show
|
|||
24 | } |
||
25 | |||
26 | /** |
||
27 | * Decontextualize a pathname. |
||
28 | * |
||
29 | * @param string $pathname |
||
30 | * |
||
31 | * @return string |
||
32 | */ |
||
33 | function decontextualize($pathname) |
||
34 | { |
||
35 | return Helpers::decontextualize($pathname); |
||
0 ignored issues
–
show
The call to
Helpers::decontextualize() has too many arguments starting with $pathname .
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue. If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. In this case you can add the ![]() |
|||
36 | } |
||
37 | |||
38 | /** |
||
39 | * Absolutize a URL. |
||
40 | * |
||
41 | * @param string $url |
||
42 | * |
||
43 | * @return string |
||
44 | */ |
||
45 | function absolutize_url($url) |
||
46 | { |
||
47 | return Helpers::absolutize_url($url); |
||
0 ignored issues
–
show
The call to
Helpers::absolutize_url() has too many arguments starting with $url .
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue. If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. In this case you can add the ![]() |
|||
48 | } |
||
49 |
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress.
In this case you can add the
@ignore
PhpDoc annotation to the duplicate definition and it will be ignored.