BurningFlipside /
Profiles
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | ini_set('display_errors', 1); |
||
| 3 | error_reporting(E_ALL); |
||
| 4 | require_once('class.ProfilesAdminPage.php'); |
||
| 5 | $page = new ProfilesAdminPage('Burning Flipside Profiles - Admin'); |
||
| 6 | $page->addWellKnownJS(JS_DATATABLE, false); |
||
|
0 ignored issues
–
show
|
|||
| 7 | $page->addWellKnownCSS(CSS_DATATABLE); |
||
| 8 | $page->addJS('js/pending_users.js'); |
||
| 9 | |||
| 10 | $page->body .= ' |
||
| 11 | <div class="col-lg-12"> |
||
| 12 | <h1 class="page-header">Pending Registrations</h1> |
||
| 13 | </div> |
||
| 14 | <div id="pending_set"> |
||
| 15 | <select name="pending_action" id="pending_action"> |
||
| 16 | <option value="none">Action...</option> |
||
| 17 | <option value="del">Delete</option> |
||
| 18 | </select> |
||
| 19 | <button class="btn btn-default" type="button" onclick="pendingExecute()">Apply</button> |
||
| 20 | <table id="pending_table" class="table"> |
||
| 21 | <thead> |
||
| 22 | <th>User Name</th> |
||
| 23 | <th>Email</th> |
||
| 24 | <th>Registration Time</th> |
||
| 25 | </thead> |
||
| 26 | <tbody></tbody> |
||
| 27 | </table> |
||
| 28 | </div>'; |
||
| 29 | |||
| 30 | $page->printPage(); |
||
| 31 | /* vim: set tabstop=4 shiftwidth=4 expandtab: */ |
||
| 32 |
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
@ignorePhpDoc annotation to the duplicate definition and it will be ignored.