Fix some coding standard issues

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2020-05-25 22:42:37 -03:00
parent 9269d75fb4
commit 3baad2eb1c
693 changed files with 726 additions and 61 deletions

View File

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

View File

@ -5,6 +5,7 @@
* a new host, just drop it into $hosts below. Contributed by
* Matthew Hawkins.
*/
declare(strict_types=1);
$i = 0;

View File

@ -11,6 +11,7 @@
* User first authenticates using OpenID and based on content of $AUTH_MAP
* the login information is passed to phpMyAdmin in session data.
*/
declare(strict_types=1);
if (false === @include_once 'OpenID/RelyingParty.php') {

View File

@ -6,6 +6,7 @@
* phpMyAdmin, it is not intended to be perfect code and look, only
* shows how you can integrate this functionality in your application.
*/
declare(strict_types=1);
/**

View File

@ -6,6 +6,7 @@
* phpMyAdmin, it is not intended to be perfect code and look, only
* shows how you can integrate this functionality in your application.
*/
declare(strict_types=1);
/* Use cookies for session */

View File

@ -2,6 +2,7 @@
/**
* Main loader script
*/
declare(strict_types=1);
use PhpMyAdmin\Routing;

View File

@ -2,6 +2,7 @@
/**
* Exporting of translated messages from PHP to Javascript
*/
declare(strict_types=1);
use PhpMyAdmin\OutputBuffering;

View File

@ -3,6 +3,7 @@
* A simple rules engine, that parses and executes the rules in advisory_rules.txt.
* Adjusted to phpMyAdmin.
*/
declare(strict_types=1);
namespace PhpMyAdmin;

View File

@ -2,6 +2,7 @@
/**
* Handles bookmarking SQL queries
*/
declare(strict_types=1);
namespace PhpMyAdmin;

View File

@ -2,6 +2,7 @@
/**
* Contains functions used by browse foreigners
*/
declare(strict_types=1);
namespace PhpMyAdmin;

View File

@ -2,6 +2,7 @@
/**
* Functions for displaying user preferences pages
*/
declare(strict_types=1);
namespace PhpMyAdmin;

View File

@ -2,6 +2,7 @@
/**
* MySQL charset metadata and manipulations
*/
declare(strict_types=1);
namespace PhpMyAdmin;

View File

@ -2,6 +2,7 @@
/**
* Value object class for a character set
*/
declare(strict_types=1);
namespace PhpMyAdmin\Charsets;

View File

@ -2,6 +2,7 @@
/**
* Value object class for a collation
*/
declare(strict_types=1);
namespace PhpMyAdmin\Charsets;

View File

@ -2,6 +2,7 @@
/**
* Get user's global privileges and some db-specific privileges
*/
declare(strict_types=1);
namespace PhpMyAdmin;

View File

@ -2,6 +2,7 @@
/**
* Translates advisory rules to Gettext format
*/
declare(strict_types=1);
namespace PhpMyAdmin\Command;

View File

@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
namespace PhpMyAdmin;

View File

@ -2,6 +2,7 @@
/**
* Configuration handling.
*/
declare(strict_types=1);
namespace PhpMyAdmin;

View File

@ -2,6 +2,7 @@
/**
* Config file management
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config;

View File

@ -2,6 +2,7 @@
/**
* Verbose descriptions for settings.
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config;

View File

@ -2,6 +2,7 @@
/**
* Form handling code.
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config;

View File

@ -9,6 +9,7 @@
* o translated_path - work_path modified for HTML field name, a path with
* slashes changed to hyphens, eg. Servers-4-verbose
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config;

View File

@ -2,6 +2,7 @@
/**
* Form templates
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config;

View File

@ -2,6 +2,7 @@
/**
* Base class for preferences.
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms;

View File

@ -2,6 +2,7 @@
/**
* User preferences form
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms;
@ -44,7 +45,7 @@ class BaseFormList
/**
* @param string $name Name
*
* @return null|string
* @return string|null
*/
public static function get($name)
{

View File

@ -2,6 +2,7 @@
/**
* User preferences form
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\Page;

View File

@ -2,6 +2,7 @@
/**
* User preferences form
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\Page;

View File

@ -2,6 +2,7 @@
/**
* User preferences form
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\Page;

View File

@ -2,6 +2,7 @@
/**
* User preferences form
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\Page;

View File

@ -2,6 +2,7 @@
/**
* User preferences form
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\Page;

View File

@ -2,6 +2,7 @@
/**
* User preferences form
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\Page;

View File

@ -2,6 +2,7 @@
/**
* Page preferences form
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\Page;

View File

@ -2,6 +2,7 @@
/**
* User preferences form
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\Page;

View File

@ -2,6 +2,7 @@
/**
* User preferences form
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\Page;

View File

@ -2,6 +2,7 @@
/**
* User preferences form
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\Setup;

View File

@ -2,6 +2,7 @@
/**
* User preferences form
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\Setup;

View File

@ -2,6 +2,7 @@
/**
* User preferences form
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\Setup;

View File

@ -2,6 +2,7 @@
/**
* User preferences form
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\Setup;

View File

@ -2,6 +2,7 @@
/**
* User preferences form
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\Setup;

View File

@ -2,6 +2,7 @@
/**
* User preferences form
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\Setup;

View File

@ -2,6 +2,7 @@
/**
* User preferences form
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\Setup;

View File

@ -2,6 +2,7 @@
/**
* Setup preferences form
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\Setup;

View File

@ -2,6 +2,7 @@
/**
* User preferences form
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\Setup;

View File

@ -2,6 +2,7 @@
/**
* User preferences form
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\User;

View File

@ -2,6 +2,7 @@
/**
* User preferences form
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\User;

View File

@ -2,6 +2,7 @@
/**
* User preferences form
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\User;

View File

@ -2,6 +2,7 @@
/**
* User preferences form
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\User;

View File

@ -2,6 +2,7 @@
/**
* User preferences form
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\User;

View File

@ -2,6 +2,7 @@
/**
* User preferences form
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\User;

View File

@ -2,6 +2,7 @@
/**
* User preferences form
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config\Forms\User;

View File

@ -2,6 +2,7 @@
/**
* Page-related settings
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config;

View File

@ -2,6 +2,7 @@
/**
* Server config checks management
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config;

View File

@ -2,6 +2,7 @@
/**
* Links configuration for MySQL system tables
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config;

View File

@ -2,6 +2,7 @@
/**
* Form validation for configuration editor
*/
declare(strict_types=1);
namespace PhpMyAdmin\Config;

View File

@ -2,6 +2,7 @@
/**
* Used to render the console of PMA's pages
*/
declare(strict_types=1);
namespace PhpMyAdmin;

View File

@ -2,6 +2,7 @@
/**
* Holds the PhpMyAdmin\Controllers\AbstractController
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers;

View File

@ -2,6 +2,7 @@
/**
* Generic AJAX endpoint for getting information about database
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers;

View File

@ -2,6 +2,7 @@
/**
* Holds the PhpMyAdmin\Controllers\BrowseForeignersController
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers;

View File

@ -2,6 +2,7 @@
/**
* Simple script to set correct charset for changelog
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers;

View File

@ -2,6 +2,7 @@
/**
* Displays status of phpMyAdmin configuration storage
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers;

View File

@ -2,6 +2,7 @@
/**
* Holds the PhpMyAdmin\Controllers\Database\AbstractController
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Database;

View File

@ -2,6 +2,7 @@
/**
* Central Columns view/edit
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Database;

View File

@ -2,6 +2,7 @@
/**
* Holds the PhpMyAdmin\Controllers\Database\DataDictionaryController
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Database;

View File

@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Database;

View File

@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Database;

View File

@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Database;

View File

@ -2,6 +2,7 @@
/**
* Holds the PhpMyAdmin\Controllers\Database\MultiTableQueryController
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Database;

View File

@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Database;

View File

@ -2,6 +2,7 @@
/**
* Controller for database privileges
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Database;

View File

@ -2,6 +2,7 @@
/**
* Holds the PhpMyAdmin\Controllers\Database\RoutinesController
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Database;

View File

@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Database;

View File

@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Database;

View File

@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Database;

View File

@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Database;

View File

@ -1123,8 +1123,7 @@ class StructureController extends AbstractController
$databaseCharset = $collation->getCharset();
}
// table form
$html .= $this->template->render('database/structure/table_header', [
return $html . $this->template->render('database/structure/table_header', [
'db' => $this->db,
'db_is_system_schema' => $this->dbIsSystemSchema,
'replication' => $GLOBALS['replication_info']['slave']['status'],
@ -1171,8 +1170,6 @@ class StructureController extends AbstractController
'central_columns_work' => $GLOBALS['cfgRelation']['centralcolumnswork'] ?? null,
],
]);
return $html;
}
/**

View File

@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Database;

View File

@ -2,6 +2,7 @@
/**
* Holds the PhpMyAdmin\Controllers\Database\TriggersController
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Database;

View File

@ -2,6 +2,7 @@
/**
* Handle error report submission
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers;

View File

@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
namespace PhpMyAdmin\Controllers;

View File

@ -2,6 +2,7 @@
/**
* Editor for Geometry data types.
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers;

View File

@ -2,6 +2,7 @@
/**
* Holds the PhpMyAdmin\Controllers\HomeController
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers;

View File

@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
namespace PhpMyAdmin\Controllers;

View File

@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
namespace PhpMyAdmin\Controllers;

View File

@ -2,6 +2,7 @@
/**
* Simple script to set correct charset for the license
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers;

View File

@ -2,6 +2,7 @@
/**
* Represents the interface between the linter and the query editor.
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers;

View File

@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
namespace PhpMyAdmin\Controllers;

View File

@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
namespace PhpMyAdmin\Controllers;

View File

@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
namespace PhpMyAdmin\Controllers;

View File

@ -2,6 +2,7 @@
/**
* phpinfo() wrapper to allow displaying only when configured to do so.
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers;

View File

@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Preferences;

View File

@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Preferences;

View File

@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
namespace PhpMyAdmin\Controllers;

View File

@ -2,6 +2,7 @@
/**
* Holds the PhpMyAdmin\Controllers\Server\BinlogController
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Server;

View File

@ -2,6 +2,7 @@
/**
* Holds the PhpMyAdmin\Controllers\Server\CollationsController
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Server;

View File

@ -2,6 +2,7 @@
/**
* Holds the PhpMyAdmin\Controllers\Server\DatabasesController
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Server;

View File

@ -2,6 +2,7 @@
/**
* Holds the PhpMyAdmin\Controllers\Server\EnginesController
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Server;

View File

@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Server;

View File

@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Server;

View File

@ -3,6 +3,7 @@
/**
* Holds the PhpMyAdmin\Controllers\Server\PluginsController
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Server;

View File

@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
namespace PhpMyAdmin\Controllers\Server;

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