History log of /web-php/include/shared-manual.inc (Results 1 – 25 of 368)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# cdf59074 14-Nov-2024 Maurício Meneghini Fauth

Replace languages.inc globals with I18n\Languages consts (#1121)

The include/languages.inc file was not removed as it's used in other
repositories. It should be removed after migration.

Replace languages.inc globals with I18n\Languages consts (#1121)

The include/languages.inc file was not removed as it's used in other
repositories. It should be removed after migration.

Tests were added to ensure that the global variables and the constants
are in sync with each other.

Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>

show more ...


# 67fa1d01 17-Oct-2024 Luffy

Remove useless repo parameter (#1095)


# 83705efd 14-Oct-2024 haszi

Add function for translation of UI elements (#1057)

Co-authored-by: haszi <haszika80@gmail.com>


# b585014d 20-Sep-2024 Jim Winstead

Link to GH issues instead of bugs.php.net for documentation issues (#1078)


# f252981e 17-Sep-2024 Maurício Meneghini Fauth

Replace MYPHPNET global var with the UserPreferences class (#1071)


# 739e1f57 20-Apr-2024 haszi

Add last modification info and contributor list (#977)

Co-authored-by: haszi <haszika80@gmail.com>


# fbe58989 17-Apr-2024 haszi

Move contribution links to the bottom of the documentation pages (#973)

Co-authored-by: haszi <haszika80@gmail.com>


# 00342c40 07-Dec-2023 Andreas Möller

Fix: Remove vim instruction (#880)


# 45d49c7e 07-Dec-2023 Andreas Möller

Fix: Remove emacs instruction (#876)


# c093fb53 06-Dec-2023 Andreas Möller

Enhancement: Enable `trailing_comma_in_multiline` fixer (#647)

* Enhancement: Enable and configure trailing_comma_in_multiline fixer

* Fix: Run 'make coding-standards'


# d7132525 06-Dec-2023 Andreas Möller

Fix: Inline variables (#856)


# a8c736a0 05-Dec-2023 Andreas Möller

Enhancement: Enable `void_return` fixer (#661)

* Enhancement: Enable void_return fixer

* Fix: Run 'make coding-standards'


# 73a99691 29-Aug-2023 Andreas Möller

Enhancement: Enable `new_with_braces` fixer (#697)


# bf7eff4a 26-Jun-2023 Lu Fei <52o@qq52o.cn>

Fix autoload redirect failure (#788)


# 9a5e56d9 29-Sep-2022 Kamil Tekiela

Improve code for language selection (#709)


# 8b776fbd 29-Sep-2022 Kamil Tekiela

Remove unnecessary code (#708)


# 9752e1b9 16-Sep-2022 Kamil Tekiela

Introduce UserNote DTO and refactor Sorter (#594)


# 1ebc2c49 22-Aug-2022 Andreas Möller

Enhancement: Enable `binary_operator_spaces` fixer

Closes GH-667.


# d9bcfed4 22-Aug-2022 Andreas Möller

Enhancement: Enable `array_syntax` fixer

Co-authored-by: MathiasReker <mathias@reker.dk>

Closes GH-659.


# f127de5d 15-Jul-2022 Andreas Möller

Enhancement: Enable `strict_param` fixer

We set strict param to false to ensure current behavior,
except for two cases where it is safe to go with true.

Closes GH-658.


# b575ebd4 15-Jul-2022 Andreas Möller

Enhancement: Include `*.inc` files (with exceptions)

Closes GH-662.


# a83ae2fa 05-Jul-2022 Andreas Möller

Enhancement: Use PSR-4 autoloader (#604)


# 1b83fd7a 03-Jul-2022 Ayesh Karunaratne

Multiple micro-optimizations

* Replace `ob_get_contents();ob_clean()` with `ob_get_clean()`

`ob_get_clean()` is equivalent to `ob_get_contents()` followed by `ob_clean()`.

Multiple micro-optimizations

* Replace `ob_get_contents();ob_clean()` with `ob_get_clean()`

`ob_get_clean()` is equivalent to `ob_get_contents()` followed by `ob_clean()`.

* Replace `intval()` calls with `(int)` type cast

This is a micro-optimization because `intval()` is a function call, and the type cast is about 6 times fast.

* Replace `preg_replace` call that could be done with an `rtrim()` call

In `./error.php`, there is a `preg_replace('!/+$!', '', $URI);` call that essentially is equivalent to `rtrim()`, that both calls removing trailing slash characters in `$URI`.
The `rtim()` call is more legible and faster.

* Combine consecutive `str_replace` calls to a single `str_replace` call

* Use short ternary operator where possible

Improves code readability.

* Cascade various `else` statements where possible

Cleans up the code by removing unnecessary `else` blocks and moving the code to the parent context if the previous `if` block exits the function by either terminating the script, or with a `return` statement.

* Combine multiple `isset()` calls to a single `isset()`

`isset()` accepts multiple parameters and returns `true` only if all of the parameters are `isset`. It makes sense to combine multiple individual `isset` calls to a single call for better readability.

* Replace `for` loop with a `foreach` loop

* Remove unnecessary character escapes in regular expressions

Regular expression special characters are context-sensitive. For example, special characters such as `.` are not considered special within square braces (`[]`).
This removes several of such instances that certain characters are escaped, but it is not strictly necessary within the context. This improves the readability of the expression.

See more information at [PHP.Watch: Writing better Regular Expressions in PHP](https://php.watch/articles/php-regex-readability#reduce-escape)

* Remove unnecessary break statement

* Remove unnecessary PHP close tags

* Remove redundant JSON_ERROR_NONE check

Remove unnecessary `json_last_error() == JSON_ERROR_NONE` where the decoded object is inspected already.

Closes GH-603.

show more ...


# c3f96532 02-Jul-2022 Andreas Möller

Remove useless function manual_header()

Closes GH-584.


# 1a7521e7 29-Jun-2022 Kamil Tekiela

Refactor manual_notes() (#592)


12345678910>>...15