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

77 Commits

Author SHA1 Message Date
Andreas Möller
59c070f557 Enhancement: Enable blank_line_after_opening_tag fixer (#875) 2023-12-07 16:57:19 +01:00
Andreas Möller
c093fb5382 Enhancement: Enable trailing_comma_in_multiline fixer (#647)
* Enhancement: Enable and configure trailing_comma_in_multiline fixer

* Fix: Run 'make coding-standards'
2023-12-06 23:16:28 +00:00
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
f24a9f3906 Fix: Remove unused parameters
Closes GH-577.
2022-07-11 18:39:48 +02:00
Sara Golemon
2735e5f03f Swap uses of _SERVER[DOCUMENT_ROOT] for __DIR__
1/n - Update / and /include/ only.
2019-05-31 11:19:09 -04: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
Peter Kokot
e235f79473 Trim trailing whitespace
This patch cleans all redundant trailing whitespace across the
repository except for the icalendar files.
2018-10-17 10:51:08 +02:00
Peter Kokot
0f95b8c709 Remove unused Git attributes ident
The $Id$ keywords were used in Subversion where they can be substituted
with filename, last revision number change, last changed date, and last
user who changed it.

In Git this functionality is different and can be done with Git attribute
ident. These need to be defined manually for each file in the
.gitattributes file and are afterwards replaced with 40-character
hexadecimal blob object name which is based only on the particular file
contents.

This patch simplifies handling of $Id$ keywords by removing them since
they are not used anymore.
2018-10-17 07:29:46 +02:00
Hannes Magnusson
51455a7013 Remove dead code and add back language search 2013-11-21 20:21:41 -08:00
Hannes Magnusson
9e65de7d02 There are part of help really 2013-11-21 20:10:30 -08:00
Adam Harvey
34d617ae53 Improve the styling on the search results page.
I hacked this together for the old version of the new site, and it really
didn't fit in with the new aesthetic. This is an attempt to improve it to stick
out less like a sore thumb and more like a slightly itchy one instead.
2013-11-20 17:08:42 -08:00
Rasmus Lerdorf
a80bcfebd2 The Bing search API hasn't worked for a while, and it is no
longer free, so turn it off entirely
2013-10-30 14:44:34 -07:00
Levi Morrison
57c032532a Fixed some pages that were not full-width but could/should be. 2013-09-17 16:32:16 -06:00
Daniel P. Brown
3cc9491588 Change multiple checks and references from 'www.php.net' to plainly 'php.net' to reduce 301's, fix a few broken items, and ease a bit of the load off the server (multiple connections per page when statically referenced as 'www.php.net.' 2012-12-05 11:09:23 -05:00
Adam Harvey
cbd6d7efdf Tinker with the error message shown when a search keyword is too short. 2012-11-12 11:19:06 +08:00
Adam Harvey
5eb4baaaa1 Style Google Custom Search Engine results. 2012-09-07 17:46:44 +08:00
Adam Harvey
c6cd85903d CSE will tell you in no uncertain terms if there are no results, so we don't
need to print the error message in this code path; just the header is fine.
2012-09-07 17:39:43 +08:00
Philip Olson
3cd800c78b Added default google CSE search. 2012-08-16 00:04:06 -07:00
Philip Olson
f52321368b Used our standard includes format (which uses DOCUMENT_ROOT) 2012-08-02 10:28:20 -07:00
Philip Olson
51b7a544f9 Panic, and hacked in a custom google search until this bing-is-no-longer-free issue is resolved. 2012-08-02 10:20:01 -07:00
Rasmus Lerdorf
8ee6e6ed92 Do a web search from the manual-lookup page when a function is not found 2011-07-16 05:45:51 +00:00
Rasmus Lerdorf
b7fc14908e Fix start/end values 2011-07-14 06:14:01 +00:00
Rasmus Lerdorf
99e6a4f5a3 Get closer to the bing style guide 2011-07-14 05:37:29 +00:00
Rasmus Lerdorf
9fd1bae95f Switching search backend from Yahoo to Bing.
and to head off the inevitable bitching about this, it
is because the Yahoo BOSS v1 API we are using is going
away on July 20 and Yahoo was not willing to give us
free access to the new v2 API. It would end up costing
us about $600/year at our current usage pattern.
The new Google REST API would cost us about $7500/year.
The Bing API is free.
2011-07-14 05:24:48 +00:00
Rasmus Lerdorf
419d1891cd Prepare frontend for switch to Bing backend 2011-07-13 20:47:53 +00:00
Peter Cowburn
64c206f575 show top search result 2011-07-05 22:32:56 +00:00
Hannes Magnusson
a0bf36937a #fail 2010-12-28 11:13:59 +00:00
Hannes Magnusson
60d5c3b903 Add current config option (ignored in old-web), and FIXME placeholders for pages
not in any menu yet
2010-12-28 11:09:09 +00:00
Philip Olson
efac7dcb5b Added debugging info to fetch_contents(), and enabled track_errors until we require 5.2+ and/or do better error handling. Reveals too much info? Helps deal with bugs like #51679 2010-05-04 18:08:14 +00:00
Philip Olson
949c631cf0 Fixed yahoo developer image link 2010-05-01 16:19:19 +00:00
Hannes Magnusson
3d63a121f4 Fix off by one 2009-05-22 12:04:40 +00:00
Hannes Magnusson
86729bc7af Fixed bug#45347 (Search results which link to gcov cause an error
message.)
2009-05-22 08:28:45 +00:00
Hannes Magnusson
5ca49a5b98 Add a debug errormessage as a html comment 2008-06-21 12:21:41 +00:00
Hannes Magnusson
fc23b9c5fd Add compatibility function for file_get_conents() and get_headers() 2008-04-21 11:00:33 +00:00
Hannes Magnusson
5406696fa8 ...and now the path 2008-04-11 17:04:40 +00:00
Hannes Magnusson
3fb7435797 Fix weird typo 2008-04-11 16:04:46 +00:00
Felipe Pena
037203a5b6 - Fixed bug #44510 (Search yields a relative path that doesn't exist on all servers)
- Improved regexp
- Moved array out of the loop
2008-03-23 16:28:33 +00:00
Hannes Magnusson
283b374f6a Fixed bug#44492 (Searching produces an error message) 2008-03-22 10:53:55 +00:00
Hannes Magnusson
3d41e43d70 Revert the fix for #41475 2008-03-19 16:17:18 +00:00
Hannes Magnusson
c957a21cab Fixed bug#41047 (search results double-escaping entities) 2008-03-19 13:25:22 +00:00
Hannes Magnusson
37570e9398 Honest attempt to fix bug#41475 2008-03-19 13:03:00 +00:00
Hannes Magnusson
fd27c2f13c Fixed bug#42539 (Incorrect GTK links) 2008-03-19 12:50:10 +00:00
Hannes Magnusson
92983e7dc8 - Blindly ignore smarty hits
- Add noindex robot rule
2008-03-19 12:35:36 +00:00
Hannes Magnusson
99f76aca7c Fix E_NOTICE when search results poing to doc.php.net 2008-03-19 12:28:03 +00:00
Hannes Magnusson
26edad2426 Fixed bug#44030 (Lack of validation of input parameters) 2008-03-19 11:47:46 +00:00
Hannes Magnusson
fc0de0b6f7 Fixed bug#43940 (search to & character bug) 2008-03-19 11:31:33 +00:00
Hannes Magnusson
91430ab07e Bye bye smarty
# Smarty is no longer a php.net project
2008-01-11 11:28:57 +00:00
Nuno Lopes
11fd919301 also disable rewriting of doc.php.net URLs 2007-10-22 08:57:43 +00:00
Nuno Lopes
0b93ef613c 2nd shot at trying to fix bug #42896 2007-10-10 22:13:02 +00:00
Nuno Lopes
5a57344fc7 fix #42896:
add a logo to the news.php.net site
fix displayurl regex for urls of type: http://php.net/foo
2007-10-09 21:21:07 +00:00