0ba9485e | 05-Jul-2022 |
Andreas Möller |
Enhancement: Add badge to README.md Closes GH-613. |
fe57ff9c | 05-Jul-2022 |
Andreas Möller |
Update PHP version requirement Closes GH-609. |
a83ae2fa | 05-Jul-2022 |
Andreas Möller |
Enhancement: Use PSR-4 autoloader (#604) |
870dee1e | 05-Jul-2022 |
Christoph M. Becker |
Test UserNotes\Sorter We add a copy of the latest run-tests.php from the PHP-8.0 branch, and tests for the `UserNotes\Sorter` with full code coverage. We also run tests on GitHub Ac
Test UserNotes\Sorter We add a copy of the latest run-tests.php from the PHP-8.0 branch, and tests for the `UserNotes\Sorter` with full code coverage. We also run tests on GitHub Actions. Co-authored-by: Andreas Möller <am@localheinz.com> Closes GH-606.
show more ...
|
c1dce908 | 05-Jul-2022 |
Ayesh Karunaratne |
Minor optimizations in CSS files to shed some weight (#612) - Removes px suffix from 0px. - Combines CSS properties where they are immediately overridden in the same selector block, or
Minor optimizations in CSS files to shed some weight (#612) - Removes px suffix from 0px. - Combines CSS properties where they are immediately overridden in the same selector block, or can be combined without side effects. This saves about 50 bytes off the CSS scripts. it ain't much but it's honest work
show more ...
|
90cc484d | 05-Jul-2022 |
Sergey Panteleev |
Postponement PHP Russia 2022 to November (#611) |
746d3d71 | 04-Jul-2022 |
Ayesh Karunaratne |
HTML A11y improvements in add-note.php, my.php and vote-note.php Also use strict comparison in pages that are changed. Closes GH-610. |
d40890db | 03-Jul-2022 |
Ayesh Karunaratne |
Micro Optimizations - Round #2 * .gitignore: Remove redundant entry * Minor optimizations with ternary operators * Use `const` instead of `define()` where appropriate
Micro Optimizations - Round #2 * .gitignore: Remove redundant entry * Minor optimizations with ternary operators * Use `const` instead of `define()` where appropriate `const` is quite faster because of the compile-time optimizations. Because the replaced statements are not declaring constant conditionally, it's safe to use `const` in all of these places. Closes GH-608.
show more ...
|
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 ...
|
38d4e072 | 02-Jul-2022 |
Ayesh Karunaratne |
`phpversion()` replacements and code branch collapsing for older PHP versions Closes GH-600. |
c3f96532 | 02-Jul-2022 |
Andreas Möller |
Remove useless function manual_header() Closes GH-584. |
7f4ecb06 | 01-Jul-2022 |
Javier Eguiluz |
Announce SymfonyWorld Online 2022 Winter Edition conference Closes GH-597. |
007d9cc9 | 30-Jun-2022 |
Javier Eguiluz |
Announce SymfonyCon Disneyland Paris 2022 conference Closes GH-596. |
1a7521e7 | 29-Jun-2022 |
Kamil Tekiela |
Refactor manual_notes() (#592) |
0b217c02 | 29-Jun-2022 |
Kamil Tekiela |
Move ManualNotesSorter to src/ (#593) |
67c7fe15 | 29-Jun-2022 |
Levi Morrison |
Use accent color for hero buttons (#591) I've always wanted the accent to be used more, but it's kind of hard. I think this is a great opportunity for it! |
d6f23ea1 | 29-Jun-2022 |
Andreas Möller |
Fix: Move class into src/ (#581) |
98430dbe | 29-Jun-2022 |
Andreas Möller |
Avoid variable function invocation Closes GH-586. |
65254462 | 29-Jun-2022 |
Andreas Möller |
Fix: Remove extra closing tag Closes GH-589. |
c6fecd85 | 28-Jun-2022 |
Andreas Möller |
Fix: Add type and return type declaration (#587) |
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. |
1e7a49e2 | 28-Jun-2022 |
Andreas Möller |
Fix: Remove unused local variables Closes GH-578. |
b2ff8050 | 28-Jun-2022 |
Kamil Tekiela |
Remove get_magic_quotes_gpc (#575) |
9fc38ed6 | 28-Jun-2022 |
Andreas Möller |
Fix: Remove unused local variable Closes GH-576. |