Skip to content

Commit

Permalink
Fix some coding standard issues
Browse files Browse the repository at this point in the history
Signed-off-by: Maurício Meneghini Fauth <[email protected]>
  • Loading branch information
MauricioFauth committed May 26, 2020
1 parent 9269d75 commit 3baad2e
Show file tree
Hide file tree
Showing 693 changed files with 726 additions and 61 deletions.
1 change: 1 addition & 0 deletions config.sample.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* All directives are explained in documentation in the doc/ folder
* or at <https://docs.phpmyadmin.net/>.
*/

declare(strict_types=1);

/**
Expand Down
1 change: 1 addition & 0 deletions examples/config.manyhosts.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* a new host, just drop it into $hosts below. Contributed by
* Matthew Hawkins.
*/

declare(strict_types=1);

$i = 0;
Expand Down
1 change: 1 addition & 0 deletions examples/openid.php
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down
1 change: 1 addition & 0 deletions examples/signon-script.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/**
Expand Down
1 change: 1 addition & 0 deletions examples/signon.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
1 change: 1 addition & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* Main loader script
*/

declare(strict_types=1);

use PhpMyAdmin\Routing;
Expand Down
1 change: 1 addition & 0 deletions js/messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* Exporting of translated messages from PHP to Javascript
*/

declare(strict_types=1);

use PhpMyAdmin\OutputBuffering;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Advisor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Bookmark.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* Handles bookmarking SQL queries
*/

declare(strict_types=1);

namespace PhpMyAdmin;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/BrowseForeigners.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* Contains functions used by browse foreigners
*/

declare(strict_types=1);

namespace PhpMyAdmin;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/CentralColumns.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* Functions for displaying user preferences pages
*/

declare(strict_types=1);

namespace PhpMyAdmin;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Charsets.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* MySQL charset metadata and manipulations
*/

declare(strict_types=1);

namespace PhpMyAdmin;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Charsets/Charset.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* Value object class for a character set
*/

declare(strict_types=1);

namespace PhpMyAdmin\Charsets;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Charsets/Collation.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* Value object class for a collation
*/

declare(strict_types=1);

namespace PhpMyAdmin\Charsets;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/CheckUserPrivileges.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* Get user's global privileges and some db-specific privileges
*/

declare(strict_types=1);

namespace PhpMyAdmin;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Command/AdvisoryRulesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* Translates advisory rules to Gettext format
*/

declare(strict_types=1);

namespace PhpMyAdmin\Command;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Common.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

declare(strict_types=1);

namespace PhpMyAdmin;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* Configuration handling.
*/

declare(strict_types=1);

namespace PhpMyAdmin;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Config/ConfigFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* Config file management
*/

declare(strict_types=1);

namespace PhpMyAdmin\Config;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Config/Descriptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* Verbose descriptions for settings.
*/

declare(strict_types=1);

namespace PhpMyAdmin\Config;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Config/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* Form handling code.
*/

declare(strict_types=1);

namespace PhpMyAdmin\Config;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Config/FormDisplay.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Config/FormDisplayTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* Form templates
*/

declare(strict_types=1);

namespace PhpMyAdmin\Config;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Config/Forms/BaseForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* Base class for preferences.
*/

declare(strict_types=1);

namespace PhpMyAdmin\Config\Forms;
Expand Down
3 changes: 2 additions & 1 deletion libraries/classes/Config/Forms/BaseFormList.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* User preferences form
*/

declare(strict_types=1);

namespace PhpMyAdmin\Config\Forms;
Expand Down Expand Up @@ -44,7 +45,7 @@ public static function isValid($name)
/**
* @param string $name Name
*
* @return null|string
* @return string|null
*/
public static function get($name)
{
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Config/Forms/Page/BrowseForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* User preferences form
*/

declare(strict_types=1);

namespace PhpMyAdmin\Config\Forms\Page;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Config/Forms/Page/DbStructureForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* User preferences form
*/

declare(strict_types=1);

namespace PhpMyAdmin\Config\Forms\Page;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Config/Forms/Page/EditForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* User preferences form
*/

declare(strict_types=1);

namespace PhpMyAdmin\Config\Forms\Page;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Config/Forms/Page/ExportForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* User preferences form
*/

declare(strict_types=1);

namespace PhpMyAdmin\Config\Forms\Page;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Config/Forms/Page/ImportForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* User preferences form
*/

declare(strict_types=1);

namespace PhpMyAdmin\Config\Forms\Page;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Config/Forms/Page/NaviForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* User preferences form
*/

declare(strict_types=1);

namespace PhpMyAdmin\Config\Forms\Page;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Config/Forms/Page/PageFormList.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* Page preferences form
*/

declare(strict_types=1);

namespace PhpMyAdmin\Config\Forms\Page;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Config/Forms/Page/SqlForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* User preferences form
*/

declare(strict_types=1);

namespace PhpMyAdmin\Config\Forms\Page;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Config/Forms/Page/TableStructureForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* User preferences form
*/

declare(strict_types=1);

namespace PhpMyAdmin\Config\Forms\Page;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Config/Forms/Setup/ConfigForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* User preferences form
*/

declare(strict_types=1);

namespace PhpMyAdmin\Config\Forms\Setup;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Config/Forms/Setup/ExportForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* User preferences form
*/

declare(strict_types=1);

namespace PhpMyAdmin\Config\Forms\Setup;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Config/Forms/Setup/FeaturesForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* User preferences form
*/

declare(strict_types=1);

namespace PhpMyAdmin\Config\Forms\Setup;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Config/Forms/Setup/ImportForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* User preferences form
*/

declare(strict_types=1);

namespace PhpMyAdmin\Config\Forms\Setup;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Config/Forms/Setup/MainForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* User preferences form
*/

declare(strict_types=1);

namespace PhpMyAdmin\Config\Forms\Setup;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Config/Forms/Setup/NaviForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* User preferences form
*/

declare(strict_types=1);

namespace PhpMyAdmin\Config\Forms\Setup;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Config/Forms/Setup/ServersForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* User preferences form
*/

declare(strict_types=1);

namespace PhpMyAdmin\Config\Forms\Setup;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Config/Forms/Setup/SetupFormList.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* Setup preferences form
*/

declare(strict_types=1);

namespace PhpMyAdmin\Config\Forms\Setup;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Config/Forms/Setup/SqlForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* User preferences form
*/

declare(strict_types=1);

namespace PhpMyAdmin\Config\Forms\Setup;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Config/Forms/User/ExportForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* User preferences form
*/

declare(strict_types=1);

namespace PhpMyAdmin\Config\Forms\User;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Config/Forms/User/FeaturesForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* User preferences form
*/

declare(strict_types=1);

namespace PhpMyAdmin\Config\Forms\User;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Config/Forms/User/ImportForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* User preferences form
*/

declare(strict_types=1);

namespace PhpMyAdmin\Config\Forms\User;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Config/Forms/User/MainForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* User preferences form
*/

declare(strict_types=1);

namespace PhpMyAdmin\Config\Forms\User;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Config/Forms/User/NaviForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* User preferences form
*/

declare(strict_types=1);

namespace PhpMyAdmin\Config\Forms\User;
Expand Down
1 change: 1 addition & 0 deletions libraries/classes/Config/Forms/User/SqlForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/**
* User preferences form
*/

declare(strict_types=1);

namespace PhpMyAdmin\Config\Forms\User;
Expand Down
Loading

0 comments on commit 3baad2e

Please sign in to comment.