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 \SimpSyst\Improve\Improve(); |
||||
10 | echo $op |
||||
11 | ->improver( |
||||
12 | "Improve Happy and @SimpSyst", |
||||
13 | "Is a compact and easy-to-use tag creator to improve your site", |
||||
14 | "https://www.diegomatos.com/simpsyst/improve/example/", |
||||
15 | "https://www.diegomatos.com/storage/images/cache/tutorial-blockchain-para-iniciantes-aprenda-a-tecnologia-blockchain-800x500-34fd23f6.jpg" |
||||
16 | ) |
||||
17 | ->publisher( |
||||
18 | "diegomatos", |
||||
19 | "diegomatos", |
||||
20 | "10208016753915836", |
||||
0 ignored issues
–
show
|
|||||
21 | "10208016753915836" |
||||
22 | ) |
||||
23 | ->twitterCard( |
||||
24 | "@diegoamatos", |
||||
25 | "@diegoamatos", |
||||
26 | "diegomatos.com", |
||||
27 | "summary_large_image" |
||||
28 | ) |
||||
29 | ->openGraph( |
||||
30 | "diegomatos", |
||||
31 | "pt_BR", |
||||
32 | "article" |
||||
33 | ) |
||||
34 | ->facebook(null, ["1444863255776758", "10208016753915836"]) |
||||
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.