Jakub Vrana
7e5757f8b4
PHPStan: Fix level 2 errors
2025-03-26 16:22:15 +01:00
Jakub Vrana
3de9b23156
PHPStan: Use @return void
...
PHPStan then warns abouts using the return value
2025-03-26 13:14:12 +01:00
Jakub Vrana
63c258a7f9
PHPStan: Fix level 0 errors
2025-03-26 13:14:10 +01:00
Jakub Vrana
a60e00bf72
Use Adminer\Plugins
2025-03-26 11:10:37 +01:00
Jakub Vrana
1b8a428d2f
Notices: Avoid accessing offset on null
...
Thanks to @peterpp at 62017e3 .
2025-03-26 07:20:10 +01:00
Jakub Vrana
41aad5bc37
Doc-comment: Use type aliases for arrays
...
Type aliases could be defined either globally (https://phpstan.org/writing-php-code/phpdoc-types#global-type-aliases ) or just for a class.
I prefer having them at the place where they are created.
2025-03-26 02:43:08 +01:00
Jakub Vrana
cccc784da4
Always return array from table_status()
2025-03-26 01:34:48 +01:00
Jakub Vrana
01e2fe4234
Doc-comments: Use array shapes in @return
...
This uses https://phpstan.org/writing-php-code/phpdoc-types#array-shapes
I'm not going to do this in @param, it would be better to use https://phpstan.org/writing-php-code/phpdoc-types#global-type-aliases
2025-03-25 15:08:13 +01:00
Jakub Vrana
4d2b5144b1
Doc-comments: Improve array @var
2025-03-25 14:41:26 +01:00
Jakub Vrana
2ee325183b
Doc-comment: Improve array @param
...
This uses syntax from https://phpstan.org/writing-php-code/phpdoc-types#general-arrays .
int[] means an array of ints with arbitrary keys (usually strings)
list<string> means an array of strings with sequential integer keys starting at 0
list<string>[] means an arbitrary array of string lists
list<string[]> means list of arbitrary string arrays
string[][] means two dimensional array with arbitrary keys in both dimensions
array was left in the comments for https://phpstan.org/writing-php-code/phpdoc-types#array-shapes
2025-03-25 14:31:27 +01:00
Jakub Vrana
26aa48122f
Doc-comments: Improve array @return
2025-03-25 13:27:54 +01:00
Jakub Vrana
8cec1bd611
Notices: Declare Adminer::$error
2025-03-24 07:30:22 +01:00
Jakub Vrana
3dd1b41472
Notices: Store maria into a declared variable
2025-03-24 07:30:22 +01:00
Jakub Vrana
204176b33b
New plugin: AI prompt in SQL command creating the queries with Google Gemini
2025-03-23 08:02:48 +01:00
Jakub Vrana
e0dde9034f
Doc-comments: Use consistent style
2025-03-22 21:04:58 +01:00
Jakub Vrana
aaca1eee8e
JS: Unsupport event.srcElement
2025-03-21 23:58:45 +01:00
Jakub Vrana
62c18efbd5
JS: Use let/const for globals
2025-03-20 08:59:07 +01:00
Jakub Vrana
f2a5d5127a
Display collation at table structure if different from table
2025-03-19 22:42:02 +01:00
Jakub Vrana
9b345fbafb
CockroachDB: Do not use version number when linking docs
2025-03-19 06:49:48 +01:00
Jakub Vrana
ff0fe92c00
Add forgotten space
2025-03-18 19:51:25 +01:00
Jakub Vrana
bc9de24d77
Add helper for <input type=hidden>
2025-03-18 17:15:10 +01:00
Jakub Vrana
9cfea02e19
Avoid excessive PHP and HTML mixing
2025-03-18 16:45:15 +01:00
Jakub Vrana
eeb78d7e48
Vendor display: Do not overwrite PostgreSQL by MySQL at the same server
2025-03-18 16:30:23 +01:00
Jakub Vrana
336fdaf09c
Revert "Table-less drivers: Hide Create table link"
...
This reverts commit 841f76fb00 .
This reverts commit 8fed1523ec .
2025-03-18 12:55:30 +01:00
Jakub Vrana
8fed1523ec
Table-less drivers: Hide Create table link
2025-03-18 11:35:15 +01:00
Jakub Vrana
73e7e00c77
fieldName: Display : before comment only with type
2025-03-18 09:26:16 +01:00
Jakub Vrana
dd47df9b9c
Display comment in title of field
2025-03-16 22:49:50 +01:00
Jakub Vrana
777d5dca0e
Store information about vendor
2025-03-16 19:03:12 +01:00
Jakub Vrana
517f63835d
Plugins: add syntaxHighlighting() and CodeMirror
2025-03-16 14:00:39 +01:00
Jakub Vrana
08882c6a8e
Add comments to places processed by compile.php
2025-03-15 02:26:16 +01:00
Jakub Vrana
e3515fd63f
CSS: Dark mode syntax highlighting and adminer-dark.css
2025-03-15 02:00:21 +01:00
Jakub Vrana
9afbf1a465
Compile: dark.css
2025-03-13 17:33:19 +01:00
Jakub Vrana
45107dc46e
Don't highlight NULL as JSON
2025-03-13 16:55:17 +01:00
Jakub Vrana
b1550b052d
MySQL: Simplify checking for MariaDB
2025-03-13 12:24:35 +01:00
Jakub Vrana
e39deca4f1
Wrap Schema: in navigation to <span> ( fix #907 )
2025-03-12 09:26:04 +01:00
Jakub Vrana
199edfe11f
Plugins: Add method dumpFooter()
2025-03-11 08:59:38 +01:00
Jakub Vrana
1e963cf90f
Change var to public
2025-03-11 08:17:00 +01:00
Jakub Vrana
f8b2640156
Fix gzip export ( fixes #896 )
2025-03-10 18:51:28 +01:00
Peter Knut
87d87248c1
Add support for "where" field privilege
...
In Elasticsearch, only indexed fields are searchable.
2025-03-08 23:05:16 +01:00
Jakub Vrana
ad2cbbf26e
Use helper function
2025-03-08 19:59:32 +01:00
Jakub Vrana
c0e2ab22d5
Syntax highlight generated expressions
2025-03-06 19:47:05 +01:00
Jakub Vrana
f05f4b4cbc
Change $jush to constant
2025-03-06 17:51:20 +01:00
Jakub Vrana
69d7d76dc5
Move operators, functions and grouping to Driver
2025-03-06 13:51:49 +01:00
Jakub Vrana
2f0cd4185b
Move edit functions to Driver
2025-03-06 13:28:04 +01:00
Jakub Vrana
37a75f3759
Move types to Driver
2025-03-06 12:35:20 +01:00
Jakub Vrana
105999f62e
Code style: Indent long statements
2025-03-05 15:01:21 +01:00
Jakub Vrana
af68e30742
Code style: Remove newline before }
2025-03-05 14:38:48 +01:00
Jakub Vrana
e1e085f312
Use namespace in callbacks
2025-03-05 13:10:40 +01:00
Jakub Vrana
52c5392089
PHP: Use namespace
2025-03-05 13:10:40 +01:00
Jan Tojnar
4cdcb44bee
Use more [] in doc-comments
...
Follow up to 42de70d032
2025-03-03 08:39:17 +01:00