Merge pull request #15824 from mauriciofauth/php-docblock

Simplify PHP documentation blocks
This commit is contained in:
Maurício Meneghini Fauth 2020-01-20 19:28:19 -03:00 committed by GitHub
commit 7ca6705eaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
724 changed files with 583 additions and 5227 deletions

View File

@ -5,8 +5,6 @@
*
* All directives are explained in documentation in the doc/ folder
* or at <https://docs.phpmyadmin.net/>.
*
* @package PhpMyAdmin
*/
declare(strict_types=1);

View File

@ -4,9 +4,6 @@
* many hosts that all have identical configuration otherwise. To add
* a new host, just drop it into $hosts below. Contributed by
* Matthew Hawkins.
*
* @package PhpMyAdmin
* @subpackage Example
*/
declare(strict_types=1);

View File

@ -10,9 +10,6 @@
*
* User first authenticates using OpenID and based on content of $AUTH_MAP
* the login information is passed to phpMyAdmin in session data.
*
* @package PhpMyAdmin
* @subpackage Example
*/
declare(strict_types=1);

View File

@ -5,9 +5,6 @@
* This is just example how to use script based single signon with
* phpMyAdmin, it is not intended to be perfect code and look, only
* shows how you can integrate this functionality in your application.
*
* @package PhpMyAdmin
* @subpackage Example
*/
declare(strict_types=1);

View File

@ -5,9 +5,6 @@
* This is just example how to use session based single signon with
* phpMyAdmin, it is not intended to be perfect code and look, only
* shows how you can integrate this functionality in your application.
*
* @package PhpMyAdmin
* @subpackage Example
*/
declare(strict_types=1);

View File

@ -1,8 +1,6 @@
<?php
/**
* Main loader script
*
* @package PhpMyAdmin
*/
declare(strict_types=1);

View File

@ -1,8 +1,6 @@
<?php
/**
* Exporting of translated messages from PHP to Javascript
*
* @package PhpMyAdmin
*/
declare(strict_types=1);

View File

