Commit Graph

451 Commits

Author SHA1 Message Date
Maurício Meneghini Fauth
857a9d3337
Remove unnecessary @var annotations
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-11-18 12:15:30 -03:00
Maurício Meneghini Fauth
b2a51c4d84
Create the RelationParameters value object
Replaces the $cfgRelation array with the RelationParameters value
object.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-11-14 18:22:36 -03:00
Maurício Meneghini Fauth
220ed30ef8
Remove printview.css theme files
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-10-31 17:35:55 -03:00
Maurício Meneghini Fauth
3e0856c77b
Remove useless string concatenations
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-09-27 21:40:22 -03:00
Maurício Meneghini Fauth
e9ec9e8b71
Replace rand functions with random_int
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-09-27 19:05:42 -03:00
Maurício Meneghini Fauth
f00d70cccb
Remove useless whitespaces
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-09-15 17:05:40 -03:00
Maurício Meneghini Fauth
9f3510d11a
Add bool return type where possible
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-09-14 20:11:51 -03:00
Maurício Meneghini Fauth
7f6472b2c2
Add void return type where possible
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-09-13 15:29:11 -03:00
Maurício Meneghini Fauth
8f2f3eff40
Remove the Core::isValid method
This improves the type checking and simplifies the code.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-09-02 13:20:50 -03:00
William Desportes
8d19bef81d
Merge branch 'QA_5_1'
Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-08-22 23:19:15 +02:00
William Desportes
8f4514c7e9
Fix #17046 - "Uncaught TypeError: htmlspecialchars() expects parameter 1 to be string, null given"
Fixes: #17046

"libraries/classes/Display/Results.php not guarding against null metadata in getHeaderTablesForColumns"

Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-08-22 23:04:17 +02:00
Lukas Bixen
a1e473ab66 Fix #17062: Improve uniqueness of SQL query hashes
Use server and database in addition to query when generating hash

Signed-off-by: Lukas Bixen <lrb2_@outlook.com>
2021-08-21 22:35:49 -05:00
Maurício Meneghini Fauth
f970299289
Remove $defaultFunction variable from Display\Results
Makes the type of $transformationPlugin variable more strict.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-08-09 12:50:28 -03:00
Lukas Bixen
75c4de2d5d Fix text alignment in some Bootstrap tables:
Replaced instances of the `right` CSS class (used only for `pma-table`s)
with Bootstrap's `text-right`

Signed-off-by: Lukas Bixen <lrb2_@outlook.com>
2021-08-08 18:12:37 -05:00
Maurício Meneghini Fauth
04d3c83559
Fix some errors found by PHPStan/Psalm
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-08-05 16:09:08 -03:00
William Desportes
cef66ddc19
Merge branch 'QA_5_1'
Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-07-27 02:59:31 +02:00
William Desportes
6addfdfd96
Fix #17027 - Better handle display of sorted binary columns in results summary
Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-07-27 01:56:11 +02:00
Maximilian Krög
808cd82780
Use negative length with mb_substr where possible
Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
2021-07-18 23:59:46 +02:00
William Desportes
4499e75901
Merge branch 'QA_5_1'
Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-07-16 02:49:36 +02:00
William Desportes
34acbcdc38
Fix calls to fetchRow using two parameters but function has only one parameter
None of our fetchRow methods have more than one parameter

