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
*/
* Provides an abstract base for bases.
* @since 3.5.3
abstract class AdminPageFrameworkLoader_AdminPage_RootBase {
* Stores callback method names.
protected $aMethods = array(
'replyToLoadPage',
'replyToDoPage',
'replyToDoAfterPage',
'replyToLoadTab',
'replyToDoTab',
'validate',
);
* Handles callback methods.
* @return mixed
public function __call( $sMethodName, $aArguments ) {
if ( in_array( $sMethodName, $this->aMethods ) ) {
return isset( $aArguments[ 0 ] )
? $aArguments[ 0 ]
: null;
}
trigger_error(
'Admin Page Framework - Loader: ' . ' : ' . sprintf(
__( 'The method is not defined: %1$s', 'admin-page-framework-loader' ),
$sMethodName
),
E_USER_WARNING
* A user constructor.
* @return void
protected function construct( $oFactory ) {}
$oFactory
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
protected function construct( /** @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.
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.