for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Admin Page Framework Loader
*
* http://admin-page-framework.michaeluno.jp/
* Copyright (c) 2013-2022, Michael Uno; Licensed GPLv2
*/
* Adds the Tool page to the loader plugin.
* @since 3.5.0
* @since 3.5.3 Extends `AdminPageFrameworkLoader_AdminPage_Page_Base`.
* @extends AdminPageFrameworkLoader_AdminPage_Page_Base
class AdminPageFrameworkLoader_AdminPage_Tool extends AdminPageFrameworkLoader_AdminPage_Page_Base {
public function replyToLoadPage( $oFactory ) {
$oFactory
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function replyToLoadPage( /** @scrutinizer ignore-unused */ $oFactory ) {
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
// Tabs
new AdminPageFrameworkLoader_AdminPage_Tool_Compiler(
$this->oFactory,
$this->sPageSlug,
array(
'tab_slug' => 'compiler',
'title' => __( 'Compiler', 'admin-page-framework-loader' ),
)
);
}
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.