Thank you Psalm for catching this !

Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-07-16 02:28:03 +02:00
Maurício Meneghini Fauth
1835ebb4fc
Replace mb_strpos !== false with str_contains
See: https://wiki.php.net/rfc/str_contains#case-insensitivity_and_multibyte_strings

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-07-10 13:43:40 -03:00
Maurício Meneghini Fauth
6ae07c96fb
Replace strpos !== false with str_contains
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-07-09 22:30:42 -03:00
Maurício Meneghini Fauth
8e4d6229a9
Fix some errors found by Psalm
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-07-06 00:37:27 -03:00
Maurício Meneghini Fauth
9adaa912e1
Rename Response class to ResponseRenderer
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-06-30 12:35:22 -03:00
Maurício Meneghini Fauth
b1c936a0f3
Fix some errors found by Psalm
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-06-25 15:03:05 -03:00
William Desportes
0a1f083990
Merge branch 'QA_5_1'
Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-06-23 20:36:21 +02:00
William Desportes
8e148afc9e
Fix two possible PHP errors with int data
Actually, one poped out on tests after #16935
Ref: #14936

Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-06-22 00:29:32 +02:00
William Desportes
6549c11361
Fix #16896 - Distinct URLs are broken on nullable text fields
Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-06-22 00:29:32 +02:00
Maurício Meneghini Fauth
b3f088e9fd
Extract HTML from Results::getTableHeadersForColumns
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-06-17 22:40:53 -03:00
Maurício Meneghini Fauth
c3b453aa3a
Extract the HTML from sorted table header
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-06-17 17:09:18 -03:00
Maurício Meneghini Fauth
fa12894e5f
Add unit tests for Display\Results::setConfigParamsForDisplayTable
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-06-16 20:26:24 -03:00
Maurício Meneghini Fauth
39c0908af5
Remove display/results/sort_by_key template
Merges it with the `display/results/table` template.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-06-16 13:03:32 -03:00
William Desportes
300e835edb
Merge branch 'QA_5_1'
Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-06-16 01:10:11 +02:00
Maurício Meneghini Fauth
8f992a4fbf
Fix some errors found by PHPStan and Psalm
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-06-15 18:49:37 -03:00
William Desportes
f09ead5e07
Fix code using relative path
if (chdir('/tmp') === false) {
    die('Could not change dir');
}

Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-06-15 22:24:30 +02:00
Maurício Meneghini Fauth
1c084de30b
Fix coding standard errors
Related to 62f142c9fa.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-06-03 16:50:33 -03:00
Maurício Meneghini Fauth
9928882de3
Fix some errors found by Psalm
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-05-23 00:24:59 -03:00
William Desportes
87526f2b5d
Merge branch 'QA_5_1'
Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-05-03 01:50:55 +02:00
William Desportes
27a9986a1b
Revert fix for #16783 to Fix #16874 and Fix #16802 and fix back #16783
This reverts 176ff6a99c
Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-05-03 01:44:26 +02:00
Maurício Meneghini Fauth
8d0c2a339c
Move both operands of an assignment to the same line
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-04-20 22:35:21 -03:00
William Desportes
592dedb8c2
Revert 4c5592e632 for old PHP compat
Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-04-20 21:22:31 +02:00
Maurício Meneghini Fauth
90778eecf7
Upgrade phpmyadmin/coding-standard to 3.0.0
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-04-19 02:20:46 -03:00
William Desportes
856145297f
Merge branch 'origin/QA_5_1'
Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-04-13 17:46:06 +02:00
William Desportes
721e927f12
Fix #16791 - Undefined index table_schema and "DESCRIBE FILES" broken links
Reverts: ca0244f06b because the code was guessing what the parent had already found but the code did not fine the same results between the parent and the child.

Now passing the result from the parent to the child will remove one guessing

Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-04-12 22:26:51 +02:00
William Desportes
927689554e
Remove impossible code since #1208
Ref: 26dc919e68

Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-04-12 21:50:51 +02:00
William Desportes
b5cde44e17
Document special schema links array format
Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-04-12 21:48:26 +02:00
William Desportes
85afe9a14f
Merge branch 'QA_5_1'
Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-04-12 19:01:36 +02:00
Maurício Meneghini Fauth
ca0244f06b
Fix a type error when getting the special schema links
Reproduced by running "DESCRIBE `FILES`;" inside the information_schema
database.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2021-04-09 14:02:39 -03:00
William Desportes
9f0fc40cdb
Merge branch 'QA_5_1'
Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-04-02 13:40:28 +02:00
William Desportes
26cca2133d
Add ChangeLog entries for #16604, 700108ba90, 8597ec6814, ec04f6ebac
Entry for #16604 already exists

Signed-off-by: William Desportes <williamdes@wdes.fr>
2021-04-01 18:58:22 +02:00