Skip to content

Commit

Permalink
Enable strict mode in Controllers classes
Browse files Browse the repository at this point in the history
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
  • Loading branch information
MauricioFauth committed May 15, 2018
1 parent b6435e9 commit 5f46a4b
Show file tree
Hide file tree
Showing 16 changed files with 28 additions and 1 deletion.
2 changes: 2 additions & 0 deletions libraries/classes/Controllers/Controller.php
Expand Up @@ -5,6 +5,8 @@
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);

namespace PhpMyAdmin\Controllers;

use PhpMyAdmin\DatabaseInterface;
Expand Down
Expand Up @@ -5,6 +5,8 @@
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);

namespace PhpMyAdmin\Controllers\Database;

use PhpMyAdmin\Charsets;
Expand Down
2 changes: 2 additions & 0 deletions libraries/classes/Controllers/DatabaseController.php
Expand Up @@ -5,6 +5,8 @@
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);

namespace PhpMyAdmin\Controllers;

/**
Expand Down
Expand Up @@ -5,6 +5,8 @@
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);

namespace PhpMyAdmin\Controllers\Server;

use PhpMyAdmin\Controllers\Controller;
Expand Down
Expand Up @@ -6,6 +6,7 @@
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);

namespace PhpMyAdmin\Controllers\Server;

Expand Down
Expand Up @@ -6,6 +6,7 @@
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);

namespace PhpMyAdmin\Controllers\Server;

Expand Down
Expand Up @@ -6,6 +6,7 @@
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);

namespace PhpMyAdmin\Controllers\Server;

Expand Down
Expand Up @@ -6,6 +6,7 @@
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);

namespace PhpMyAdmin\Controllers\Server;

Expand Down
Expand Up @@ -6,6 +6,7 @@
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);

namespace PhpMyAdmin\Controllers\Server;

Expand Down
2 changes: 2 additions & 0 deletions libraries/classes/Controllers/Table/TableChartController.php
Expand Up @@ -5,6 +5,8 @@
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);

namespace PhpMyAdmin\Controllers\Table;

use PhpMyAdmin\Controllers\TableController;
Expand Down
Expand Up @@ -5,6 +5,8 @@
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);

namespace PhpMyAdmin\Controllers\Table;

use PhpMyAdmin\Controllers\TableController;
Expand Down
Expand Up @@ -5,6 +5,8 @@
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);

namespace PhpMyAdmin\Controllers\Table;

use PhpMyAdmin\Controllers\TableController;
Expand Down
Expand Up @@ -5,6 +5,8 @@
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);

namespace PhpMyAdmin\Controllers\Table;

use PhpMyAdmin\Controllers\TableController;
Expand Down
2 changes: 2 additions & 0 deletions libraries/classes/Controllers/Table/TableSearchController.php
Expand Up @@ -5,6 +5,8 @@
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);

namespace PhpMyAdmin\Controllers\Table;

use PhpMyAdmin\Controllers\TableController;
Expand Down
Expand Up @@ -5,6 +5,8 @@
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);

namespace PhpMyAdmin\Controllers\Table;

use PhpMyAdmin\CentralColumns;
Expand Down Expand Up @@ -917,7 +919,7 @@ protected function updateColumns()
);
// if the old column name is part of the remembered sort expression
if (mb_strpos(
$sorted_col,
(string) $sorted_col,
Util::backquote($_REQUEST['field_orig'][$i])
) !== false) {
// delete the whole remembered sort expression
Expand Down
2 changes: 2 additions & 0 deletions libraries/classes/Controllers/TableController.php
Expand Up @@ -5,6 +5,8 @@
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);

namespace PhpMyAdmin\Controllers;

/**
Expand Down

0 comments on commit 5f46a4b

Please sign in to comment.