1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00
Commit Graph

23 Commits

Author SHA1 Message Date
Andreas Möller
d9bcfed482 Enhancement: Enable array_syntax fixer
Co-authored-by: MathiasReker <mathias@reker.dk>

Closes GH-659.
2022-08-22 18:59:14 +02:00
Andreas Möller
b3c9551c93 Enhancement: Enable no_extra_blank_lines fixer
Closes GH-646.
2022-07-12 14:26:18 +02:00
Andreas Möller
f3585d9bdf Enhancement: Enable indentation_type fixer
Closes GH-622.
2022-07-11 20:34:20 +02:00
Ayesh Karunaratne
d40890db1b 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.
2022-07-03 20:33:22 +02:00
Mathias Reker ⚡️
530b28e95b Add void return types
Add void return type to functions with missing or empty return statements.

Closes GH-535.
2022-06-17 19:16:52 +02:00
Peter Kokot
dd8d8bf863 Sync final and leading newlines
This patch adds some missing newlines, trims some multiple redundant
final newlines into a single one, and trims few redundant leading
newlines.

According to POSIX, a line is a sequence of zero or more non-'<newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.

C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."

Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-17 12:37:26 +02:00
Kevin Israel
64c35d8825 logo.php: Check if QUERY_STRING is set before using it
Fixes a PHP Notice introduced in 0df71ff798.
2016-09-06 15:04:05 -04:00
Levi Morrison
0df71ff798 Remove oldschool logos and running elephpant
There have been many complaints about them.

Move the Not Modified checks to the top. Also move other code
around so definitions are a bit closer to where they are used.
This is why the diff looks messy.
2015-09-21 10:28:18 -06:00
Levi Morrison
34700d925d Prefer SVG logo over PNG; serve .gz if possible 2015-09-21 10:05:13 -06:00
Levi Morrison
11d6601c2e Decreased elephpant frequency; also optimized the image. 2014-05-07 21:38:01 -06:00
Hannes Magnusson
85fdad2eab To lazy to automate this 2014-04-02 02:11:34 -07:00
Hannes Magnusson
91cf3c464b Missing now check 2014-03-31 23:00:12 -07:00
Hannes Magnusson
4d50f54e0e Reduce the chances even further to make these even more special 2014-01-22 17:03:08 -08:00
Hannes Magnusson
a1173b6333 "z" starts at 0. And $now = $_SERVER["REQUEST_TIME"] already 2014-01-07 11:11:59 -08:00
Hannes Magnusson
e7ea447575 Add a way to avoid the cache 2013-12-28 21:59:49 -08:00
Hannes Magnusson
c348cd414f Thats a little to frequent.. roll it back to 60 seconds plus shuffle 2013-12-26 15:40:40 -08:00
Hannes Magnusson
3ffaa47150 Add more possible logos and increase the chances of showing them 2013-12-26 14:08:50 -08:00
Hannes Magnusson
fea7d43264 Make sure we have a query string 2013-12-15 17:06:10 -08:00
Hannes Magnusson
3f8ac74631 Add the qa.php.net logo 2013-12-13 16:53:20 -08:00
Hannes Magnusson
384e52fee0 Almost always use the new xmas logo 2013-12-13 13:15:40 -08:00
Hannes Magnusson
e2fb24223e Add a xmas logo by Christy Raju 2013-12-10 12:03:53 -08:00
Hannes Magnusson
5c9a090200 Set the timezone 2013-12-09 09:08:59 -08:00
Hannes Magnusson
9098464a05 Remove an used file & improve the logo scale 2013-12-06 15:16:49 -08:00