1 | <?php |
||
15 | class LSX_Optimisation { |
||
16 | |||
17 | /** |
||
18 | * Holds class instance |
||
19 | * |
||
20 | * @since 1.0.0 |
||
21 | * @var object |
||
22 | */ |
||
23 | protected static $instance = null; |
||
24 | |||
25 | /** |
||
26 | * Constructor. |
||
27 | */ |
||
28 | public function __construct() { |
||
33 | /** |
||
34 | * Return an instance of this class. |
||
35 | * |
||
36 | * @since 1.0.0 |
||
37 | * @return object A single instance of this class. |
||
38 | */ |
||
39 | public static function get_instance() { |
||
46 | |||
47 | /** |
||
48 | * Defers the JS loading till Last |
||
49 | * |
||
50 | * @param string $url The url to check and defer. |
||
|
|||
51 | * @return string |
||
52 | */ |
||
53 | public function preload_css( $tag, $handle, $href, $media ) { |
||
59 | |||
60 | /** |
||
61 | * Defers the JS loading till Last |
||
62 | * |
||
63 | * @param string $url The url to check and defer. |
||
64 | * @return string |
||
65 | */ |
||
66 | public function defer_parsing_of_js( $tag, $handle, $href ) { |
||
72 | |||
73 | public function pum_remove_admin_bar_tools() { |
||
78 | } |
||
79 | LSX_Optimisation::get_instance(); |
||
80 |
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.