Remove unused local variables
Change-Id: I8eb774c2857dcc87404fd8a7e5fb66c5a4c9643e
This commit is contained in:
parent
2092cb9bcf
commit
a72cc6afbc
3 changed files with 0 additions and 7 deletions
|
|
@ -43,8 +43,6 @@ class ApiCreateAccount extends ApiBase {
|
|||
|
||||
$params = $this->extractRequestParams();
|
||||
|
||||
$result = array();
|
||||
|
||||
// Init session if necessary
|
||||
if ( session_id() == '' ) {
|
||||
wfSetupSession();
|
||||
|
|
|
|||
|
|
@ -53,16 +53,13 @@ class ApiImageRotate extends ApiBase {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
public function execute() {
|
||||
$params = $this->extractRequestParams();
|
||||
$rotation = $params['rotation'];
|
||||
$user = $this->getUser();
|
||||
|
||||
$pageSet = $this->getPageSet();
|
||||
$pageSet->execute();
|
||||
|
||||
$result = array();
|
||||
$result = array();
|
||||
|
||||
self::addValues( $result, $pageSet->getInvalidTitles(), 'invalid', 'title' );
|
||||
|
|
@ -181,7 +178,6 @@ class ApiImageRotate extends ApiBase {
|
|||
}
|
||||
|
||||
public function getAllowedParams( $flags = 0 ) {
|
||||
$pageSet = $this->getPageSet();
|
||||
$result = array(
|
||||
'rotation' => array(
|
||||
ApiBase::PARAM_TYPE => array( '90', '180', '270' ),
|
||||
|
|
|
|||
|
|
@ -382,7 +382,6 @@ class ApiQuery extends ApiBase {
|
|||
$modules = $allModules;
|
||||
$tmp = $completeModules;
|
||||
$wasPosted = $this->getRequest()->wasPosted();
|
||||
$main = $this->getMain();
|
||||
|
||||
/** @var $module ApiQueryBase */
|
||||
foreach ( $allModules as $moduleName => $module ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue