#
b575ebd4 |
| 15-Jul-2022 |
Andreas Möller |
Enhancement: Include `*.inc` files (with exceptions) Closes GH-662.
|
#
3a2761d9 |
| 08-Jul-2022 |
Andreas Möller |
Fix: Heredoc syntax Closes GH-564.
|
#
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 ...
|
#
c7385631 |
| 28-Jun-2022 |
Andreas Möller |
Remove arguments identical to default values of parameters Closes GH-583.
|
#
879d4106 |
| 28-Jun-2022 |
Andreas Möller |
Inline unnecessary local variables Closes GH-582.
|
#
5e659e0d |
| 28-Jun-2022 |
Andreas Möller |
Fix: Remove parameter where argument is never specified Closes GH-573.
|
#
30796f6f |
| 28-Jun-2022 |
Andreas Möller |
Fix: Remove unused parameter Closes GH-571.
|
#
1c2bd8ad |
| 28-Jun-2022 |
Andreas Möller |
Fix: Remove unused parameter Closes GH-572.
|
#
22fffaad |
| 28-Jun-2022 |
Andreas Möller |
Fix: Remove unused references to a global variable (#563)
|
#
01337ed1 |
| 23-Jul-2021 |
Mike Schinkel |
Remove use of get_magic_quotes_gpc() As get_magic_quotes_gpc() has been removed in PHP 8.0, this PR removes it from the clean() function in layout.inc. Closes GH-419.
|
#
0cea658a |
| 21-Jul-2021 |
Mike Schinkel |
Add returns to end of functions (#422) PhpStorm flags functions that don't have returns at the end so this PR rearranges code so that the returns are always at the end, or in one case adds o
Add returns to end of functions (#422) PhpStorm flags functions that don't have returns at the end so this PR rearranges code so that the returns are always at the end, or in one case adds one that was missing.
show more ...
|
#
ae006c32 |
| 05-Jul-2021 |
Sara Golemon |
Migrate away from strftime
|
#
ca283e8c |
| 18-Apr-2021 |
Sara Golemon |
Remove defunct usergroup pages
|
#
8249f7f5 |
| 05-Feb-2021 |
Sara Golemon |
Revert "Temporary hacky fix for cache issue and old 8.0.2 tarballs" This reverts commit 2e0a93ef3f8cc0806553bd5ec1dcab467cf46ad9. The caching issue has expired and we now resume our
Revert "Temporary hacky fix for cache issue and old 8.0.2 tarballs" This reverts commit 2e0a93ef3f8cc0806553bd5ec1dcab467cf46ad9. The caching issue has expired and we now resume our regularly scheduled programming.
show more ...
|
#
2e0a93ef |
| 04-Feb-2021 |
Sara Golemon |
Temporary hacky fix for cache issue and old 8.0.2 tarballs
|
#
f8d7a460 |
| 27-Nov-2020 |
Sara Golemon |
Refactor php8 announcement helpers into common include file
|
#
99eb7625 |
| 27-Nov-2020 |
daijie |
Translate php 8.0 release page to Chinese Simplified Closes GH-363
|
#
f2407335 |
| 26-Nov-2020 |
George Peter Banyard |
French translation of the PHP 8 announcement page
|
#
bf8ae9d5 |
| 25-Nov-2020 |
Roman Pronskiy |
Update include/layout.inc Co-authored-by: Gabriel Caruso <carusogabriel34@gmail.com>
|
#
ddaa6d35 |
| 25-Nov-2020 |
Roman Pronskiy |
Drop Dutch translation because switch does not work
|
#
55e6e159 |
| 25-Nov-2020 |
Enno Woortmann |
Translate PHP 8 announcement to german (#2) Co-authored-by: Roman Pronskiy <root@pronskiy.com>
|
#
08f66f3a |
| 25-Nov-2020 |
SjonHortensius |
add dutch translation for PHP8 splash page (#3) * add dutch translation for PHP8 splash page * fix some typos and reword some things Co-authored-by: Roman Pronskiy <root@pr
add dutch translation for PHP8 splash page (#3) * add dutch translation for PHP8 splash page * fix some typos and reword some things Co-authored-by: Roman Pronskiy <root@pronskiy.com>
show more ...
|
#
98fb4d42 |
| 25-Nov-2020 |
Alexander Makarov |
Remove unused code
|
#
f9fbd330 |
| 25-Nov-2020 |
Alexander Makarov |
Remove dead code
|
#
25b3d36f |
| 20-Nov-2020 |
Roman Pronskiy |
Add highlighting for code blocks
|