@ -2,8 +2,6 @@
/**
* A simple rules engine, that parses and executes the rules in advisory_rules.txt.
* Adjusted to phpMyAdmin.
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -21,8 +19,6 @@ use function array_merge_recursive;
/**
* Advisor class
*
* @package PhpMyAdmin
*/
class Advisor
{
@ -37,8 +33,6 @@ class Advisor
protected $expression;
/**
* Constructor
*
* @param DatabaseInterface $dbi DatabaseInterface object
* @param ExpressionLanguage $expression ExpressionLanguage object
*/

View File

@ -1,8 +1,6 @@
<?php
/**
* Handles bookmarking SQL queries
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -10,8 +8,6 @@ namespace PhpMyAdmin;
/**
* Handles bookmarking SQL queries
*
* @package PhpMyAdmin
*/
class Bookmark
{
@ -46,9 +42,7 @@ class Bookmark
*/
private $_query;
/**
* @var DatabaseInterface
*/
/** @var DatabaseInterface */
private $dbi;
/**

View File

@ -1,8 +1,6 @@
<?php
/**
* Contains functions used by browse foreigners
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -10,8 +8,6 @@ namespace PhpMyAdmin;
/**
* PhpMyAdmin\BrowseForeigners class
*
* @package PhpMyAdmin
*/
class BrowseForeigners
{
@ -26,9 +22,7 @@ class BrowseForeigners
/** @var string */
private $themeImage;
/**
* @var Template
*/
/** @var Template */
public $template;
/**

View File

@ -1,8 +1,6 @@
<?php
/**
* Functions for displaying user preferences pages
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -15,8 +13,6 @@ use PhpMyAdmin\Message;
/**
* PhpMyAdmin\CentralColumns class
*
* @package PhpMyAdmin
*/
class CentralColumns
{
@ -55,19 +51,13 @@ class CentralColumns
*/
private $disableIs;
/**
* @var Relation
*/
/** @var Relation */
private $relation;
/**
* @var Template
*/
/** @var Template */
public $template;
/**
* Constructor
*
* @param DatabaseInterface $dbi DatabaseInterface instance
*/
public function __construct(DatabaseInterface $dbi)

View File

@ -1,8 +1,6 @@
<?php
/**
* MySQL charset metadata and manipulations
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -13,8 +11,6 @@ use PhpMyAdmin\Charsets\Collation;
/**
* Class used to manage MySQL charsets
*
* @package PhpMyAdmin
*/
class Charsets
{
@ -56,14 +52,10 @@ class Charsets
*/
private static $serverCharset = null;
/**
* @var array<string, Charset>
*/
/** @var array<string, Charset> */
private static $charsets = [];
/**
* @var array<string, array<string, Collation>>
*/
/** @var array<string, array<string, Collation>> */
private static $collations = [];
/**

View File

@ -1,8 +1,6 @@
<?php
/**
* Value object class for a character set
*
* @package PhpMyAdmin\Charsets
*/
declare(strict_types=1);
@ -10,8 +8,6 @@ namespace PhpMyAdmin\Charsets;
/**
* Value object class for a character set
*
* @package PhpMyAdmin\Charsets
*/
final class Charset
{
@ -76,33 +72,21 @@ final class Charset
);
}
/**
* @return string
*/
public function getName(): string
{
return $this->name;
}
/**
* @return string
*/
public function getDescription(): string
{
return $this->description;
}
/**
* @return string
*/
public function getDefaultCollation(): string
{
return $this->defaultCollation;
}
/**
* @return int
*/
public function getMaxLength(): int
{
return $this->maxLength;

View File

@ -1,8 +1,6 @@
<?php
/**
* Value object class for a collation
*
* @package PhpMyAdmin\Charsets
*/
declare(strict_types=1);
@ -10,8 +8,6 @@ namespace PhpMyAdmin\Charsets;
/**
* Value object class for a collation
*
* @package PhpMyAdmin\Charsets
*/
final class Collation
{
@ -117,65 +113,41 @@ final class Collation
);
}
/**
* @return string
*/
public function getName(): string
{
return $this->name;
}
/**
* @return string
*/
public function getDescription(): string
{
return $this->description;
}
/**
* @return string
*/
public function getCharset(): string
{
return $this->charset;
}
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @return bool
*/
public function isDefault(): bool
{
return $this->isDefault;
}
/**
* @return bool
*/
public function isCompiled(): bool
{
return $this->isCompiled;
}
/**
* @return int
*/
public function getSortLength(): int
{
return $this->sortLength;
}
/**
* @return string
*/
public function getPadAttribute(): string
{
return $this->padAttribute;

View File

@ -1,8 +1,6 @@
<?php
/**
* Get user's global privileges and some db-specific privileges
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -13,19 +11,13 @@ use PhpMyAdmin\Util;
/**
* PhpMyAdmin\CheckUserPrivileges class
*
* @package PhpMyAdmin
*/
class CheckUserPrivileges
{
/**
* @var DatabaseInterface
*/
/** @var DatabaseInterface */
private $dbi;
/**
* Constructor
*
* @param DatabaseInterface $dbi DatabaseInterface object
*/
public function __construct(DatabaseInterface $dbi)

View File

@ -1,8 +1,6 @@
<?php
/**
* Translates advisory rules to Gettext format
*
* @package PhpMyAdmin\Command
*/
declare(strict_types=1);
@ -15,8 +13,6 @@ use Symfony\Component\Console\Output\OutputInterface;
/**
* Translates advisory rules to Gettext format
*
* @package PhpMyAdmin\Command
*/
class AdvisoryRulesCommand extends Command
{
@ -29,9 +25,6 @@ class AdvisoryRulesCommand extends Command
/** @var array */
private $locations = [];
/**
* @return void
*/
protected function configure(): void
{
$this->setDescription('Translates advisory rules to Gettext format');

View File

@ -1,21 +1,13 @@
<?php
/**
* @package PhpMyAdmin
*/
declare(strict_types=1);
namespace PhpMyAdmin;
/**
* Shared code for server, database and table level pages.
*
* @package PhpMyAdmin
*/
final class Common
{
/**
* @return void
*/
public static function server(): void
{
global $db, $table, $url_query, $viewing_mode, $err_url, $is_grantuser, $is_createuser, $dbi;
@ -50,9 +42,6 @@ final class Common
}
}
/**
* @return void
*/
public static function database(): void
{
global $cfg, $db, $is_show_stats, $db_is_system_schema, $err_url;
@ -188,9 +177,6 @@ final class Common
$url_query = Url::getCommon(['db' => $db]);
}
/**
* @return void
*/
public static function table(): void
{
global $db, $table, $db_is_system_schema, $url_query, $url_params, $cfg, $dbi, $err_url, $err_url_0;

View File

@ -1,8 +1,6 @@
<?php
/**
* Configuration handling.
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -19,56 +17,36 @@ use PhpMyAdmin\Utils\HttpRequest;
/**
* Configuration class
*
* @package PhpMyAdmin
*/
class Config
{
/**
* @var string default config source
*/
/** @var string default config source */
public $default_source = ROOT_PATH . 'libraries/config.default.php';
/**
* @var array default configuration settings
*/
/** @var array default configuration settings */
public $default = [];
/**
* @var array configuration settings, without user preferences applied
*/
/** @var array configuration settings, without user preferences applied */
public $base_settings = [];
/**
* @var array configuration settings
*/
/** @var array configuration settings */
public $settings = [];
/**
* @var string config source
*/
/** @var string config source */
public $source = '';
/**
* @var int source modification time
*/
/** @var int source modification time */
public $source_mtime = 0;
public $default_source_mtime = 0;
public $set_mtime = 0;
/**
* @var boolean
*/
/** @var boolean */
public $error_config_file = false;
/**
* @var boolean
*/
/** @var boolean */
public $error_config_default_file = false;
/**
* @var array
*/
/** @var array */
public $default_server = [];
/**
@ -79,8 +57,6 @@ class Config
public $done = false;
/**
* constructor
*
* @param string $source source to read config from
*/
public function __construct(?string $source = null)

View File

@ -1,8 +1,6 @@
<?php
/**
* Config file management
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -13,8 +11,6 @@ use PhpMyAdmin\Core;
/**
* Config file management class.
* Stores its data in $_SESSION
*
* @package PhpMyAdmin
*/
class ConfigFile
{
@ -84,8 +80,6 @@ class ConfigFile
private $_flattenArrayResult;
/**
* Constructor
*
* @param array|null $baseConfig base configuration read from
* {@link PhpMyAdmin\Config::$base_config},
* use only when not in PMA Setup

View File

@ -1,8 +1,6 @@
<?php
/**
* Verbose descriptions for settings.
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -13,8 +11,6 @@ use PhpMyAdmin\Sanitize;
/**
* Base class for forms, loads default configuration options, checks allowed
* values etc.
*
* @package PhpMyAdmin
*/
class Descriptions
{

View File

@ -1,8 +1,6 @@
<?php
/**
* Form handling code.
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -13,8 +11,6 @@ use PhpMyAdmin\Config\ConfigFile;
/**
* Base class for forms, loads default configuration options, checks allowed
* values etc.
*
* @package PhpMyAdmin
*/
class Form
{
@ -61,7 +57,7 @@ class Form
private $_configFile;
/**
* Constructor, reads default config values
* Reads default config values
*
* @param string $formName Form name
* @param array $form Form data

View File

@ -8,8 +8,6 @@
* eg. Servers/1/verbose
* o translated_path - work_path modified for HTML field name, a path with
* slashes changed to hyphens, eg. Servers-4-verbose
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -22,8 +20,6 @@ use PhpMyAdmin\Util;
/**
* Form management class, displays and processes forms
*
* @package PhpMyAdmin
*/
class FormDisplay
{
@ -94,14 +90,10 @@ class FormDisplay
*/
private $_userprefsDisallow;
/**
* @var FormDisplayTemplate
*/
/** @var FormDisplayTemplate */
private $formDisplayTemplate;
/**
* Constructor
*
* @param ConfigFile $cf Config file instance
*/
public function __construct(ConfigFile $cf)

View File

@ -1,8 +1,6 @@
<?php
/**
* Form templates
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -15,24 +13,16 @@ use PhpMyAdmin\Template;
/**
* PhpMyAdmin\Config\FormDisplayTemplate class
*
* @package PhpMyAdmin
*/
class FormDisplayTemplate
{
/**
* @var int
*/
/** @var int */
public $group;
/**
* @var Config
*/
/** @var Config */
protected $config;
/**
* @var Template
*/
/** @var Template */
public $template;
/**

View File

@ -1,8 +1,6 @@
<?php
/**
* Base class for preferences.
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -13,14 +11,10 @@ use PhpMyAdmin\Config\FormDisplay;
/**
* Base form for user preferences
*
* @package PhpMyAdmin
*/
abstract class BaseForm extends FormDisplay
{
/**
* Constructor
*
* @param ConfigFile $cf Config file instance
* @param int|null $serverId 0 if new server, validation; >= 1 if editing a server
*/

View File

@ -1,8 +1,6 @@
<?php
/**
* User preferences form
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -10,9 +8,6 @@ namespace PhpMyAdmin\Config\Forms;
use PhpMyAdmin\Config\ConfigFile;
/**
* @package PhpMyAdmin\Config\Forms
*/
class BaseFormList
{
/**
@ -20,14 +15,10 @@ class BaseFormList
*/
protected static $all = [];
/**
* @var string
*/
/** @var string */
protected static $ns = 'PhpMyAdmin\\Config\\Forms\\';
/**
* @var array
*/
/** @var array */
private $_forms;
/**
@ -62,8 +53,6 @@ class BaseFormList
}
/**
* Constructor
*
* @param ConfigFile $cf Config file instance
*/
public function __construct(ConfigFile $cf)

View File

@ -1,8 +1,6 @@
<?php
/**
* User preferences form
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -11,9 +9,6 @@ namespace PhpMyAdmin\Config\Forms\Page;
use PhpMyAdmin\Config\Forms\BaseForm;
use PhpMyAdmin\Config\Forms\User\MainForm;
/**
* @package PhpMyAdmin\Config\Forms\Page
*/
class BrowseForm extends BaseForm
{
/**

View File

@ -1,8 +1,6 @@
<?php
/**
* User preferences form
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -11,9 +9,6 @@ namespace PhpMyAdmin\Config\Forms\Page;
use PhpMyAdmin\Config\Forms\BaseForm;
use PhpMyAdmin\Config\Forms\User\MainForm;
/**
* @package PhpMyAdmin\Config\Forms\Page
*/
class DbStructureForm extends BaseForm
{
/**

View File

@ -1,8 +1,6 @@
<?php
/**
* User preferences form
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -12,9 +10,6 @@ use PhpMyAdmin\Config\Forms\BaseForm;
use PhpMyAdmin\Config\Forms\User\FeaturesForm;
use PhpMyAdmin\Config\Forms\User\MainForm;
/**
* @package PhpMyAdmin\Config\Forms\Page
*/
class EditForm extends BaseForm
{
/**

View File

@ -1,16 +1,11 @@
<?php
/**
* User preferences form
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\Page;
/**
* @package PhpMyAdmin\Config\Forms\Page
*/
class ExportForm extends \PhpMyAdmin\Config\Forms\User\ExportForm
{
}

View File

@ -1,16 +1,11 @@
<?php
/**
* User preferences form
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\Page;
/**
* @package PhpMyAdmin\Config\Forms\Page
*/
class ImportForm extends \PhpMyAdmin\Config\Forms\User\ImportForm
{
}

View File

@ -1,16 +1,11 @@
<?php
/**
* User preferences form
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\Page;
/**
* @package PhpMyAdmin\Config\Forms\Page
*/
class NaviForm extends \PhpMyAdmin\Config\Forms\User\NaviForm
{
}

View File

@ -1,8 +1,6 @@
<?php
/**
* Page preferences form
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -10,14 +8,9 @@ namespace PhpMyAdmin\Config\Forms\Page;
use PhpMyAdmin\Config\Forms\BaseFormList;
/**
* @package PhpMyAdmin\Config\Forms\Page
*/
class PageFormList extends BaseFormList
{
/**
* @var array
*/
/** @var array */
protected static $all = [
'Browse',
'DbStructure',
@ -28,8 +21,6 @@ class PageFormList extends BaseFormList
'Sql',
'TableStructure',
];
/**
* @var string
*/
/** @var string */
protected static $ns = '\\PhpMyAdmin\\Config\\Forms\\Page\\';
}

View File

@ -1,16 +1,11 @@
<?php
/**
* User preferences form
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\Page;
/**
* @package PhpMyAdmin\Config\Forms\Page
*/
class SqlForm extends \PhpMyAdmin\Config\Forms\User\SqlForm
{
}

View File

@ -1,8 +1,6 @@
<?php
/**
* User preferences form
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -11,9 +9,6 @@ namespace PhpMyAdmin\Config\Forms\Page;
use PhpMyAdmin\Config\Forms\BaseForm;
use PhpMyAdmin\Config\Forms\User\MainForm;
/**
* @package PhpMyAdmin\Config\Forms\Page
*/
class TableStructureForm extends BaseForm
{
/**

View File

@ -1,8 +1,6 @@
<?php
/**
* User preferences form
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -10,9 +8,6 @@ namespace PhpMyAdmin\Config\Forms\Setup;
use PhpMyAdmin\Config\Forms\BaseForm;
/**
* @package PhpMyAdmin\Config\Forms\Setup
*/
class ConfigForm extends BaseForm
{
/**

View File

@ -1,16 +1,11 @@
<?php
/**
* User preferences form
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\Setup;
/**
* @package PhpMyAdmin\Config\Forms\Setup
*/
class ExportForm extends \PhpMyAdmin\Config\Forms\User\ExportForm
{
}

View File

@ -1,16 +1,11 @@
<?php
/**
* User preferences form
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\Setup;
/**
* @package PhpMyAdmin\Config\Forms\Setup
*/
class FeaturesForm extends \PhpMyAdmin\Config\Forms\User\FeaturesForm
{
/**

View File

@ -1,16 +1,11 @@
<?php
/**
* User preferences form
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\Setup;
/**
* @package PhpMyAdmin\Config\Forms\Setup
*/
class ImportForm extends \PhpMyAdmin\Config\Forms\User\ImportForm
{
}

View File

@ -1,16 +1,11 @@
<?php
/**
* User preferences form
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\Setup;
/**
* @package PhpMyAdmin\Config\Forms\Setup
*/
class MainForm extends \PhpMyAdmin\Config\Forms\User\MainForm
{
/**

View File

@ -1,16 +1,11 @@
<?php
/**
* User preferences form
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\Setup;
/**
* @package PhpMyAdmin\Config\Forms\Setup
*/
class NaviForm extends \PhpMyAdmin\Config\Forms\User\NaviForm
{
}

View File

@ -1,8 +1,6 @@
<?php
/**
* User preferences form
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -10,9 +8,6 @@ namespace PhpMyAdmin\Config\Forms\Setup;
use PhpMyAdmin\Config\Forms\BaseForm;
/**
* @package PhpMyAdmin\Config\Forms\Setup
*/
class ServersForm extends BaseForm
{
/**

View File

@ -1,8 +1,6 @@
<?php
/**
* Setup preferences form
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -10,14 +8,9 @@ namespace PhpMyAdmin\Config\Forms\Setup;
use PhpMyAdmin\Config\Forms\BaseFormList;
/**
* @package PhpMyAdmin\Config\Forms\Setup
*/
class SetupFormList extends BaseFormList
{
/**
* @var array
*/
/** @var array */
protected static $all = [
'Config',
'Export',
@ -28,8 +21,6 @@ class SetupFormList extends BaseFormList
'Servers',
'Sql',
];
/**
* @var string
*/
/** @var string */
protected static $ns = '\\PhpMyAdmin\\Config\\Forms\\Setup\\';
}

View File

@ -1,16 +1,11 @@
<?php
/**
* User preferences form
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\Setup;
/**
* @package PhpMyAdmin\Config\Forms\Setup
*/
class SqlForm extends \PhpMyAdmin\Config\Forms\User\SqlForm
{
/**

View File

@ -1,8 +1,6 @@
<?php
/**
* User preferences form
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -10,9 +8,6 @@ namespace PhpMyAdmin\Config\Forms\User;
use PhpMyAdmin\Config\Forms\BaseForm;
/**
* @package PhpMyAdmin\Config\Forms\User
*/
class ExportForm extends BaseForm
{
/**

View File

@ -1,8 +1,6 @@
<?php
/**
* User preferences form
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -10,9 +8,6 @@ namespace PhpMyAdmin\Config\Forms\User;
use PhpMyAdmin\Config\Forms\BaseForm;
/**
* @package PhpMyAdmin\Config\Forms\User
*/
class FeaturesForm extends BaseForm
{
/**

View File

@ -1,8 +1,6 @@
<?php
/**
* User preferences form
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -10,9 +8,6 @@ namespace PhpMyAdmin\Config\Forms\User;
use PhpMyAdmin\Config\Forms\BaseForm;
/**
* @package PhpMyAdmin\Config\Forms\User
*/
class ImportForm extends BaseForm
{
/**

View File

@ -1,8 +1,6 @@
<?php
/**
* User preferences form
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -10,9 +8,6 @@ namespace PhpMyAdmin\Config\Forms\User;
use PhpMyAdmin\Config\Forms\BaseForm;
/**
* @package PhpMyAdmin\Config\Forms\User
*/
class MainForm extends BaseForm
{
/**

View File

@ -1,8 +1,6 @@
<?php
/**
* User preferences form
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -10,9 +8,6 @@ namespace PhpMyAdmin\Config\Forms\User;
use PhpMyAdmin\Config\Forms\BaseForm;
/**
* @package PhpMyAdmin\Config\Forms\User
*/
class NaviForm extends BaseForm
{
/**

View File

@ -1,8 +1,6 @@
<?php
/**
* User preferences form
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -10,9 +8,6 @@ namespace PhpMyAdmin\Config\Forms\User;
use PhpMyAdmin\Config\Forms\BaseForm;
/**
* @package PhpMyAdmin\Config\Forms\User
*/
class SqlForm extends BaseForm
{
/**

View File

@ -1,8 +1,6 @@
<?php
/**
* User preferences form
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -10,14 +8,9 @@ namespace PhpMyAdmin\Config\Forms\User;
use PhpMyAdmin\Config\Forms\BaseFormList;
/**
* @package PhpMyAdmin\Config\Forms\User
*/
class UserFormList extends BaseFormList
{
/**
* @var array
*/
/** @var array */
protected static $all = [
'Features',
'Sql',
@ -26,8 +19,6 @@ class UserFormList extends BaseFormList
'Export',
'Import',
];
/**
* @var string
*/
/** @var string */
protected static $ns = '\\PhpMyAdmin\\Config\\Forms\\User\\';
}

View File

@ -1,8 +1,6 @@
<?php
/**
* Page-related settings
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -18,8 +16,6 @@ use PhpMyAdmin\UserPreferences;
/**
* Page-related settings
*
* @package PhpMyAdmin
*/
class PageSettings
{
@ -51,14 +47,10 @@ class PageSettings
*/
private $_HTML = '';
/**
* @var UserPreferences
*/
/** @var UserPreferences */
private $userPreferences;
/**
* Constructor
*
* @param string $formGroupName The name of config form group to display
* @param string $elemId Id of the div containing settings
*/

View File

@ -1,8 +1,6 @@
<?php
/**
* Server config checks management
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -21,14 +19,10 @@ use PhpMyAdmin\Util;
*
* Outputs results to message list, must be called between SetupIndex::messagesBegin()
* and SetupIndex::messagesEnd()
*
* @package PhpMyAdmin
*/
class ServerConfigChecks
{
/**
* @var ConfigFile configurations being checked
*/
/** @var ConfigFile configurations being checked */
protected $cfg;
/**
@ -63,10 +57,8 @@ class ServerConfigChecks
$blowfishSecret
);
//
// $cfg['AllowArbitraryServer']
// should be disabled
//
if ($this->cfg->getValue('AllowArbitraryServer')) {
$sAllowArbitraryServerWarn = sprintf(
__(
@ -100,10 +92,8 @@ class ServerConfigChecks
. 'your server.'
);
//
// $cfg['SaveDir']
// should not be world-accessible
//
if ($this->cfg->getValue('SaveDir') != '') {
SetupIndex::messagesSet(
'notice',
@ -113,10 +103,8 @@ class ServerConfigChecks
);
}
//
// $cfg['TempDir']
// should not be world-accessible
//
if ($this->cfg->getValue('TempDir') != '') {
SetupIndex::messagesSet(
'notice',
@ -161,10 +149,8 @@ class ServerConfigChecks
$blowfishSecretSet
);
//
// $cfg['Servers'][$i]['ssl']
// should be enabled if possible
//
if (! $this->cfg->getValue('Servers/' . $i . '/ssl')) {
$title = Descriptions::get('Servers/1/ssl') . ' (' . $serverName . ')';
SetupIndex::messagesSet(
@ -190,10 +176,8 @@ class ServerConfigChecks
'[/a]'
));
//
// $cfg['Servers'][$i]['auth_type']
// warn about full user credentials if 'auth_type' is 'config'
//
if ($this->cfg->getValue('Servers/' . $i . '/auth_type') == 'config'
&& $this->cfg->getValue('Servers/' . $i . '/user') != ''
&& $this->cfg->getValue('Servers/' . $i . '/password') != ''
@ -219,11 +203,9 @@ class ServerConfigChecks
);
}
//
// $cfg['Servers'][$i]['AllowRoot']
// $cfg['Servers'][$i]['AllowNoPassword']
// serious security flaw
//
if ($this->cfg->getValue('Servers/' . $i . '/AllowRoot')
&& $this->cfg->getValue('Servers/' . $i . '/AllowNoPassword')
) {
@ -307,10 +289,8 @@ class ServerConfigChecks
*/
protected function performConfigChecksServersZipdump()
{
//
// $cfg['ZipDump']
// requires zip_open in import
//
if ($this->cfg->getValue('ZipDump') && ! $this->functionExists('zip_open')) {
SetupIndex::messagesSet(
'error',
@ -328,10 +308,8 @@ class ServerConfigChecks
);
}
//
// $cfg['ZipDump']
// requires gzcompress in export
//
if ($this->cfg->getValue('ZipDump') && ! $this->functionExists('gzcompress')) {
SetupIndex::messagesSet(
'error',
@ -364,10 +342,8 @@ class ServerConfigChecks
$blowfishSecretSet,
$blowfishSecret
) {
//
// $cfg['blowfish_secret']
// it's required for 'cookie' authentication
//
if ($cookieAuthUsed) {
if ($blowfishSecretSet) {
// 'cookie' auth used, blowfish_secret was generated
@ -422,7 +398,6 @@ class ServerConfigChecks
*/
protected function performConfigChecksLoginCookie()
{
//
// $cfg['LoginCookieValidity']
// value greater than session.gc_maxlifetime will cause
// random session invalidation after that time
@ -448,10 +423,8 @@ class ServerConfigChecks
);
}
//
// $cfg['LoginCookieValidity']
// should be at most 1800 (30 min)
//
if ($loginCookieValidity > 1800) {
SetupIndex::messagesSet(
'notice',
@ -469,11 +442,9 @@ class ServerConfigChecks
);
}
//
// $cfg['LoginCookieValidity']
// $cfg['LoginCookieStore']
// LoginCookieValidity must be less or equal to LoginCookieStore
//
if (($this->cfg->getValue('LoginCookieStore') != 0)
&& ($loginCookieValidity > $this->cfg->getValue('LoginCookieStore'))
) {
@ -503,10 +474,8 @@ class ServerConfigChecks
*/
protected function performConfigChecksServerBZipdump()
{
//
// $cfg['BZipDump']
// requires bzip2 functions
//
if ($this->cfg->getValue('BZipDump')
&& (! $this->functionExists('bzopen') || ! $this->functionExists('bzcompress'))
) {
@ -542,10 +511,8 @@ class ServerConfigChecks
*/
protected function performConfigChecksServerGZipdump()
{
//
// $cfg['GZipDump']
// requires zlib functions
//
if ($this->cfg->getValue('GZipDump')
&& (! $this->functionExists('gzopen') || ! $this->functionExists('gzencode'))
) {

View File

@ -1,8 +1,6 @@
<?php
/**
* Links configuration for MySQL system tables
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -11,9 +9,6 @@ namespace PhpMyAdmin\Config;
use PhpMyAdmin\Url;
use PhpMyAdmin\Util;
/**
* @package PhpMyAdmin\Config
*/
class SpecialSchemaLinks
{
/**

View File

@ -1,8 +1,6 @@
<?php
/**
* Form validation for configuration editor
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -28,8 +26,6 @@ use function mysqli_connect;
* no errors, key must be set with an empty value.
*
* Validation functions are assigned in $cfg_db['_validators'] (config.values.php).
*
* @package PhpMyAdmin
*/
class Validator
{

View File

@ -1,8 +1,6 @@
<?php
/**
* Used to render the console of PMA's pages
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
@ -14,8 +12,6 @@ use PhpMyAdmin\Template;
/**
* Class used to output the console
*
* @package PhpMyAdmin
*/
class Console
{
@ -35,14 +31,10 @@ class Console
*/
private $_isAjax;
/**
* @var Relation
*/
/** @var Relation */
private $relation;
/**
* @var Template
*/
/** @var Template */
public $template;
/**

View File

@ -1,8 +1,6 @@
<?php
/**
* Holds the PhpMyAdmin\Controllers\AbstractController
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);
@ -14,24 +12,16 @@ use PhpMyAdmin\Template;
/**
* Base class for all of controller
*
* @package PhpMyAdmin\Controllers
*/
abstract class AbstractController
{
/**
* @var Response
*/
/** @var Response */
protected $response;
/**
* @var DatabaseInterface
*/
/** @var DatabaseInterface */
protected $dbi;
/**
* @var Template
*/
/** @var Template */
protected $template;
/**

View File

@ -1,8 +1,6 @@
<?php
/**
* Generic AJAX endpoint for getting information about database
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);
@ -16,14 +14,10 @@ use PhpMyAdmin\Template;
/**
* Generic AJAX endpoint for getting information about database
*
* @package PhpMyAdmin\Controllers
*/
class AjaxController extends AbstractController
{
/**
* @var Config
*/
/** @var Config */
private $config;
/**

View File

@ -1,8 +1,6 @@
<?php
/**
* Holds the PhpMyAdmin\Controllers\BrowseForeignersController
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);
@ -16,19 +14,13 @@ use PhpMyAdmin\Template;
/**
* Display selection for relational field values
*
* @package PhpMyAdmin\Controllers
*/
class BrowseForeignersController extends AbstractController
{
/**
* @var BrowseForeigners
*/
/** @var BrowseForeigners */
private $browseForeigners;
/**
* @var Relation
*/
/** @var Relation */
private $relation;
/**

View File

@ -1,21 +1,13 @@
<?php
/**
* Simple script to set correct charset for changelog
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers;
/**
* @package PhpMyAdmin\Controllers
*/
class ChangeLogController extends AbstractController
{
/**
* @return void
*/
public function index(): void
{
$this->response->disable();

View File

@ -1,8 +1,6 @@
<?php
/**
* Displays status of phpMyAdmin configuration storage
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);
@ -13,9 +11,6 @@ use PhpMyAdmin\Relation;
use PhpMyAdmin\Response;
use PhpMyAdmin\Template;
/**
* @package PhpMyAdmin\Controllers
*/
class CheckRelationsController extends AbstractController
{
/** @var Relation */

View File

@ -1,8 +1,6 @@
<?php
/**
* Holds the PhpMyAdmin\Controllers\Database\AbstractController
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);
@ -15,14 +13,10 @@ use PhpMyAdmin\Template;
/**
* Handles database related logic
*
* @package PhpMyAdmin\Controllers
*/
abstract class AbstractController extends Controller
{
/**
* @var string
*/
/** @var string */
protected $db;
/**

View File

@ -1,8 +1,6 @@
<?php
/**
* Central Columns view/edit
*
* @package PhpMyAdmin\Controllers\Database
*/
declare(strict_types=1);
@ -15,14 +13,9 @@ use PhpMyAdmin\Message;
use PhpMyAdmin\Response;
use PhpMyAdmin\Template;
/**
* @package PhpMyAdmin\Controllers\Database
*/
class CentralColumnsController extends AbstractController
{
/**
* @var CentralColumns
*/
/** @var CentralColumns */
private $centralColumns;
/**
@ -38,9 +31,6 @@ class CentralColumnsController extends AbstractController
$this->centralColumns = $centralColumns;
}
/**
* @return void
*/
public function index(): void
{
global $cfg, $db, $message, $pos, $num_cols;

View File

@ -1,8 +1,6 @@
<?php
/**
* Holds the PhpMyAdmin\Controllers\Database\DataDictionaryController
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);
@ -16,19 +14,12 @@ use PhpMyAdmin\Template;
use PhpMyAdmin\Transformations;
use PhpMyAdmin\Util;
/**
* @package PhpMyAdmin\Controllers\Database
*/
class DataDictionaryController extends AbstractController
{
/**
* @var Relation
*/
/** @var Relation */
private $relation;
/**
* @var Transformations
*/
/** @var Transformations */
private $transformations;
/**

View File

@ -1,7 +1,4 @@
<?php
/**
* @package PhpMyAdmin\Controllers\Database
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Database;
@ -14,9 +11,6 @@ use PhpMyAdmin\Response;
use PhpMyAdmin\Template;
use PhpMyAdmin\Util;
/**
* @package PhpMyAdmin\Controllers\Database
*/
class DesignerController extends AbstractController
{
/** @var Designer */
@ -46,9 +40,6 @@ class DesignerController extends AbstractController
$this->designerCommon = $designerCommon;
}
/**
* @return void
*/
public function index(): void
{
global $db, $script_display_field, $tab_column, $tables_all_keys, $tables_pk_or_unique_keys;

View File

@ -1,8 +1,6 @@
<?php
/**
* Holds the PhpMyAdmin\Controllers\Database\EventsController
*
* @package PhpMyAdmin\Controllers\Database
*/
declare(strict_types=1);
@ -15,14 +13,9 @@ use PhpMyAdmin\Util;
/**
* Events management.
*
* @package PhpMyAdmin\Controllers\Database
*/
class EventsController extends AbstractController
{
/**
* @return void
*/
public function index(): void
{
global $_PMA_RTE, $table, $db, $tables, $num_tables, $total_num_tables, $sub_part, $errors, $titles;

View File

@ -1,7 +1,4 @@
<?php
/**
* @package PhpMyAdmin\Controllers\Database
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Database;
@ -17,9 +14,6 @@ use PhpMyAdmin\Template;
use PhpMyAdmin\Url;
use PhpMyAdmin\Util;
/**
* @package PhpMyAdmin\Controllers\Database
*/
final class ExportController extends AbstractController
{
/** @var Export */
@ -38,9 +32,6 @@ final class ExportController extends AbstractController
$this->export = $export;
}
/**
* @return void
*/
public function index(): void
{
global $db, $table, $url_query, $sub_part, $url_params, $sql_query;

View File

@ -1,7 +1,4 @@
<?php
/**
* @package PhpMyAdmin\Controllers\Database
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Database;
@ -11,14 +8,8 @@ use PhpMyAdmin\Config\PageSettings;
use PhpMyAdmin\Display\Import;
use PhpMyAdmin\Util;
/**
* @package PhpMyAdmin\Controllers\Database
*/
final class ImportController extends AbstractController
{
/**
* @return void
*/
public function index(): void
{
global $db, $max_upload_size, $table, $tables, $num_tables, $total_num_tables, $is_show_stats;

View File

@ -1,8 +1,6 @@
<?php
/**
* Holds the PhpMyAdmin\Controllers\Database\MultiTableQueryController
*
* @package PhpMyAdmin\Controllers\Database
*/
declare(strict_types=1);
@ -12,14 +10,9 @@ use PhpMyAdmin\Database\MultiTableQuery;
/**
* Handles database multi-table querying
*
* @package PhpMyAdmin\Controllers\Database
*/
class MultiTableQueryController extends AbstractController
{
/**
* @return string
*/
public function index(): string
{
$header = $this->response->getHeader();

View File

@ -1,7 +1,4 @@
<?php
/**
* @package PhpMyAdmin\Controllers\Database
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Database;
@ -24,8 +21,6 @@ use PhpMyAdmin\Util;
/**
* Handles miscellaneous database operations.
*
* @package PhpMyAdmin\Controllers\Database
*/
class OperationsController extends AbstractController
{
@ -68,9 +63,6 @@ class OperationsController extends AbstractController
$this->relationCleanup = $relationCleanup;
}
/**
* @return void
*/
public function index(): void
{
global $cfg, $db, $server, $url_query, $sql_query, $move, $message, $tables_full;

View File

@ -1,8 +1,6 @@
<?php
/**
* Controller for database privileges
*
* @package PhpMyAdmin\Controllers\Database
*/
declare(strict_types=1);
@ -16,8 +14,6 @@ use PhpMyAdmin\Util;
/**
* Controller for database privileges
*
* @package PhpMyAdmin\Controllers\Database
*/
class PrivilegesController extends AbstractController
{

View File

@ -1,7 +1,4 @@
<?php
/**
* @package PhpMyAdmin\Controllers\Database
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Database;
@ -20,8 +17,6 @@ use PhpMyAdmin\Util;
/**
* Query by Example controller
*
* @package PhpMyAdmin\Controllers\Database
*/
class QueryByExampleController extends AbstractController
{
@ -41,9 +36,6 @@ class QueryByExampleController extends AbstractController
$this->relation = $relation;
}
/**
* @return void
*/
public function index(): void
{
global $db, $pmaThemeImage, $url_query, $savedSearchList, $savedSearch, $currentSearchId;

View File

@ -1,8 +1,6 @@
<?php
/**
* Holds the PhpMyAdmin\Controllers\Database\RoutinesController
*
* @package PhpMyAdmin\Controllers\Database
*/
declare(strict_types=1);
@ -19,8 +17,6 @@ use PhpMyAdmin\Util;
/**
* Routines management.
*
* @package PhpMyAdmin\Controllers\Database
*/
class RoutinesController extends AbstractController
{

View File

@ -1,7 +1,4 @@
<?php
/**
* @package PhpMyAdmin\Controllers\Database
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Database;
@ -12,14 +9,8 @@ use PhpMyAdmin\Html\Generator;
use PhpMyAdmin\Url;
use PhpMyAdmin\Util;
/**
* @package PhpMyAdmin\Controllers\Database
*/
class SearchController extends AbstractController
{
/**
* @return void
*/
public function index(): void
{
global $cfg, $db, $err_url, $url_query, $url_params, $tables, $num_tables, $total_num_tables, $sub_part;

View File

@ -1,15 +1,10 @@
<?php
/**
* @package PhpMyAdmin\Controllers\Database
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Database;
/**
* Table/Column autocomplete in SQL editors.
*
* @package PhpMyAdmin\Controllers\Database
*/
class SqlAutoCompleteController extends AbstractController
{

View File

@ -1,7 +1,4 @@
<?php
/**
* @package PhpMyAdmin\Controllers\Database
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Database;
@ -16,8 +13,6 @@ use PhpMyAdmin\Url;
/**
* Database SQL executor
*
* @package PhpMyAdmin\Controllers\Database
*/
class SqlController extends AbstractController
{
@ -37,9 +32,6 @@ class SqlController extends AbstractController
$this->sqlQueryForm = $sqlQueryForm;
}
/**
* @return void
*/
public function index(): void
{
global $goto, $back;

View File

@ -1,7 +1,4 @@
<?php
/**
* @package PhpMyAdmin\Controllers\Database
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Database;
@ -10,8 +7,6 @@ use PhpMyAdmin\SqlParser\Utils\Formatter;
/**
* Format SQL for SQL editors.
*
* @package PhpMyAdmin\Controllers\Database
*/
class SqlFormatController extends AbstractController
{

View File

@ -1,8 +1,6 @@
<?php
/**
* Database structure manipulation
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);
@ -29,54 +27,34 @@ use PhpMyAdmin\Util;
/**
* Handles database structure logic
*
* @package PhpMyAdmin\Controllers
*/
class StructureController extends AbstractController
{
/**
* @var int Number of tables
*/
/** @var int Number of tables */
protected $numTables;
/**
* @var int Current position in the list
*/
/** @var int Current position in the list */
protected $position;
/**
* @var bool DB is information_schema
*/
/** @var bool DB is information_schema */
protected $dbIsSystemSchema;
/**
* @var int Number of tables
*/
/** @var int Number of tables */
protected $totalNumTables;
/**
* @var array Tables in the database
*/
/** @var array Tables in the database */
protected $tables;
/**
* @var bool whether stats show or not
*/
/** @var bool whether stats show or not */
protected $isShowStats;
/**
* @var Relation
*/
/** @var Relation */
private $relation;
/**
* @var Replication
*/
/** @var Replication */
private $replication;
/**
* Constructor
*
* @param Response $response Response instance
* @param DatabaseInterface $dbi DatabaseInterface instance
* @param Template $template Template object

View File

@ -1,7 +1,4 @@
<?php
/**
* @package PhpMyAdmin\Controllers\Database
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Database;
@ -20,8 +17,6 @@ use PhpMyAdmin\Util;
/**
* Tracking configuration for database.
*
* @package PhpMyAdmin\Controllers\Database
*/
class TrackingController extends AbstractController
{
@ -41,9 +36,6 @@ class TrackingController extends AbstractController
$this->tracking = $tracking;
}
/**
* @return void
*/
public function index(): void
{
global $db, $pmaThemeImage, $text_dir, $url_query, $url_params, $tables, $num_tables, $pos, $data, $cfg;

View File

@ -1,8 +1,6 @@
<?php
/**
* Holds the PhpMyAdmin\Controllers\Database\TriggersController
*
* @package PhpMyAdmin\Controllers\Database
*/
declare(strict_types=1);
@ -15,14 +13,9 @@ use PhpMyAdmin\Util;
/**
* Triggers management.
*
* @package PhpMyAdmin\Controllers\Database
*/
class TriggersController extends AbstractController
{
/**
* @return void
*/
public function index(): void
{
global $_PMA_RTE, $db, $table, $tables, $num_tables, $total_num_tables, $sub_part, $is_show_stats;

View File

@ -1,8 +1,6 @@
<?php
/**
* Handle error report submission
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);
@ -18,8 +16,6 @@ use PhpMyAdmin\UserPreferences;
/**
* Handle error report submission
*
* @package PhpMyAdmin\Controllers
*/
class ErrorReportController extends AbstractController
{
@ -48,9 +44,6 @@ class ErrorReportController extends AbstractController
$this->errorHandler = $errorHandler;
}
/**
* @return void
*/
public function index(): void
{
global $cfg;

View File

@ -1,7 +1,4 @@
<?php
/**
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers;
@ -25,9 +22,6 @@ use PhpMyAdmin\Template;
use PhpMyAdmin\Url;
use PhpMyAdmin\Util;
/**
* @package PhpMyAdmin\Controllers
*/
final class ExportController extends AbstractController
{
/** @var Export */
@ -50,9 +44,6 @@ final class ExportController extends AbstractController
$this->relation = $relation;
}
/**
* @return void
*/
public function index(): void
{
global $containerBuilder, $db, $export_type, $filename_template, $sql_query, $err_url, $message;

View File

@ -1,8 +1,6 @@
<?php
/**
* Editor for Geometry data types.
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);
@ -14,8 +12,6 @@ use PhpMyAdmin\Gis\GisVisualization;
/**
* Editor for Geometry data types.
*
* @package PhpMyAdmin\Controllers
*/
class GisDataEditorController extends AbstractController
{

View File

@ -1,8 +1,6 @@
<?php
/**
* Holds the PhpMyAdmin\Controllers\HomeController
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);
@ -29,19 +27,12 @@ use PhpMyAdmin\Url;
use PhpMyAdmin\UserPreferences;
use PhpMyAdmin\Util;
/**
* @package PhpMyAdmin\Controllers
*/
class HomeController extends AbstractController
{
/**
* @var Config
*/
/** @var Config */
private $config;
/**
* @var ThemeManager
*/
/** @var ThemeManager */
private $themeManager;
/**
@ -355,9 +346,6 @@ class HomeController extends AbstractController
))->display();
}
/**
* @return void
*/
private function checkRequirements(): void
{
global $cfg, $server, $lang;

View File

@ -1,7 +1,4 @@
<?php
/**
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers;
@ -25,9 +22,6 @@ use PhpMyAdmin\Url;
use PhpMyAdmin\Util;
use Throwable;
/**
* @package PhpMyAdmin\Controllers
*/
final class ImportController extends AbstractController
{
/** @var Import */
@ -50,9 +44,6 @@ final class ImportController extends AbstractController
$this->sql = $sql;
}
/**
* @return void
*/
public function index(): void
{
global $cfg, $collation_connection, $db, $import_type, $pmaThemeImage, $table, $goto, $display_query;

View File

@ -1,7 +1,4 @@
<?php
/**
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers;
@ -13,8 +10,6 @@ use PhpMyAdmin\Template;
/**
* Import progress bar backend
*
* @package PhpMyAdmin\Controllers
*/
class ImportStatusController
{
@ -29,9 +24,6 @@ class ImportStatusController
$this->template = $template;
}
/**
* @return void
*/
public function index(): void
{
global $SESSION_KEY, $upload_id, $plugins, $timestamp;

View File

@ -1,8 +1,6 @@
<?php
/**
* Simple script to set correct charset for the license
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);
@ -10,14 +8,9 @@ namespace PhpMyAdmin\Controllers;
/**
* Simple script to set correct charset for the license
*
* @package PhpMyAdmin\Controllers
*/
class LicenseController extends AbstractController
{
/**
* @return void
*/
public function index(): void
{
$this->response->disable();

View File

@ -1,8 +1,6 @@
<?php
/**
* Represents the interface between the linter and the query editor.
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);
@ -13,8 +11,6 @@ use PhpMyAdmin\Linter;
/**
* Represents the interface between the linter and the query editor.
*
* @package PhpMyAdmin\Controllers
*/
class LintController extends AbstractController
{

View File

@ -1,7 +1,4 @@
<?php
/**
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers;
@ -9,14 +6,8 @@ namespace PhpMyAdmin\Controllers;
use PhpMyAdmin\Core;
use PhpMyAdmin\Plugins\AuthenticationPlugin;
/**
* @package PhpMyAdmin\Controllers
*/
class LogoutController
{
/**
* @return void
*/
public function index(): void
{
global $auth_plugin, $token_mismatch;

View File

@ -1,7 +1,4 @@
<?php
/**
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers;
@ -19,8 +16,6 @@ use PhpMyAdmin\Util;
* The navigation panel
*
* Displays server, database and table selection tree.
*
* @package PhpMyAdmin\Controllers
*/
class NavigationController extends AbstractController
{
@ -49,9 +44,6 @@ class NavigationController extends AbstractController
$this->relation = $relation;
}
/**
* @return void
*/
public function index(): void
{
if (! $this->response->isAjax()) {

View File

@ -1,7 +1,4 @@
<?php
/**
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers;
@ -15,8 +12,6 @@ use PhpMyAdmin\Url;
/**
* Normalization process (temporarily specific to 1NF).
*
* @package PhpMyAdmin\Controllers
*/
class NormalizationController extends AbstractController
{
@ -35,9 +30,6 @@ class NormalizationController extends AbstractController
$this->normalization = $normalization;
}
/**
* @return void
*/
public function index(): void
{
global $db, $table;

View File

@ -1,8 +1,6 @@
<?php
/**
* phpinfo() wrapper to allow displaying only when configured to do so.
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);
@ -10,14 +8,9 @@ namespace PhpMyAdmin\Controllers;
/**
* phpinfo() wrapper to allow displaying only when configured to do so.
*
* @package PhpMyAdmin\Controllers
*/
class PhpInfoController extends AbstractController
{
/**
* @return void
*/
public function index(): void
{
global $cfg;

View File

@ -1,7 +1,4 @@
<?php
/**
* @package PhpMyAdmin\Controllers\Preferences
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Preferences;
@ -22,8 +19,6 @@ use PhpMyAdmin\UserPreferencesHeader;
/**
* User preferences page.
*
* @package PhpMyAdmin\Controllers\Preferences
*/
class FormsController extends AbstractController
{
@ -52,9 +47,6 @@ class FormsController extends AbstractController
$this->relation = $relation;
}
/**
* @return void
*/
public function index(): void
{
global $cf, $form_param, $form_class, $form_display, $url_params, $error, $tabHash, $hash;

View File

@ -1,7 +1,4 @@
<?php
/**
* @package PhpMyAdmin\Controllers\Preferences
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Preferences;
@ -23,8 +20,6 @@ use PhpMyAdmin\Util;
/**
* User preferences management page.
*
* @package PhpMyAdmin\Controllers\Preferences
*/
class ManageController extends AbstractController
{
@ -53,9 +48,6 @@ class ManageController extends AbstractController
$this->relation = $relation;
}
/**
* @return void
*/
public function index(): void
{
global $cf, $error, $filename, $import_handle, $json, $PMA_Config, $lang, $max_upload_size;

View File

@ -1,7 +1,4 @@
<?php
/**
* @package PhpMyAdmin\Controllers\Preferences
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Preferences;
@ -15,9 +12,6 @@ use PhpMyAdmin\Template;
use PhpMyAdmin\TwoFactor;
use PhpMyAdmin\UserPreferencesHeader;
/**
* @package PhpMyAdmin\Controllers\Preferences
*/
class TwoFactorController extends AbstractController
{
/** @var Relation */
@ -35,9 +29,6 @@ class TwoFactorController extends AbstractController
$this->relation = $relation;
}
/**
* @return void
*/
public function index(): void
{
global $cfg;

View File

@ -1,7 +1,4 @@
<?php
/**
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers;
@ -12,8 +9,6 @@ use PhpMyAdmin\Util;
/**
* Schema export handler
*
* @package PhpMyAdmin\Controllers
*/
class SchemaExportController
{
@ -33,9 +28,6 @@ class SchemaExportController
$this->relation = $relation;
}
/**
* @return void
*/
public function index(): void
{
global $cfgRelation;

View File

@ -1,8 +1,6 @@
<?php
/**
* Holds the PhpMyAdmin\Controllers\Server\BinlogController
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);
@ -19,8 +17,6 @@ use PhpMyAdmin\Util;
/**
* Handles viewing binary logs
*
* @package PhpMyAdmin\Controllers
*/
class BinlogController extends AbstractController
{

View File

@ -1,8 +1,6 @@
<?php
/**
* Holds the PhpMyAdmin\Controllers\Server\CollationsController
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);
@ -19,19 +17,13 @@ use PhpMyAdmin\Template;
/**
* Handles viewing character sets and collations
*
* @package PhpMyAdmin\Controllers
*/
class CollationsController extends AbstractController
{
/**
* @var array|null
*/
/** @var array|null */
private $charsets;
/**
* @var array|null
*/
/** @var array|null */
private $collations;
/**

View File

@ -1,8 +1,6 @@
<?php
/**
* Holds the PhpMyAdmin\Controllers\Server\DatabasesController
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);
@ -25,39 +23,25 @@ use PhpMyAdmin\Util;
/**
* Handles viewing and creating and deleting databases
*
* @package PhpMyAdmin\Controllers
*/
class DatabasesController extends AbstractController
{
/**
* @var array array of database details
*/
/** @var array array of database details */
private $databases = [];
/**
* @var int number of databases
*/
/** @var int number of databases */
private $databaseCount = 0;
/**
* @var string sort by column
*/
/** @var string sort by column */
private $sortBy;
/**
* @var string sort order of databases
*/
/** @var string sort order of databases */
private $sortOrder;
/**
* @var boolean whether to show database statistics
*/
/** @var boolean whether to show database statistics */
private $hasStatistics;
/**
* @var int position in list navigation
*/
/** @var int position in list navigation */
private $position;
/**

View File

@ -1,8 +1,6 @@
<?php
/**
* Holds the PhpMyAdmin\Controllers\Server\EnginesController
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);
@ -14,8 +12,6 @@ use PhpMyAdmin\StorageEngine;
/**
* Handles viewing storage engine details
*
* @package PhpMyAdmin\Controllers
*/
class EnginesController extends AbstractController
{

View File

@ -1,7 +1,4 @@
<?php
/**
* @package PhpMyAdmin\Controllers\Server
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Server;
@ -14,9 +11,6 @@ use PhpMyAdmin\Display\Export;
use PhpMyAdmin\Response;
use PhpMyAdmin\Template;
/**
* @package PhpMyAdmin\Controllers\Server
*/
final class ExportController extends AbstractController
{
/** @var Export */
@ -34,9 +28,6 @@ final class ExportController extends AbstractController
$this->export = $export;
}
/**
* @return void
*/
public function index(): void
{
global $db, $table, $sql_query, $num_tables, $unlim_num_rows;

Some files were not shown because too many files have changed in this diff Show More