# Tidy, CS, OO, Vote

- Thread: https://externals.io/message/7217
- Original archive: https://news-web.php.net/php.internals/7217
- Started by John Coggeshall on 2004-01-21T08:00:39+00:00
- Messages: 5
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #7217 — John Coggeshall — 2004-01-21T08:00:39+00:00

URL: https://externals.io/message/7217#7217

Alright..

I've got a patch sitting here on my laptop that converts all of the OO
syntax in the tidy extension into studlyCaps. I.e.

	$tidy = tidy_parse_file();
	
	or
	
	$tidy = new tidy();
	$tidy->parse_file();

Will become..

	$tidy = tidy_parse_file()

	or

	$tidy = new tidy();
	$tidy->parseFile();

Although my *personal* preference here is to maintain the current use of
underscores (since it is consistent with the procedural API).. as far as
PHP 5 goes itself I don't really have an opinion. I'm willing to apply
this patch, but before I do can I please get a +1 -1 vote on this?
*please* no discussion, I just want to be done changing the API so the
documentation team can actually do something productive. 

John

-- 
-=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=-
John Coggeshall                   http://www.coggeshall.org/
The PHP Developer's Handbook    http://www.php-handbook.com/
-=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=

---

## #7218 — Marcus Boerger — 2004-01-21T08:08:45+00:00

URL: https://externals.io/message/7217#7218 · In reply to: #7217

Hello John,

Wednesday, January 21, 2004, 9:00:39 AM, you wrote:

> Alright..

> I've got a patch sitting here on my laptop that converts all of the OO
> syntax in the tidy extension into studlyCaps. I.e.

> 	$tidy = tidy_parse_file();
	
> 	or
	
> 	$tidy = new tidy();
> 	$tidy->parse_file();

> Will become..

> 	$tidy = tidy_parse_file()

> 	or

> 	$tidy = new tidy();
> 	$tidy->parseFile();

> Although my *personal* preference here is to maintain the current use of
> underscores (since it is consistent with the procedural API).. as far as
> PHP 5 goes itself I don't really have an opinion. I'm willing to apply
> this patch, but before I do can I please get a +1 -1 vote on this?

+1

> *please* no discussion, I just want to be done changing the API so the
> documentation team can actually do something productive. 


-- 
Best regards,
 Marcus                            mailto:helly@php.net

---

## #7219 — Sascha Schumann — 2004-01-21T08:27:58+00:00

URL: https://externals.io/message/7217#7219 · In reply to: #7217

> PHP 5 goes itself I don't really have an opinion. I'm willing to apply
> this patch, but before I do can I please get a +1 -1 vote on this?

    -1

    There really is no reason to convert existing code.

    - Sascha

---

## #7220 — Jon Parise — 2004-01-21T08:46:44+00:00

URL: https://externals.io/message/7217#7220 · In reply to: #7217

> Although my *personal* preference here is to maintain the current use of
> underscores (since it is consistent with the procedural API).. as far as
> PHP 5 goes itself I don't really have an opinion. I'm willing to apply
> this patch, but before I do can I please get a +1 -1 vote on this?
 
+0 (I'm comfortable either way with a preference for consistency.)

-- 
Jon Parise (jon@php.net) :: The PHP Project (http://www.php.net/)

---

## #7222 — Andi Gutmans — 2004-01-21T10:04:16+00:00

URL: https://externals.io/message/7217#7222 · In reply to: #7217

Go ahead with it.
Please commit it.
I hope Sascha will relax with another one of his holy wars.

Andi

At 03:00 AM 1/21/2004 -0500, John Coggeshall wrote:
>Alright..
>
>I've got a patch sitting here on my laptop that converts all of the OO
>syntax in the tidy extension into studlyCaps. I.e.
>
>         $tidy = tidy_parse_file();
>
>         or
>
>         $tidy = new tidy();
>         $tidy->parse_file();
>
>Will become..
>
>         $tidy = tidy_parse_file()
>
>         or
>
>         $tidy = new tidy();
>         $tidy->parseFile();
>
>Although my *personal* preference here is to maintain the current use of
>underscores (since it is consistent with the procedural API).. as far as
>PHP 5 goes itself I don't really have an opinion. I'm willing to apply
>this patch, but before I do can I please get a +1 -1 vote on this?
>*please* no discussion, I just want to be done changing the API so the
>documentation team can actually do something productive.
>
>John
>
>--
>-=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=-
>John Coggeshall                   http://www.coggeshall.org/
>The PHP Developer's Handbook    http://www.php-handbook.com/
>-=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=
