History log of /web-php/ (Results 676 – 700 of 12336)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
0ba9485e05-Jul-2022 Andreas Möller

Enhancement: Add badge to README.md

Closes GH-613.

fe57ff9c05-Jul-2022 Andreas Möller

Update PHP version requirement

Closes GH-609.

a83ae2fa05-Jul-2022 Andreas Möller

Enhancement: Use PSR-4 autoloader (#604)

870dee1e05-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 ...

c1dce90805-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 ...

90cc484d05-Jul-2022 Sergey Panteleev

Postponement PHP Russia 2022 to November (#611)

746d3d7104-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.

d40890db03-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 ...

1b83fd7a03-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 ...

38d4e07202-Jul-2022 Ayesh Karunaratne

`phpversion()` replacements and code branch collapsing for older PHP versions

Closes GH-600.

c3f9653202-Jul-2022 Andreas Möller

Remove useless function manual_header()

Closes GH-584.

7f4ecb0601-Jul-2022 Javier Eguiluz

Announce SymfonyWorld Online 2022 Winter Edition conference

Closes GH-597.

007d9cc930-Jun-2022 Javier Eguiluz

Announce SymfonyCon Disneyland Paris 2022 conference

Closes GH-596.

1a7521e729-Jun-2022 Kamil Tekiela

Refactor manual_notes() (#592)

0b217c0229-Jun-2022 Kamil Tekiela

Move ManualNotesSorter to src/ (#593)

67c7fe1529-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!

d6f23ea129-Jun-2022 Andreas Möller

Fix: Move class into src/ (#581)

98430dbe29-Jun-2022 Andreas Möller

Avoid variable function invocation

Closes GH-586.

6525446229-Jun-2022 Andreas Möller

Fix: Remove extra closing tag

Closes GH-589.

c6fecd8528-Jun-2022 Andreas Möller

Fix: Add type and return type declaration (#587)

c738563128-Jun-2022 Andreas Möller

Remove arguments identical to default values of parameters

Closes GH-583.

879d410628-Jun-2022 Andreas Möller

Inline unnecessary local variables

Closes GH-582.

1e7a49e228-Jun-2022 Andreas Möller

Fix: Remove unused local variables

Closes GH-578.

b2ff805028-Jun-2022 Kamil Tekiela

Remove get_magic_quotes_gpc (#575)

9fc38ed628-Jun-2022 Andreas Möller

Fix: Remove unused local variable

Closes GH-576.

1...<<21222324252627282930>>...494