1 | <!DOCTYPE html> |
||||
2 | <html lang="pt-br"> |
||||
3 | <head> |
||||
4 | <meta charset="UTF-8"> |
||||
5 | <meta name="viewport" content="width=device-width,initial-scale=1"> |
||||
6 | <?php |
||||
7 | require __DIR__ . "/../vendor/autoload.php"; |
||||
8 | |||||
9 | $op = new \CoffeeCode\Optimizer\Optimizer(); |
||||
10 | echo $op |
||||
11 | ->optimize( |
||||
12 | "Optimizer Happy and @CoffeeCode", |
||||
13 | "Is a compact and easy-to-use tag creator to optimize your site", |
||||
14 | "https://www.upinside.com.br/coffeecode/optimizer/example/", |
||||
15 | "https://www.upinside.com.br/uploads/images/2017/11/curso-de-html5-preparando-ambiente-de-trabalho-aula-02-1511276983.jpg" |
||||
16 | ) |
||||
17 | ->publisher( |
||||
18 | "upinside", |
||||
19 | "robsonvleite", |
||||
20 | "107305124528362639842", |
||||
0 ignored issues
–
show
|
|||||
21 | "103958419096641225872" |
||||
22 | ) |
||||
23 | ->twitterCard( |
||||
24 | "@robsonvleite", |
||||
25 | "@robsonvleite", |
||||
26 | "upinside.com.br", |
||||
27 | "summary_large_image" |
||||
28 | ) |
||||
29 | ->openGraph( |
||||
30 | "upinside", |
||||
31 | "pt_BR", |
||||
32 | "article" |
||||
33 | ) |
||||
34 | ->facebook(null, ["626590460695980", "626590460695981"])//->facebook(null, [9283729732123, 912837192372, 73642734723]) |
||||
35 | ->render(); |
||||
36 | ?> |
||||
37 | </head> |
||||
38 | <body> |
||||
39 | |||||
40 | <h1><?= $op->title; ?></h1> |
||||
41 | <p><?= $op->description; ?></p> |
||||
42 | |||||
43 | <?php |
||||
44 | echo "<pre>", print_r($op->data(), true), "</pre>"; |
||||
0 ignored issues
–
show
Are you sure
print_r($op->data(), true) of type string|true can be used in echo ?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
45 | echo "<pre>", print_r(array_map("htmlspecialchars", $op->debug()), true), "</pre>"; |
||||
0 ignored issues
–
show
Are you sure
print_r(array_map('htmls...', $op->debug()), true) of type string|true can be used in echo ?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
46 | ?> |
||||
47 | |||||
48 | </body> |
||||
49 | </html> |
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. Please note the @ignore annotation hint above.